-
Notifications
You must be signed in to change notification settings - Fork 132
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
How do you save the images TrackPy creates for reports #729
Comments
Have you tried not calling If you want to remove all ambiguity, you can get or create axes in the current figure and make sure that fig = plt.figure()
ax = fig.get_axes()
tp.plot_traj(..., ax=ax)
fig.savefig(...) |
EDIT: Spelling I tried this
but get the error `AttributeError Traceback (most recent call last) AttributeError: 'AxesSubplot' object has no attribute 'savefig'` |
That's right. I'll admit I'm a bit surprised that |
Ahhhh I see. I gave this a try
getting
|
You're asking the wrong person for matplotlib help, but you could do this instead. fig = plt.figure()
ax = plt.gca()
tp.plot_traj(..., ax=ax)
fig.savefig(...) or ax = tp.plot_traj(...)
ax.figure.savefig(...) |
I have tried the following
plt.figure("1")
tp.plot_traj(t1, superimpose=frame[1000])
plt.imsave("C:/Users/Rory/Downloads", arr="MxN")
The text was updated successfully, but these errors were encountered: