axvspan legend

Hi,

I have a time series data which I am using plot_time(). I am able to get a legend and I also have axvspan to show weekends. However, how can I state the “yellow” (axvspan) is a weekend on the legend or is there a better way to show this?

···


— Get your facts first, then you can distort them as you please.–

I believe you are looking for Proxy Artists:

http://matplotlib.org/users/legend_guide.html#using-proxy-artist

Cheers!
Ben Root

···

On Tue, Feb 26, 2013 at 7:44 AM, Rita <rmorgan466@…287…> wrote:

Hi,

I have a time series data which I am using plot_time(). I am able to get a legend and I also have axvspan to show weekends. However, how can I state the “yellow” (axvspan) is a weekend on the legend or is there a better way to show this?