SourceForge logo
SourceForge logo
Menu

matplotlib-devel

From: cgraves <chr...@gm...> - 2011年12月10日 19:58:57
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.
From: Benjamin R. <ben...@ou...> - 2011年12月12日 15:41:30
On Sat, Dec 10, 2011 at 1:58 PM, cgraves <chr...@gm...> 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
>
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /