Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

axes3d.py error when using lines3d and surface3d demos #3898

Closed
@jmccormac01

Description

@jmccormac01

Hi, I recently grabbed the 1.5.x version of matplotlib from github and get some errors when using the 3d plotting demos on the matplotlib website. See below for an output. I am running python 2.7.8_2 from homebrew. I get the same error for both demo scripts. Has something changed in 1.5.x such that the demos are calling things differently?

The plotting window appears but shows nothing inside, accept for a line along the x axis at z=0. See image attached.

Cheers
James

Mac OS X 10.10.1 Yosemite

James@Jamess-MBP>python-ilines3d_demo.pyTraceback (mostrecentcalllast):File"/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.10-x86_64.egg/matplotlib/artist.py",line59,indraw_wrapperdraw(artist,renderer,*args,**kwargs)File"/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/matplotlib-1.5.x-py2.7-macosx-10.10-x86_64.egg/matplotlib/figure.py",line1090,indrawfunc(*args)File"/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpl_toolkits/mplot3d/axes3d.py",line273,indrawax.draw(renderer)File"/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpl_toolkits/mplot3d/axis3d.py",line264,indrawself.axes.transAxes.transform(peparray[0:2,0]))ValueError:Expected2-dimensionalarray,got1

after a few seconds with the figure open this appears:

/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mpl_toolkits/mplot3d/axes3d.py:1094:FutureWarning:comparisonto`None`willresultinanelementwiseobjectcomparisoninthefuture.ifself.button_pressedinself._rotate_btn:

screen shot 2014-12-07 at 11 00 06

[TAC edited formatting]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp