On Wed, Aug 26, 2009 at 6:22 AM, German Ocampo<geroca...@gmail.com> wrote:
> Hello
>
> Are there some way to take out the gridlines from a surface in mplot3D
> and get a smooth colour change?
>


I think surface plot does not draw any gridlines by default (linewidth
set to 0). Maybe you're referring the artifacts between each surface
elements, as can be seen in the example below

http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo.html

My guess is that they are artifacts of antialiasing that edges gets
somewhat transparent.

So, you may turn off antialiasing, but plot gets a bit ugly. Or you
may actually strokes the edges with their face colors.

See the example plot attached.

The second example is created with high resolution grid to demonstrate
smooth color variation (this is extremely slow to render though).

It may be better if mplot3d has option for this, but I'll leave it to
Reinier, the original author of mplot3d.

Micheal,
If my understanding is correct, we will see this artifacts even with
the Gouraud shading. What do you think?

Regards,

-JJ

ps. I'm resending this message with external link to images due to the
attachment size limit in mpl list.

http://dl.getdropbox.com/u/178748/mpl/mplo3d_test_lowres.png
http://dl.getdropbox.com/u/178748/mpl/mplo3d_test_hires.png

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to