[go: up one dir, main page]

Skip to content
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

AttributeError: 'Axes3DSubplot' object has no attribute 'set_box_aspect' #11

Open
programmer-04 opened this issue Sep 24, 2022 · 1 comment

Comments

@programmer-04
Copy link

Running the script gave me throws this error. I suspect it is because of a version mismatch.
I think you should specify version numbers in your requirements.txt

Traceback (most recent call last):
File "obj2png/src/obj2png.py", line 122, in
ob.Plot(outfile,elevation=elevation,azim=azim,dpi=dpi,scale=scale,animate=animate)
File "/content/obj2png/src/ObjFile.py", line 184, in Plot
ax.set_box_aspect(np.ptp(limits, axis = 1))
AttributeError: 'Axes3DSubplot' object has no attribute 'set_box_aspect'`

@pclausen
Copy link
Owner

@programmer-04 Which version of Python and matplotlib are you using ?

I think you should specify version numbers in your requirements.txt

I probably should but I was expecting most versions to work so I did not want to block anyone on older systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants