pythonmatplotlibmatplotlib-3d

No roll argument in matplotlib axes3d view_init method


I grab this image from the matplotlib documentation page on "mplot3d View Angles":

enter image description here

Based on the documentation, it seems that the method view_init() should have three arguments: elev (short for elevation), azim (short for azimuth), and roll. When I try passing the roll argument I get an error. So how can I adjust the roll angle of the camera position?

I tried to run this program, but there's an error.


Solution

  • Using matplotlib version 3.7.0 worked for me. Thanks to @jared's comment. I was previously using 3.6.1.