2010/3/18 Ciarán Mooney <[email protected]>:
> value = (log(x)/log(largest))*255
Just two thoughts:
1) I doubt the statement cited above is not correct, as it may also
yield negative values as soon as 0 < x < 1. In fact, you are
calculating log_{largest}(x). This crosses zero for x = 1. What I
deem correct instead, is a linear mapping of the log space (logmin,
log(largest)) onto (0, 1). There logmin may be negative.
2) When matplotlib does the job, maybe use:
axes = fig.add_axes([0, 0, 1, 1])
axes.imshow(...)
This lets the axes fill the whole figure space, without margins. You
can also turn off the ticks if you want.
Friedrich
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users