I have an interactive matplotlib figure that I would like to be able to access post generation and modify. Specifically I have a slider that modifies the line data in a subplot, and i would like to be able to go back and interact with this slider at any time after the image is originally created. From what I read here, pickle should be able to do this for me. However, when I try to load my .pickle file the script runs and nothing opens. Any thoughts?
For creating the file:
plt.show()
pickle.dump(fig, open(r"C:/users/.../file.pickle", 'wb'))
For reading the file:
ax = pickle.load(open(r'C:/Users/.../file.pickle', 'rb'))
plt.show()