|
From: Damon M. <dam...@gm...> - 2012-10-19 21:26:12
|
On Fri, Oct 19, 2012 at 10:23 PM, Daπid <dav...@gm...> wrote: > On Fri, Oct 19, 2012 at 11:08 PM, elmar werling <el...@ne...> wrote: >> vmin=min(z), vmax=max(z) > > A suggestion, when dealing with arrays, it is generally faster to use > the numpy function to compute the max and min, either np.max(z) or > z.max(), than the standard Python one. Correct me if I'm wrong, but I don't even think you need them. I think the default cmap behaviour is to normalise to the min and max of the data. -- Damon McDougall http://www.damon-is-a-geek.com B2.39 Mathematics Institute University of Warwick Coventry West Midlands CV4 7AL United Kingdom |