On Wed, Jun 30, 2010 at 10:39 AM, Jeremy Conlin <jlcon...@gmail.com> wrote: > Essentially my question is: how can I get a nice color distribution > while at the same time avoid the extreme scaling issues associated > with some data being zero (while all the other data is ~16)?
It seems that plot_surface method does have some issue with NaNs. I think it is best if you manually adjust the color range. For example, vmin = np.nanmin(mass) vmax = np.nanmax(mass) ax.plot_surface(X, Y, mass, rstride=1, cstride=1, cmap=cm.jet, vmin=vmin, vmax=vmax) IHTH, -JJ ------------------------------------------------------------------------------ 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-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users