Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Fernando Perez
On Mon, Dec 8, 2008 at 1:58 PM, Ryan May <[EMAIL PROTECTED]> wrote: > John Hunter wrote: > The scaling changes are in, as well as the warning and the corresponding > lines in > api_changes and CHANGELOG. I also added the converted matlab demo I used to > figure this stuff out. Now would probab

Re: [Matplotlib-users] fancy patch formatting breaking tex document

2008-12-08 Thread Jae-Joon Lee
John, I remember that "-" is also rendedered as a dot in the HTML output. Using "\-" instead of "-" seems to work. But, I'm afraid that the help (or similar) command, which I frequently use in interactive sessions, may show "\-" instead of "-". So, quoting seems to be a best option to me. Regar

[Matplotlib-users] Changing Axis Font info

2008-12-08 Thread Chad Kidder
I've been looking for an elegant way to change, on a per-plot basis, the font attributes of my x and y tick labels. The best I've come up with is getting a list/collection of tick labels and looping through it to change the font attributes. Is there an easy one or two line way to do it?

[Matplotlib-users] fancy patch formatting breaking tex document

2008-12-08 Thread John Hunter
In the Curve class of patches.py, where we are doing: _style_list["-"] = Curve and interpolating this into a rest table via patches._pprint_styles, which looks like this:: == = Class Name Attrs ==

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Ryan May
John Hunter wrote: > On Mon, Dec 8, 2008 at 10:56 AM, Ryan May <[EMAIL PROTECTED]> wrote: > >> My only other concern is whether this belongs in 0.98.x. This is a behavior >> change from 0.98.3, not necessarily a bug fix. I'll defer to John, et al. >> on whether this should go in 0.98.x or go in

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread Chad Kidder
On Dec 8, 2008, at 2:00 PM, Ryan May wrote: > Chad Kidder wrote: >> On Dec 8, 2008, at 12:55 PM, Ryan May wrote: >>> Chad Kidder wrote: I've got many series of data that I want to plot, and each has an additional scalar that is valid for the whole series. What I want to do

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread Ryan May
Chad Kidder wrote: > On Dec 8, 2008, at 12:55 PM, Ryan May wrote: > >> Chad Kidder wrote: >>> I've got many series of data that I want to plot, and each has an >>> additional scalar that is valid for the whole series. What I want >>> to do is plot all these series on top of each other (plot

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread Eric Firing
Chad Kidder wrote: > On Dec 8, 2008, at 12:55 PM, Ryan May wrote: > >> Chad Kidder wrote: >>> I've got many series of data that I want to plot, and each has an >>> additional scalar that is valid for the whole series. What I want >>> to do is plot all these series on top of each other (plot

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 1:25 PM, Chad Kidder <[EMAIL PROTECTED]> wrote: --- > Instead of getting a grayscale plot out, I'd like to use a colormap > like jet() or winter(). Any ideas there? How about? import matplotlib.cm as cm for ii in range(nlines): color = cm.jet(z[i

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread Chad Kidder
On Dec 8, 2008, at 12:55 PM, Ryan May wrote: > Chad Kidder wrote: >> I've got many series of data that I want to plot, and each has an >> additional scalar that is valid for the whole series. What I want >> to do is plot all these series on top of each other (plot can do >> this just fin

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Ryan May
John Hunter wrote: > On Mon, Dec 8, 2008 at 10:56 AM, Ryan May <[EMAIL PROTECTED]> wrote: > >> My only other concern is whether this belongs in 0.98.x. This is a behavior >> change from 0.98.3, not necessarily a bug fix. I'll defer to John, et al. >> on whether this should go in 0.98.x or go in

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread Ryan May
Chad Kidder wrote: > I've got many series of data that I want to plot, and each has an > additional scalar that is valid for the whole series. What I want to > do is plot all these series on top of each other (plot can do this > just fine), but with the additional scalar changing the color,

Re: [Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 12:45 PM, Chad Kidder <[EMAIL PROTECTED]> wrote: > I've got many series of data that I want to plot, and each has an > additional scalar that is valid for the whole series. What I want to > do is plot all these series on top of each other (plot can do this > just fine), but

[Matplotlib-users] using color as z-axis for plots

2008-12-08 Thread Chad Kidder
I've got many series of data that I want to plot, and each has an additional scalar that is valid for the whole series. What I want to do is plot all these series on top of each other (plot can do this just fine), but with the additional scalar changing the color, efectively using color as

Re: [Matplotlib-users] Drawing map scales with Basemap

2008-12-08 Thread Mauro Cavalcanti
Dear Jeff, 2008/12/8 Jeff Whitaker <[EMAIL PROTECTED]>: > Mauro: That's because the default is not really a map projection at all - > it just displays the data in lat/lon coordinates.The map scale really > has no meaning in that case. Sure, however some biological journals insist that author

Re: [Matplotlib-users] Drawing map scales with Basemap

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > Thanks Unfortunately, the map scale cannot be drawn for > cylindrical projections like the Equirectangular default... :-( > Mauro: That's because the default is not really a map projection at all - it just displays the data in lat/lon coordinates.

Re: [Matplotlib-users] Drawing map scales with Basemap

2008-12-08 Thread Mauro Cavalcanti
Dear Jeff, Thanks Unfortunately, the map scale cannot be drawn for cylindrical projections like the Equirectangular default... :-( Best wishes, 2008/12/8 Jeff Whitaker <[EMAIL PROTECTED]>: > Mauro Cavalcanti wrote: >> >> Dear Jeff & ALL, >> >> Are there any examples of the use of the drawmap

Re: [Matplotlib-users] Drawing map scales with Basemap

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff & ALL, > > Are there any examples of the use of the drawmapscale() Basemap > method? I can use this myself and will also add any examples to the > forthcoming "Basemap Cookbook" website (for this, I am compiling all > available examples). > > Thanks in advance! >

[Matplotlib-users] Drawing map scales with Basemap

2008-12-08 Thread Mauro Cavalcanti
Dear Jeff & ALL, Are there any examples of the use of the drawmapscale() Basemap method? I can use this myself and will also add any examples to the forthcoming "Basemap Cookbook" website (for this, I am compiling all available examples). Thanks in advance! Best wishes, -- Dr. Mauro J. Cavalca

Re: [Matplotlib-users] General questions about Basemap

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/8 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro: I just added a 'scale' keyword to bluemarble that downsamples the >> image to speed things up. scale=1.0 (the default) gives the same answer as >> before (the full resolution image). scale=0.5 do

Re: [Matplotlib-users] General questions about Basemap

2008-12-08 Thread Mauro Cavalcanti
Dear Jeff, 2008/12/8 Jeff Whitaker <[EMAIL PROTECTED]>: > Mauro: I just added a 'scale' keyword to bluemarble that downsamples the > image to speed things up. scale=1.0 (the default) gives the same answer as > before (the full resolution image). scale=0.5 downsamples the image to half > the ori

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 10:56 AM, Ryan May <[EMAIL PROTECTED]> wrote: > My only other concern is whether this belongs in 0.98.x. This is a behavior > change from 0.98.3, not necessarily a bug fix. I'll defer to John, et al. > on whether this should go in 0.98.x or go in a later release. It's a j

Re: [Matplotlib-users] General questions about Basemap

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear ALL, > > I am using Basemap version 0.90 with MPL version 0.98.3 under Linux > Ubuntu, both installed from Andrew Straw repository (I just prefer to > install from repositories via apt than directly from the sources, > although in this case I do not have always the la

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Ryan May
John Hunter wrote: > On Mon, Dec 8, 2008 at 9:10 AM, Fago, Matt - AES <[EMAIL PROTECTED]> wrote: >> So what is to be done here? It seems to me that at least the factor of two >> should be >> fixed for one-sided PSDs, and the 1/fs normalization difference with Matlab >> documented. Ideally, I'd thi

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread John Hunter
On Mon, Dec 8, 2008 at 9:10 AM, Fago, Matt - AES <[EMAIL PROTECTED]> wrote: > > So what is to be done here? It seems to me that at least the factor of two > should be > fixed for one-sided PSDs, and the 1/fs normalization difference with Matlab > documented. Ideally, I'd think this normalization w

Re: [Matplotlib-users] Matplotlib PSD bug?

2008-12-08 Thread Fago, Matt - AES
So what is to be done here? It seems to me that at least the factor of two should be fixed for one-sided PSDs, and the 1/fs normalization difference with Matlab documented. Ideally, I'd think this normalization would be on by default, with the option to turn it off. Are you planning to submit a

Re: [Matplotlib-users] How do I increase the left-margin of pylab plots?

2008-12-08 Thread Roy H. Han
Cool! Thanks. pyplot.subplots_adjust seems to be some kind of "super" function that controls margins for the entire figure as well as spacing between the subplots. On Mon, Dec 8, 2008 at 1:32 AM, Pierre GM <[EMAIL PROTECTED]> wrote: > > On Dec 8, 2008, at 1:09 AM, Roy H. Han wrote: > > > I figu

Re: [Matplotlib-users] A question on Basemap projection

2008-12-08 Thread Mauro Cavalcanti
Dear Jeff, 2008/12/8 Jeff Whitaker <[EMAIL PROTECTED]>: > Mauro: I realized that this is actually possible with the Cassini > projection (the transverse aspect of the cylindrical equidistant). > > Don't know why you would actually do it though, if you want to show polar > regions you should proba

Re: [Matplotlib-users] A question on Basemap projection

2008-12-08 Thread Mauro Cavalcanti
Dear Jeff, 2008/12/8 Jeff Whitaker <[EMAIL PROTECTED]>: > Mauro: I just updated SVN basemap so you can specify just lon_0 for all > cylindrical projections (cyl,gall,merc,mill) to get a global map centered on > lon_0 (implying > llcrnrlat=-90,urcrnrlat=90,llcrnrlon=lon_0-180,urcrnrlon=lon_0+180)

Re: [Matplotlib-users] A question on Basemap projection

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/7 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance, >> llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while >> llcrnrlon=-180, urcrnrlon=180 will produce a map ce

Re: [Matplotlib-users] A question on Basemap projection

2008-12-08 Thread Jeff Whitaker
Mauro Cavalcanti wrote: > Dear Jeff, > > 2008/12/7 Jeff Whitaker <[EMAIL PROTECTED]>: > >> Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance, >> llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while >> llcrnrlon=-180, urcrnrlon=180 will produce a map ce

Re: [Matplotlib-users] A question on Basemap projection

2008-12-08 Thread Mauro Cavalcanti
Dear Jeff, 2008/12/7 Jeff Whitaker <[EMAIL PROTECTED]>: > Mauro: Just set the llrncrlat,urcrnrlon appropriately. For instance, > llcrnrlon=0, urcrnrlon=360 will produce a map centered on the dateline while > llcrnrlon=-180, urcrnrlon=180 will produce a map centered on Greenwich. Thanks! I had n