Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot unpickle polar plot #4068

Closed
joergdietrich opened this issue Feb 6, 2015 · 1 comment
Closed

Cannot unpickle polar plot #4068

joergdietrich opened this issue Feb 6, 2015 · 1 comment
Labels
Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Milestone

Comments

@joergdietrich
Copy link
Contributor

I create the polar plot example from http://matplotlib.org/examples/pie_and_polar_charts/polar_scatter_demo.html

Then

fig = plt.gcf()
pf = pickle.dumps(fig)
f2 = pickle.loads(pf)

throws the following exception:

/home/joerg/applications/anaconda3/lib/python3.4/site-packages/matplotlib/transforms.py in __setstate__(self, data_dict)
    116         self.__dict__ = data_dict
    117         # turn the normal dictionary back into a WeakValueDictionary
--> 118         self._parents = WeakValueDictionary(self._parents)
    119 
    120     def __copy__(self, *args):

AttributeError: 'PolarAffine' object has no attribute '_parents'

Note that this is separate from issue #3483 in that plt.ioff() before unpickling does not work.

@pelson pelson added the Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues label Feb 6, 2015
@pelson
Copy link
Member

pelson commented Feb 6, 2015

Thanks @joergdietrich. This should be a relatively easy fix. If you are interested in having a go, a similar problem was fixed in #3627. Otherwise, we will try to pick this one up before the next release.

@pelson pelson added this to the v1.4.x milestone Feb 6, 2015
@tacaswell tacaswell modified the milestones: v1.4.x, 1.5.0 Feb 7, 2015
ghost pushed a commit to dkua/matplotlib that referenced this issue Mar 23, 2015
tacaswell added a commit that referenced this issue Mar 25, 2015
BUG : Fix for unpickling polar plot

closes #4068
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty: Easy https://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Projects
None yet
Development

No branches or pull requests

3 participants