Second y axis

Second y axis
Hi,

I am using a second y axis on the right with twinx() like the

following:

ax = subplot(111)

plot_date(…, label=‘foo’)

ax.xaxis.set_major_locator(month3)

ax.xaxis.set_major_formatter(DateFormatter(’%Y-%m’))

ax.xaxis.set_minor_locator(month1)

ax.autoscale_view()

labels = ax.get_xticklabels()

setp(labels, rotation=60)

ax2 = twinx()

plot_date(…, label=‘bar’)

[…]

I am then repeating the xaxis.set_* functions for ax2 so that they

overprint the ax ones, otherwise I get two differently formatted x

axes. I would however just like to use the first xaxis setting and

not print it for ax2 at all - how could I do that?

Also, I can’t find how to merge the two labels ‘foo’ and ‘bar’ into

a single legend, is there way to do that?

TIA,

Colin