-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
matplotlib 3d interactive plot boundaries #24679
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
The box aspect is fixed in 3D plots, but you can change it by calling |
@oscargus from mpl_toolkits.mplot3d import Axes3D
import math as mt
def attracteur(x,y,z,dt):
lx,ly,lz,=[x],[y],[z]
t=0
β,ρ,σ=8/3,28,10
while t<100:
x,y,z=(x+dt*(σ*(y-x))),(y+dt*(ρ*x-y-x*z)),(z+dt*(y*x-β*z))
t+=dt
lx.append(x)
ly.append(y)
lz.append(z)
pl.figure()
ax=pl.axes(projection='3d')
ax.plot3D(lx,ly,lz,'b',linewidth=0.5)
pl.title('')
ax.set_ylabel('$y$')
ax.set_xlabel('$x$')
ax.set_zlabel('$z$')
pl.show() and a video will explain itself |
Sorry, it didn't work as I expected. One can affect it, but I cannot really find a way to expand it to cover the whole frame. May be related with #20655 |
I think this is fixed by #27349. |
I don't believe this is related to #27349 - my interpretation of the original issue is that the user wants to expand the 2D clip box to fill the entire figure, like so |
Wow ! To be honest i was surprised to get any emails out of that issue recently. And yes what the previous comment illustrates is exactly what i was asking about. Are they still no commands to do it ? |
Hey @SaHaddad, unfortunately there is still not a way to change this yet. |
No worries this is just a nit pick. |
Uh oh!
There was an error while loading. Please reload this page.
Hi I want to zoom in more on the plot but the curve is cutted out by a "frame" as shown in the picture below and i would like to see the curve fill all the window. I asked help on discord but couldn't get an answer any help would be greatly appreciated

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