Commit 71d725f
committed
Make Artist.set() apply properties in the order in which they are given.
... with a deprecation period (see changelog).
- This is consistent with Artist.update, and we don't reorder separate
calls to set_color and set_edgecolor either (we can't really to that,
indeed).
- The _prop_order mechanism was a slightly complex machinery for a
single use case (applying "color" first).
- Writing `p.set(edgecolor="r", color="g")` seems a bit twisted anyways.
Also rewrote (and simplified) normalize kwargs to make it *also*
maintain kwarg order, as that's necessary to make the warning emitted in
the correct cases.1 parent 069fea5 commit 71d725fCopy full SHA for 71d725f
File tree
Expand file treeCollapse file tree
3 files changed
+47
-45
lines changedOpen diff view settings
Filter options
- doc/api/api_changes_3.3
- lib/matplotlib
- cbook
Expand file treeCollapse file tree
3 files changed
+47
-45
lines changedOpen diff view settings
Collapse file
doc/api/api_changes_3.3/deprecations.rst
Copy file name to clipboardExpand all lines: doc/api/api_changes_3.3/deprecations.rst+9Lines changed: 9 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
545 | 545 | |
546 | 546 | |
547 | 547 | |
| 548 | + |
| 549 | + |
| 550 | + |
| 551 | + |
| 552 | + |
| 553 | + |
| 554 | + |
| 555 | + |
| 556 | + |
Collapse file
+25-8Lines changed: 25 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
68 | | - |
69 | | - |
70 | | - |
71 | | - |
72 | 68 | |
73 | 69 | |
74 | 70 | |
| ||
1088 | 1084 | |
1089 | 1085 | |
1090 | 1086 | |
1091 | | - |
1092 | | - |
1093 | | - |
1094 | | - |
| 1087 | + |
| 1088 | + |
| 1089 | + |
| 1090 | + |
| 1091 | + |
| 1092 | + |
| 1093 | + |
| 1094 | + |
| 1095 | + |
| 1096 | + |
| 1097 | + |
| 1098 | + |
| 1099 | + |
| 1100 | + |
| 1101 | + |
| 1102 | + |
| 1103 | + |
| 1104 | + |
| 1105 | + |
| 1106 | + |
| 1107 | + |
| 1108 | + |
| 1109 | + |
| 1110 | + |
| 1111 | + |
1095 | 1112 | |
1096 | 1113 | |
1097 | 1114 | |
|
Collapse file
lib/matplotlib/cbook/__init__.py
Copy file name to clipboardExpand all lines: lib/matplotlib/cbook/__init__.py+13-37Lines changed: 13 additions & 37 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1671 | 1671 | |
1672 | 1672 | |
1673 | 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 | | - |
1703 | | - |
1704 | | - |
1705 | | - |
1706 | | - |
1707 | | - |
1708 | | - |
1709 | | - |
1710 | | - |
| 1674 | + |
| 1675 | + |
| 1676 | + |
| 1677 | + |
| 1678 | + |
| 1679 | + |
| 1680 | + |
| 1681 | + |
| 1682 | + |
| 1683 | + |
| 1684 | + |
| 1685 | + |
| 1686 | + |
1711 | 1687 | |
1712 | 1688 | |
1713 | 1689 | |
|
0 commit comments