Commit 43c35e7
authored
Edit error messages for when metadata is passed to
* Edit error messages for when metadata is passed to `savefig`
Closes matplotlib#25401
As requested, the error message is more related to what users are
actually doing.
Slight behavior change, though not sure it's worth a release note in
that `imsave` will error if metadata is given for formats that don't
support it (this was done because it was unused if it was passed, and
if and when we add metadata support for those formats, it will be
implemented in imsave)
* Make metadata kwonly for print_rawsavefig (matplotlib#25430)1 parent 4bfa5f5 commit 43c35e7
File tree
4 files changed
+28
-7
lines changed- lib/matplotlib
- backends
- tests
4 files changed
+28
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
444 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
445 | 447 | | |
446 | 448 | | |
447 | 449 | | |
| |||
518 | 520 | | |
519 | 521 | | |
520 | 522 | | |
521 | | - | |
| 523 | + | |
522 | 524 | | |
523 | 525 | | |
524 | 526 | | |
525 | 527 | | |
526 | | - | |
| 528 | + | |
527 | 529 | | |
528 | 530 | | |
529 | 531 | | |
530 | | - | |
531 | | - | |
| 532 | + | |
| 533 | + | |
532 | 534 | | |
533 | 535 | | |
534 | 536 | | |
535 | | - | |
536 | | - | |
| 537 | + | |
| 538 | + | |
537 | 539 | | |
538 | 540 | | |
539 | 541 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3260 | 3260 | | |
3261 | 3261 | | |
3262 | 3262 | | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
3263 | 3268 | | |
3264 | 3269 | | |
3265 | 3270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1610 | 1610 | | |
1611 | 1611 | | |
1612 | 1612 | | |
| 1613 | + | |
1613 | 1614 | | |
1614 | 1615 | | |
1615 | 1616 | | |
| |||
1674 | 1675 | | |
1675 | 1676 | | |
1676 | 1677 | | |
| 1678 | + | |
| 1679 | + | |
1677 | 1680 | | |
1678 | 1681 | | |
1679 | 1682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
| 1551 | + | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
0 commit comments