Re: [Matplotlib-users] axvspan with dates on x-axis

2012-07-23 Thread Phil Elson
Looks like your very close. I needed to change the months to short English form, change the line ax3.grid('True') to ax3.grid(True) and add the line ax3.axvspan(*mdates.datestr2num(['05/18/2012', '06/30/2012']), facecolor='g', alpha=0.5) To get the box on the lower plot. Hope that help

[Matplotlib-users] axvspan with dates on x-axis

2012-07-23 Thread Luciano Fleischfresser
I want to place a colored vertical range on my plot and came across the following example:  http://stackoverflow.com/questions/8270981/in-a-matplotlib-plot-can-i-highlight-specific-x-value-ranges/8271438#8271438 It shows what I am trying to do using axvspan.  However, I was not able to reproduce

Re: [Matplotlib-users] wrapping y axis tick labels?

2012-07-23 Thread Jonathan Slavin
You might want to look at the python textwrap module. That can take your labels and automatically wrap them at a certain column width. See (in addition to the official python docs) http://www.doughellmann.com/PyMOTW/textwrap/ Jon On Fri, 2012-07-20 at 23:55 -0400, C M wrote: > How possible woul

Re: [Matplotlib-users] How to Change Axis Tick Mark Labels

2012-07-23 Thread Mark Lawrence
On 23/07/2012 03:01, JonBL wrote: > > Using FuncFormatter with my conversion procedure has solved my problem. I did > not use the Python datetime module to generate the tickmark labels as some > of your examples suggested. Instead, my conversion procedure pulls the > required formatted date string

Re: [Matplotlib-users] Possible to change MPL color scheme?

2012-07-23 Thread Damon McDougall
On Mon, Jul 23, 2012 at 05:50:41AM +0200, klo uo wrote: > Thanks for your reply Ben, > > > On Sun, Jul 22, 2012 at 4:39 PM, Benjamin Root wrote: > > As for the assertion that HTML colors aren't used, that is incorrect. The > > named colors follow the HTML list. Here is our list: > > > > https:/

Re: [Matplotlib-users] How to Change Axis Tick Mark Labels

2012-07-23 Thread Phil Elson
Ah, sorry, forgot to reply to all. Please see the solution I provided to Jon. -- Forwarded message -- Date: 22 July 2012 15:08 Subject: Re: [Matplotlib-users] How to Change Axis Tick Mark Labels Sounds like you want to use a FunctionFormatter rather than modifying the ticks thems