-
-
Notifications
You must be signed in to change notification settings - Fork 237
Tikzplotlib error on 3D surface plot #483
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
Comments
Duplicate of #119. |
UPDATE: Following another issue here #416, I tried adding a Specifically, the input looks like: from matplotlib import pyplot as plt
import tikzplotlib
import numpy as np
X, Y = np.meshgrid(np.linspace(0, 1), np.linspace(0, 1))
fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
ax.plot_surface(X, Y, X + Y)
plt.savefig("C:/Users/User/Downloads/rosen.png") # THIS IS THE NEW LINE ADDED
tikzplotlib.save("C:/Users/User/Downloads/rosen.tex")
plt.show() Happy to upload the resulting |
@nschloe Are you sure that this is a matplotlib issue and that this issue should be closed? Seems strange that a Even if it is a matplotlib issue, internally adding a |
Wait, it works and produces the correct result for you? A 3D plot? I want to believe, so show me a screenshot of your LaTeX output. |
Problem Description
Trying to plot a simple 3D surface plot and then save the results with tikzplotlib throws an error.
Minimum working example:
Results in an
AttributeError
thown by tikzplotlib:The associated figure:

Version Info
The text was updated successfully, but these errors were encountered: