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

skip@...789...