Commit e5562bb
authored
Check if the mappable is in a different Figure than the one fig.color… (#27458)
* Check if the mappable is in a different Figure than the one fig.colorbar is being called on.
Ignore this check if the mappable has no host Figure.
Warn in case of a mismatch.
* Add figure repr in warning message.
* Use _api.warn_external instead of _log.warning. Only warn when the mismatch is inferred.
* Delete test_colorbar::test_colorbar_wrong_figure.
* Warn in all mismatches, inferred or not.
* Revert deletion of test_colorbar_wrong_figure, with warning test.
* Linting fixes
* Catch newly added warning raised in other test cases.
* Catch warning in existing test cases.
* edge case: subfigure. only warn when top level artist don't match.
* flake8 code style check fix
* code style fix.
* subfigure test cases revert: no warning.
* Fix edge case: axes.remove(); passing correct pcolormesh object in galleries.
* remove redundant lines
* code stylistic fix1 parent 30ddba9 commit e5562bb
File tree
4 files changed
+53
-4
lines changed- galleries/users_explain/axes
- lib/matplotlib
- tests
4 files changed
+53
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1242 | 1242 | | |
1243 | 1243 | | |
1244 | 1244 | | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1245 | 1258 | | |
1246 | 1259 | | |
1247 | 1260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1228 | 1228 | | |
1229 | 1229 | | |
1230 | 1230 | | |
1231 | | - | |
| 1231 | + | |
| 1232 | + | |
1232 | 1233 | | |
1233 | 1234 | | |
1234 | 1235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1358 | 1358 | | |
1359 | 1359 | | |
1360 | 1360 | | |
1361 | | - | |
1362 | 1361 | | |
1363 | 1362 | | |
1364 | 1363 | | |
| |||
1665 | 1664 | | |
1666 | 1665 | | |
1667 | 1666 | | |
| 1667 | + | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
0 commit comments