|
From: Xavier G. <gn...@ob...> - 2004-12-21 17:58:09
|
Hi,
Please consider this code in colors.py (from 546) :
if vmin is None or vmax is None:
rval = ravel(val)
if vmin is None:
vmin = min(rval)
if vmax is None:
vmax = max(rval)
On my computer to be much faster without using rval :
if vmin is None or vmax is None:
#rval = ravel(val)
if vmin is None:
vmin = val.min()
if vmax is None:
vmax = val.max()
I am now able to do a "A=rand(2000,2000) figimage(A)" in a almost
acceptable duration.
Hope this helps
Xavier.
ps : may be in double. sorry.
|