Pickling of log axes #1539

Closed
pelson opened this Issue Nov 28, 2012 · 1 comment

Projects

None yet

2 participants

@pelson
Matplotlib Developers member

The following question was asked on stack overflow:


Pickling doesn't work when one uses logscale, eg:

import matplotlib.pyplot as plt
import numpy as np
import pickle
ax = plt.subplot(111)
x = np.linspace(0, 10)
y = np.exp(x)
plt.plot(x, y)
ax.set_yscale('log')
pickle.dump(ax, file('myplot.pickle', 'w'))

Results in the following:

PicklingError: Can't pickle <class 'matplotlib.scale.Log10Transform'>: attribute lookup matplotlib.scale.Log10Transform failed

Anybody knows any solution/workaround to this?

@pelson pelson was assigned Nov 28, 2012
@pelson pelson referenced this issue May 9, 2013
Merged

Log scale pickle #1989

@mdboom
Matplotlib Developers member

Fixed by #1989

@mdboom mdboom closed this May 10, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment