Commit 7879189
committed
Fix removal of colorbars on nested subgridspecs.
Indiscriminately going back up to the topmost gridspec is wrong in the
presence of nested gridspecs.
We may want to add an API to just go up one level in gridspecs (i.e.
public access to _subplot_spec) but I'd like to first consider whether
we could e.g. merge GridSpecFromSubplotSpec into GridSpec with the only
difference that the former's get_parent() (or another similarly named
new method) returns another gridspec whereas the latter's returns a
figure.1 parent f533687 commit 7879189
2 files changed
+14
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1035 | 1035 | | |
1036 | 1036 | | |
1037 | 1037 | | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
| 1038 | + | |
| 1039 | + | |
1042 | 1040 | | |
1043 | 1041 | | |
1044 | | - | |
1045 | | - | |
| 1042 | + | |
1046 | 1043 | | |
1047 | 1044 | | |
1048 | 1045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| |||
298 | 301 | | |
299 | 302 | | |
300 | 303 | | |
301 | | - | |
302 | | - | |
303 | | - | |
| 304 | + | |
304 | 305 | | |
305 | 306 | | |
306 | 307 | | |
| |||
0 commit comments