Permalink
Browse files

Final changes to pickling support. A few outstanding known issues (co…

…lorbar/legend/geoaxes).
  • Loading branch information...
1 parent edf266c commit d68f49c925d1ea84f1b361bcb346d47004199851 @pelson committed Aug 20, 2012
Showing with 212 additions and 239 deletions.
  1. +2 −1 doc/users/whats_new.rst
  2. +2 −0 lib/matplotlib/cbook.py
  3. +208 −236 lib/matplotlib/projections/polar.py
  4. +0 −2 lib/matplotlib/ticker.py
View
@@ -73,7 +73,8 @@ minimum and maximum colorbar extensions.
Figures are picklable
---------------------
-Philip Elson made figures picklable for quick storage of plots. Pickle files
+Philip Elson added an experimental feature to make figures picklable
+for quick and easy short-term storage of plots. Pickle files
are not designed for long term storage, are unsupported when restoring a pickle
saved in another matplotlib version and are insecure when restoring a pickle
from an untrusted source. Having said this, they are useful for short term
View
@@ -267,6 +267,8 @@ def __init__(self, *args):
self._func_cid_map = {}
def __getstate__(self):
+ # We cannot currently pickle the callables in the registry, so
+ # return an empty dictionary.
return {}
def __setstate__(self, state):
Oops, something went wrong.

0 comments on commit d68f49c

Please sign in to comment.