Skip to content

Cannot unpickle polar plot #4068

@joergdietrich

Description

@joergdietrich

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy