Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Commitbd262e9
committed
Restore axes sharedness when unpickling.
Previously, pickling and unpickling shared axes would result inaxes sharing a ticker instance (because that's how shared axesare set up), but without changes of one's xlims propagated to theother. The reason is that that sharedness information is stored inAxesBase._shared_x_axes, which does *not* get pickled together with theAxes instance: the latter only has a textual reference "I am an instanceof AxesBase", so the Grouper information is lost.To keep the Grouper information valid, instead move the Groupers to theinstance dictionaries (as references to global groupers). Also makeGroupers picklable following a similar strategy as Transforms, i.e. bytransforming weakrefs into real refs when pickling and transforming themback into weakref when unpickling.1 parente22a16a commitbd262e9
File tree
3 files changed
+38
-4
lines changed- lib/matplotlib
- axes
- cbook
- tests
3 files changed
+38
-4
lines changedLines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
395 | 395 |
| |
396 | 396 |
| |
397 | 397 |
| |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
398 | 403 |
| |
399 | 404 |
| |
400 | 405 |
| |
401 | 406 |
| |
402 | 407 |
| |
403 |
| - | |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 | 408 |
| |
408 | 409 |
| |
409 | 410 |
| |
| |||
468 | 469 |
| |
469 | 470 |
| |
470 | 471 |
| |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
471 | 479 |
| |
472 | 480 |
| |
473 | 481 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
981 | 981 |
| |
982 | 982 |
| |
983 | 983 |
| |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
984 | 1003 |
| |
985 | 1004 |
| |
986 | 1005 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + |
0 commit comments
Comments
(0)