Hi JJ, Thanks for the examples! I indeed suspected the anti-aliasing as well. I'll include an option for linecolors = facecolors soon (probably this weekend); it seems to be a good solution.
After that I'll try to implement usage of the Gouraud shading, although I fear that this will not look nice with edgecolors=facecolors, so anti-aliasing might have to be turned off in that case. Is it perhaps possible to only render the surface with AA off? Cheers, Reinier On Wed, Aug 26, 2009 at 5:03 PM, Jae-Joon Lee<lee.j.j...@gmail.com> wrote: > 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 -- Reinier Heeres Tel: +31 6 10852639 ------------------------------------------------------------------------------ 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