I am plotting a time series, a handful of moving averages and the
standard deviation of one of the moving averages.  The first crop of
data are all in an overlapping range so are plotted using the
left-hand y axis.  The standard deviation range falls way outside the
ranges of the other data streams, so I plot it on the right- hand
axis.

Since legends are associated with an axis how do I create one legend
which covers all lines in the graph?  I keep getting a complaint from
mpl about the number of labels not matching the number of arrays being
plotted (one v. five if I get the legend associated with the
right-hand axis, four v. five if I get the legend associated with the
left-hand axis).

Thanks,

Skip Montanaro
s...@pobox.com



------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to