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

2012-07-26 Thread Phil Elson
: [Matplotlib-users] axvspan with dates on x-axis 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

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

2012-07-26 Thread Luciano Fleischfresser
Cc: Matplotlib-users@lists.sourceforge.net Matplotlib-users@lists.sourceforge.net Sent: Thursday, July 26, 2012 5:02 AM Subject: Re: [Matplotlib-users] axvspan with dates on x-axis Luciano got in touch offline and my suggestions worked for a certain version of Python. Luciano, were you trying

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

2012-07-24 Thread Luciano Fleischfresser
Cc: Matplotlib-users@lists.sourceforge.net Matplotlib-users@lists.sourceforge.net Sent: Monday, July 23, 2012 5:45 PM Subject: Re: [Matplotlib-users] axvspan with dates on x-axis Looks like your very close. I needed to change the months to short English form, change the line   ax3.grid('True

[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

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