tlib-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 it in python3? If not, what version of Pytho
ge the months to short English form" you mean in the
> data file?
> That is, Abr -> Apr, Mai -> May??? ...still did not work.
>
>
> From: Phil Elson
> To: Luciano Fleischfresser
> Cc: "Matplotlib-users@lists.sourceforge.net"
&
lson
To: Luciano Fleischfresser
Cc: "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
ax
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
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