On 07/18/2010 04:58 AM, H Mike Duan wrote:
> Hi,
>
> There seems to be a problem in how 3D surfaces and lines are rendered
> in mplot3d. The following is a simple script that plots a yellow
> sphere, a blue wireframe on the surface of the sphere, and a red
> wireframe outside the sphere. The semi-transparent yellow sphere is
> rendered beautifully. The blue wireframe can only be seen with certain
> viewing angles. The red wireframe is seen all the time, but its part
> that is supposedly behind the sphere appears in front of the sphere.
> Did I do something wrong or is it a bug of mplot3d? I am using
> matplotlib 1.0.0 on Mac OS X 10.6. Thanks!
>
> -Mike

Additionally the presented example (after adding a plt.show()) will give 
the appended traceback if the sphere is panned around. That won't happen 
if the line

ax = fig.gca(projection='3d')

is replaced with:

ax = Axes3D(fig)

Latest mpl svn (r8565), OS: Debian testing.

Regards,
João Luís



Traceback (most recent call last):
   File 
"/usr/local/lib/python2.6/dist-packages/matplotlib/backends/backend_gtk.py", 
line 253, in button_release_event
     FigureCanvasBase.button_release_event(self, x, y, event.button, 
guiEvent=event)
   File 
"/usr/local/lib/python2.6/dist-packages/matplotlib/backend_bases.py", 
line 1603, in button_release_event
     self.callbacks.process(s, event)
   File "/usr/local/lib/python2.6/dist-packages/matplotlib/cbook.py", 
line 262, in process
     proxy(*args, **kwargs)
   File "/usr/local/lib/python2.6/dist-packages/matplotlib/cbook.py", 
line 188, in __call__
     return mtd(*args, **kwargs)
   File 
"/usr/local/lib/python2.6/dist-packages/matplotlib/backend_bases.py", 
line 2575, in release_pan
     a.end_pan()
   File "/usr/local/lib/python2.6/dist-packages/matplotlib/axes.py", 
line 2788, in end_pan
     del self._pan_start
AttributeError: _pan_start


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to