Re: [Matplotlib-users] Format date tick labels

2012-10-12 Thread Damon McDougall
On Thursday, October 11, 2012, Benjamin Root wrote: On Thu, Oct 11, 2012 at 4:53 PM, Mark Lawrence breamore...@yahoo.co.ukjavascript:_e({}, 'cvml', 'breamore...@yahoo.co.uk'); wrote: On 11/10/2012 10:55, Damon McDougall wrote: On Wed, Oct 10, 2012 at 5:00 PM, Benjamin Root

[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

[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] 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.

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 correct

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:

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 li...@hilboll.de 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

Re: [Matplotlib-users] dpi

2012-10-12 Thread Nikolaus Rath
Jae-Joon Lee lee.j.joon-re5jqeeqqe8avxtiumw...@public.gmane.org writes: On Fri, Oct 12, 2012 at 3:39 AM, Nikolaus Rath nikolaus-bth8mxji...@public.gmane.org wrote: matplotlib actually rescales the raw imshow data when saving to a vector format? Why is that? I think it should embed the bitmap

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

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 breamore...@yahoo.co.uk 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

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.ukjavascript:_e({}, 'cvml', 'breamore...@yahoo.co.uk'); wrote: On 11/10/2012 10:55, Damon McDougall wrote: Am I

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 for

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 at MS,

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 =

[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 li...@hilboll.de On Fri, Oct 12, 2012 at 10:17 AM, Andreas Hilboll li...@hilboll.dejavascript:;