Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitf1ed957
committed
Allow sharex/y after axes creation.
This intentionally does not allow unsharing or changing the shared axes,as there are bigger questions on the API there.The API is named `Axes.sharex()` to allow for a later `Axes.unsharex()`,though (`set_sharex()` would be fine, but `set_unsharex()`? or perhaps`set_sharex(None)`, though).An example use case is creating a grid with `subplots()`, but withcustom sharing relationships between the subplots -- e.g., sharex/shareyacross all, except the first row of axes which only shares x with theircolumn and the first column which only shares y with their lines.1 parentf9e37f7 commitf1ed957
File tree
3 files changed
+70
-27
lines changed- doc/api
- examples/subplots_axes_and_figures
- lib/matplotlib/axes
3 files changed
+70
-27
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
449 |
| - | |
450 |
| - | |
| 449 | + | |
| 450 | + | |
451 | 451 |
| |
452 | 452 |
| |
453 | 453 |
| |
| |||
457 | 457 |
| |
458 | 458 |
| |
459 | 459 |
| |
| 460 | + | |
| 461 | + | |
| 462 | + | |
460 | 463 |
| |
461 | 464 |
| |
462 | 465 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
179 | 196 |
| |
180 | 197 |
| |
181 | 198 |
| |
|
Lines changed: 48 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
436 |
| - | |
437 |
| - | |
| 432 | + | |
| 433 | + | |
438 | 434 |
| |
439 | 435 |
| |
440 | 436 |
| |
| |||
453 | 449 |
| |
454 | 450 |
| |
455 | 451 |
| |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
456 | 457 |
| |
457 | 458 |
| |
458 | 459 |
| |
| |||
945 | 946 |
| |
946 | 947 |
| |
947 | 948 |
| |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
948 | 985 |
| |
949 | 986 |
| |
950 | 987 |
| |
| |||
968 | 1005 |
| |
969 | 1006 |
| |
970 | 1007 |
| |
971 |
| - | |
972 |
| - | |
973 |
| - | |
974 |
| - | |
975 |
| - | |
976 |
| - | |
977 |
| - | |
978 |
| - | |
| 1008 | + | |
979 | 1009 |
| |
980 | 1010 |
| |
981 | 1011 |
| |
982 | 1012 |
| |
983 | 1013 |
| |
984 | 1014 |
| |
985 |
| - | |
986 | 1015 |
| |
987 |
| - | |
988 |
| - | |
989 |
| - | |
990 |
| - | |
991 |
| - | |
992 |
| - | |
| 1016 | + | |
993 | 1017 |
| |
994 | 1018 |
| |
995 | 1019 |
| |
996 | 1020 |
| |
997 | 1021 |
| |
998 | 1022 |
| |
| 1023 | + | |
999 | 1024 |
| |
1000 | 1025 |
| |
1001 | 1026 |
| |
1002 |
| - | |
1003 | 1027 |
| |
1004 | 1028 |
| |
1005 | 1029 |
| |
| |||
1081 | 1105 |
| |
1082 | 1106 |
| |
1083 | 1107 |
| |
1084 |
| - | |
| 1108 | + | |
1085 | 1109 |
| |
1086 | 1110 |
| |
1087 |
| - | |
1088 |
| - | |
| 1111 | + | |
1089 | 1112 |
| |
1090 | 1113 |
| |
1091 | 1114 |
| |
|
0 commit comments
Comments
(0)