We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I try to run code/scales-projections/projection-3d-frame.py and then there's an error: AttributeError: 'Arrow3D' object has no attribute 'do_3d_projection'
code/scales-projections/projection-3d-frame.py
AttributeError: 'Arrow3D' object has no attribute 'do_3d_projection'
my env: python: 3.11, matplotlib: 3.8.0
then I found a possible solution here -> matplotlib issues#21688 when I change class Arrow3D to :
Arrow3D
class Arrow3D(mpatches.FancyArrowPatch): def __init__(self, xs, ys, zs, *args, **kwargs): mpatches.FancyArrowPatch.__init__(self, (0, 0), (0, 0), *args, **kwargs) self._verts3d = xs, ys, zs def do_3d_projection(self, renderer=None): xs3d, ys3d, zs3d = self._verts3d xs, ys, zs = proj3d.proj_transform(xs3d, ys3d, zs3d, self.axes.M) self.set_positions((xs[0],ys[0]),(xs[1],ys[1])) return np.min(zs)
it works, so I think maybe projection-3d-frame.py need to be updated?
projection-3d-frame.py
The text was updated successfully, but these errors were encountered:
Thanks and yes. Can you make a PR?
Sorry, something went wrong.
I have already made a PR(I hope I got it right), thanks for your wonderful book!
Merge, thanks for your contribution.
No branches or pull requests
I try to run
code/scales-projections/projection-3d-frame.py
and then there's an error:
AttributeError: 'Arrow3D' object has no attribute 'do_3d_projection'
my env: python: 3.11, matplotlib: 3.8.0
then I found a possible solution here -> matplotlib issues#21688
when I change class
Arrow3D
to :it works, so I think maybe
projection-3d-frame.py
need to be updated?The text was updated successfully, but these errors were encountered: