From: Jae-Joon L. <lee...@gm...> - 2010-07-06 02:57:05
|
On Wed, Jun 30, 2010 at 10:39 AM, Jeremy Conlin <jlc...@gm...> 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 |