mplot3d tutorial, demo code needs slight fix

For the 3rd contour example at
http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html , the
code (
http://matplotlib.sourceforge.net/mpl_examples/mplot3d/contour3d_demo3.py )
should be changed from ax.set_xlim(-40, 40)
to ax.set_xlim3d(-40, 40) for the code to work. Same for ylim and zlim.
Probably the syntax was just updated since that example was made. Of course
any other examples on that page which use xlim should also be fixed.

Best,
Chris

···

--
View this message in context: http://old.nabble.com/mplot3d-tutorial%2C-demo-code-needs-slight-fix-tp32952017p32952017.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

Chris,

Because the documentation is for v1.1.0, the example code is correct. There has been significant updates to mplot3d for v1.1.0 that we really want to move users away from previous versions (and particularly, away from functions such as set_xlim3d()).

Thanks,
Ben Root

···

On Sat, Dec 10, 2011 at 1:58 PM, cgraves <christoph.graves@…149…> wrote:

For the 3rd contour example at

http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/tutorial.html , the

code (

http://matplotlib.sourceforge.net/mpl_examples/mplot3d/contour3d_demo3.py )

should be changed from ax.set_xlim(-40, 40)

to ax.set_xlim3d(-40, 40) for the code to work. Same for ylim and zlim.

Probably the syntax was just updated since that example was made. Of course

any other examples on that page which use xlim should also be fixed.

Best,

Chris