[Matplotlib-users] Fwd: color pallette suggestions wanted

2012-10-12 Thread Damon McDougall
Forgot to reply all. -- Forwarded message -- From: *Damon McDougall* Date: Friday, October 12, 2012 Subject: [Matplotlib-users] color pallette suggestions wanted To: Andreas Hilboll On Fri, Oct 12, 2012 at 10:17 AM, Andreas Hilboll > wrote: > Hi, > > I have some data I want to p

Re: [Matplotlib-users] Format date tick labels

2012-10-12 Thread Mark Lawrence
On 13/10/2012 00:37, Ethan Gutmann wrote: > On Oct 12, 2012, at 4:15 PM, Mark Lawrence wrote: > >> On 12/10/2012 20:38, Ethan Gutmann wrote: >>> >>> I'm a little confused by this attitude. I recognize that there are issues >>> around dates, I've written a few date libraries myself to get around i

Re: [Matplotlib-users] color pallette suggestions wanted

2012-10-12 Thread Ryan Nelson
Andreas, Perhaps you would be better off making your own colormap considering that your data is not symmetric around zero. You could do something like the following: -- import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as plc data = n

Re: [Matplotlib-users] Format date tick labels

2012-10-12 Thread Ethan Gutmann
On Oct 12, 2012, at 4:15 PM, Mark Lawrence wrote: > On 12/10/2012 20:38, Ethan Gutmann wrote: >> >> I'm a little confused by this attitude. I recognize that there are issues >> around dates, I've written a few date libraries myself to get around insane >> excel date issues (pop quiz for anyone

Re: [Matplotlib-users] Format date tick labels

2012-10-12 Thread Mark Lawrence
On 12/10/2012 20:38, Ethan Gutmann wrote: > > I'm a little confused by this attitude. I recognize that there are issues > around dates, I've written a few date libraries myself to get around insane > excel date issues (pop quiz for anyone at MS, was 1900 a leap year?) or just > to simplify APIs

Re: [Matplotlib-users] Format date tick labels

2012-10-12 Thread Benjamin Root
On Friday, October 12, 2012, Ethan Gutmann wrote: > > On Oct 11, 2012, at 2:58 PM, Benjamin Root wrote: > > > On Thu, Oct 11, 2012 at 4:53 PM, Mark Lawrence > 'breamore...@yahoo.co.uk');> > > wrote: > >> On 11/10/2012 10:55, Damon McDougall wrote: >> >> > Am I missing something here? Are seconds

Re: [Matplotlib-users] Format date tick labels

2012-10-12 Thread Ethan Gutmann
On Oct 11, 2012, at 2:58 PM, Benjamin Root wrote: > > On Thu, Oct 11, 2012 at 4:53 PM, Mark Lawrence > wrote: > On 11/10/2012 10:55, Damon McDougall wrote: > > > Am I missing something here? Are seconds just floats internally? A > > delta of 1e-6 is nothing (pardon the pun). A delta of 1e-9 is

Re: [Matplotlib-users] xlabels on top, ylabels on right

2012-10-12 Thread Andreas Hilboll
>> > Hi, me again :) >> > >> > I'm looking for a way to have the xlabels on the top (instead of >> bottom), >> > and the ylabels on the right (instead of left). I guess I could do >> > something with twinx / twiny and just not use the left/bottom axis, >> but >> > I'm sure there is some more elegan

Re: [Matplotlib-users] dpi

2012-10-12 Thread Nikolaus Rath
Jae-Joon Lee writes: > On Fri, Oct 12, 2012 at 3:39 AM, Nikolaus Rath > wrote: >> matplotlib actually rescales the raw imshow data when saving to a vector >> format? Why is that? I think it should embed the bitmap with full >> resolution in the vector file and rely on the consumer of the vector

Re: [Matplotlib-users] xlabels on top, ylabels on right

2012-10-12 Thread Benjamin Root
On Fri, Oct 12, 2012 at 6:12 AM, Andreas Hilboll wrote: > > Hi, me again :) > > > > I'm looking for a way to have the xlabels on the top (instead of bottom), > > and the ylabels on the right (instead of left). I guess I could do > > something with twinx / twiny and just not use the left/bottom ax

Re: [Matplotlib-users] Accessing WMS and ESRI REST services in Matplotlib

2012-10-12 Thread Rich Signell
WMS services are required to respond to "GetCapabiltiies" request, reporting what layers, styles, times, elevations, and projections they have available. So for example, using the Unidata WMS example below, if we do: http://motherlode.ucar.edu:8080/thredds/wms/fmrc/NCEP/NAM/CONUS_12km/NCEP-NAM

Re: [Matplotlib-users] xlabels on top, ylabels on right

2012-10-12 Thread Andreas Hilboll
> Hi, me again :) > > I'm looking for a way to have the xlabels on the top (instead of bottom), > and the ylabels on the right (instead of left). I guess I could do > something with twinx / twiny and just not use the left/bottom axis, but > I'm sure there is some more elegant way ... I need to cor

[Matplotlib-users] xlabels on top, ylabels on right

2012-10-12 Thread Andreas Hilboll
Hi, me again :) I'm looking for a way to have the xlabels on the top (instead of bottom), and the ylabels on the right (instead of left). I guess I could do something with twinx / twiny and just not use the left/bottom axis, but I'm sure there is some more elegant way ... Cheers, Andreas. -

[Matplotlib-users] x-label location not at xtick location?

2012-10-12 Thread Andreas Hilboll
Hi, another question. Given the plot from my last email (I attached the code to this one as well), I would like to have the x-labels ("J", "F", ...) not at the location of the xticks, but centered in between to xticks. I would then move the xticks so that they form the bins to the data chunks, and

[Matplotlib-users] color pallette suggestions wanted

2012-10-12 Thread Andreas Hilboll
Hi, I have some data I want to plot using pcolormesh. It's 2d climatological data, see the attached plot. My data is in a range from -7 to +0.6. I want to be 0.0 to be clearly visible, while at the same time, the color range should show the full dynamic of the values. I played with the bwr and sei