SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] mplot3d "set_zlim" x "set_zlim3d" ?

From: Benjamin R. <ben...@ou...> - 2011年11月27日 20:09:21
On Sunday, November 27, 2011, Roberto Colistete Jr. <
rob...@gm...> wrote:
> Hi,
>
> In MatPlotLib 1.0.0 the example 'mplot3d/surface3d_demo.py' has the
> line :
> ax.set_zlim3d(-1.01, 1.01)
> while the same file in MatPlotLib 1.1.0 has :
> ax.set_zlim(-1.01, 1.01)
>
> If I try to use ax.set_zlim(-1.01, 1.01) with MatPlotLib 1.0.0 I get :
> "$ python surface3d_demo.py
> Traceback (most recent call last):
> File "surface3d_demo.py", line 16, in <module>
> ax.set_zlim(-1.01, 1.01)
> AttributeError: 'Axes3DSubplot' object has no attribute 'set_zlim'"
>
> So what is the recommended way for maximum compatibility
> (1.0.0/1.1.0) ? Use 'set_zlim' or 'set_zlim3d ?
>
> Thanks in advance,
>
> Roberto
>
What is recommended is to upgrade to v1.1.0 where the behavior is much more
intuitive and follows expected conventions. If that is not possible, then
use set_*lim3d().
Ben Root

View entire thread

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 によって変換されたページ (->オリジナル) /