Re: [Matplotlib-users] Watermarking figures/axes

2008-03-06 Thread Jouni . Seppanen
"Anthony Floyd" <[EMAIL PROTECTED]> writes: > I would like to 'watermark' a plot. That is, display an image 'under' > several lines. [...] I've tried using figure.figimage, but that only > draws the watermark 'outside' the plot area. Fair enough. The background of the axes object is called a "fra

[Matplotlib-users] Basemap cache

2008-03-06 Thread Stephane Raynaud
Hi Jeff: how about introducing a cache system for Basemap objects? You recently gave me the idea of using cPickle on Basemap objects, so I implement a very simple cache system that try to check if map has already been serialized and dumped to a cache file, before trying to create it from scratch.

Re: [Matplotlib-users] basemap scalebar

2008-03-06 Thread Stephane Raynaud
Hi, this scalebar is a really good idea! However, I suggest that all parameters must be optional: - The position could be by default somewhere in the lower left corner (for example). It may be interesting to find a "best" position using the algo of legend. - Then length could be estimated from au

[Matplotlib-users] Basemap and imshow

2008-03-06 Thread Tommy Grav
Is there a way of using imshow together with a basemap? Cheers Tommy - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/

Re: [Matplotlib-users] Basemap and imshow

2008-03-06 Thread Jeff Whitaker
Tommy Grav wrote: > Is there a way of using imshow together with a basemap? > > Cheers >Tommy > Tommy: Use the imshow basemap method, just as you would the pylab version. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 NOAA/OAR/CDC R/PSD1FAX : (303)497-6449 325 Broa

Re: [Matplotlib-users] Basemap cache

2008-03-06 Thread Jeff Whitaker
Stephane Raynaud wrote: > Hi > > Jeff: how about introducing a cache system for Basemap objects? > > You recently gave me the idea of using cPickle on Basemap objects, so > I implement a very simple cache system that try to check if map has > already been serialized and dumped to a cache file, befo

Re: [Matplotlib-users] Basemap and imshow

2008-03-06 Thread Tommy Grav
Thanks for pointing this function out. I thought I had look for it, but must have overlooked it. I am using the test code below, but the array is plotted outside the boundary of the map. Is there a way to avoid this? Cheers Tommy from math import * from matplotlib.toolkits.basemap import

Re: [Matplotlib-users] Basemap and imshow

2008-03-06 Thread Jeff Whitaker
Tommy Grav wrote: > Thanks for pointing this function out. I thought I had look for it, > but must have overlooked it. > > I am using the test code below, but the array is plotted outside the > boundary of the map. Is there > a way to avoid this? > > Cheers > Tommy > > from math import * >

Re: [Matplotlib-users] basemap scalebar

2008-03-06 Thread Jeff Whitaker
Stephane Raynaud wrote: > Hi, > > this scalebar is a really good idea! > > However, I suggest that all parameters must be optional: > - The position could be by default somewhere in the lower left corner > (for example). It may be interesting to find a "best" position using > the algo of legend. >

[Matplotlib-users] errorbar and legend(loc='best') gives error

2008-03-06 Thread Kevin Christman
When errorbar() and legend(loc='best') are used an error message appears. But other legend locations (e.g. 'upper left' or 'upper right') work fine. pylab.figure() pylab.errorbar(xdata,ydata,z*y_standardError,fmt='o-',label='test') pylab.legend(loc='best') pylab.show() Exce

Re: [Matplotlib-users] basemap scalebar

2008-03-06 Thread Stephane Raynaud
On Thu, Mar 6, 2008 at 6:15 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Stephane Raynaud wrote: > > Hi, > > > > this scalebar is a really good idea! > > > > However, I suggest that all parameters must be optional: > > - The position could be by default somewhere in the lower left corner >

Re: [Matplotlib-users] basemap scalebar

2008-03-06 Thread Jeff Whitaker
Stephane Raynaud wrote: > On Thu, Mar 6, 2008 at 6:15 PM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > >> Stephane Raynaud wrote: >> > Hi, >> > >> > this scalebar is a really good idea! >> > >> > However, I suggest that all parameters must be optional: >> > - The position could be by default

[Matplotlib-users] imshow alpha problem

2008-03-06 Thread Tommy Grav
I have an array of 0s and 1s and plot it with imshow. Is there a way to set the 0 part only to have a transparency (alpha)? Cheers Tommy - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visu