Re: [Matplotlib-users] Basemap with OO interface

2014-03-20 Thread Remo Goetschi
Stupid me! I overlooked parameter 'ax' of class Basemap. You can pass an axis when creating a Basemap instance: ax = fig.add_axes([0., 0., 1., 1.]) map = Basemap(, ax=ax) Best, Remo On 03/19/2014 04:41 PM, Remo Goetschi wrote: > Dear matplotlib users, > > I'm having trouble using Basemap t

[Matplotlib-users] OOP questions

2014-03-20 Thread Christophe Bal
Hello. Where do I look at so as to build my own patch ? Is it enough to look at, for example, the class defining rectangles ? Another question. Let suppose that I want to manage all the drawings, what will I have to do ? Imagine for example that I want to produce a TiKz code of a plot. Best rega

Re: [Matplotlib-users] How to put the label above horizontal colorbar?

2014-03-20 Thread Chao YUE
Dear Arnaldo, sorry for the delay in reply. Thanks a lot. This solves my problem well. Cheers, Chao On Sun, Mar 16, 2014 at 7:27 AM, Arnaldo Russo wrote: > Dear Chao, > > You could try this, > > import matplotlib > import matplotlib.pyplot as plt > > # create a color bar with: > sm = plt.cm.S

[Matplotlib-users] pcolorfast antialiasing

2014-03-20 Thread Jesper Larsen
Hi matplotlib users, I am currently performing some experiments with plotting in matplotlib for at web application. One thing I have noticed is that my image test sizes are reduced by a factor 4.5 when not using antialiasing. And that for pcolormesh the time it takes to produce a plot without anti

[Matplotlib-users] Changing figure background color (through rcparams?)

2014-03-20 Thread Adam Hughes
Hi, I am using an IPython notebook style that has a soft, yellow background that I think is more appealing that white. When I make a plot, I'd like the background of the plot (ie, everything that is outside the x and y axis) to be the same color. I'm trying to change the figure.facecolor paramet