[Matplotlib-users] sharing labels and legends across subplots

2009-10-11 Thread per freem
hi all, i am trying to share both an axis label (but not the entire axis) and a figure legend across a set of subplots. that is, i'd like to have a figure where there is a major enlarged ylabel that is meant to label the entire row of subplots and a main figure legend, rather than individual

Re: [Matplotlib-users] sharing labels and legends across subplots

2009-10-11 Thread Gökhan Sever
On Sun, Oct 11, 2009 at 9:07 AM, per freem perfr...@gmail.com wrote: hi all, i am trying to share both an axis label (but not the entire axis) and a figure legend across a set of subplots. that is, i'd like to have a figure where there is a major enlarged ylabel that is meant to label the

Re: [Matplotlib-users] Images and memory management

2009-10-11 Thread Leo Trottier
Hi Michael, I suppose I'm a bit confused -- I thought that jpeglib, part of which is implemented by PIL (??) could process compressed images without representing decompressing them to a dense raster-image matrix (http://en.wikipedia.org/wiki/Jpeglib). That said, I tried to do some PIL things,

Re: [Matplotlib-users] Images and memory management

2009-10-11 Thread Robert Kern
Leo Trottier wrote: Hi Michael, I suppose I'm a bit confused -- I thought that jpeglib, part of which is implemented by PIL (??) Other way around. PIL uses jpeglib to read JPEG files. could process compressed images without representing decompressing them to a dense raster-image matrix

[Matplotlib-users] plot color as a function of values?

2009-10-11 Thread Xavier Gnata
Hi, Imagine you have something like: from pylab import * t = arange(0.0, 2.0, 0.01) s = sin(2*pi*t) ax = subplot(111) ax.plot(t, s) That's fine but now I would like to plot the negative parts of the curve in red and the positive one in green. Is there a nice pylab oriented way to do that? Some

Re: [Matplotlib-users] basemap, transform_scalar question

2009-10-11 Thread Eric Firing
John [H2O] wrote: Jeff Whitaker wrote: John: I don't have time to look at your code right now, but let me just make some general comments about plotting images on maps. If you want to use imshow, the data your are plotting must coincide exactly with your map plot area. So, for

Re: [Matplotlib-users] readshapefile

2009-10-11 Thread Jeff Whitaker
Steve Westenbroek wrote: Hi Jeff, I apologize in advance for contacting you directly, however, I've been Googling and RTFM-ing to no avail! If you have time and/or inclination, I have two questions for you regarding the Basemap module under Matplotlib. 1) I've been struggling to use

Re: [Matplotlib-users] plot color as a function of values?

2009-10-11 Thread Eric Firing
Xavier Gnata wrote: Hi, Imagine you have something like: from pylab import * t = arange(0.0, 2.0, 0.01) s = sin(2*pi*t) ax = subplot(111) ax.plot(t, s) That's fine but now I would like to plot the negative parts of the curve in red and the positive one in green. Is there a nice

Re: [Matplotlib-users] basemap, transform_scalar question

2009-10-11 Thread Jeff Whitaker
John [H2O] wrote: Jeff Whitaker wrote: John: I don't have time to look at your code right now, but let me just make some general comments about plotting images on maps. If you want to use imshow, the data your are plotting must coincide exactly with your map plot area. So, for

[Matplotlib-users] making horizontal axes labels in plots

2009-10-11 Thread per freem
hi all, i am trying to make horizontal (as opposed to the default vertical) rotated labels for axes in my subplots. i tried using the 'orientation' optional argument, as follows: from numpy import * from scipy import * from mpl_toolkits.axes_grid.axislines import SubplotZero import