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!
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.
Traceback (most recent call last):
line 253, in button_release_event
FigureCanvasBase.button_release_event(self, x, y, event.button,
line 1603, in button_release_event
line 262, in process
line 188, in call
return mtd(*args, **kwargs)
line 2575, in release_pan
line 2788, in end_pan
Yes, there is a known issue with objects not properly rendering when viewed at certain angles. How to go about solving this seems to be a difficult one to figure out.
Also, thanks for pointing out the difference between calling gca() and creating the Axes3D object directly. I am not sure exactly why there would be a difference, but I will look into it right away.
On Sun, Jul 18, 2010 at 8:56 AM, João Luís Silva <jsilva@…250…> wrote:
On 07/18/2010 04:58 AM, H Mike Duan wrote:
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