I'd also be interested in a workaround. I tried to remove the tick labels from the second axe, but it also removed the labels from the first axe.

Thanks,

David

On Sun, Feb 8, 2009 at 9:14 AM, Christoffer Aberg <Christoffer.Aberg@fkem1.lu.se> wrote:
Hi all,

I have noticed a funny behaviour when using twinx to do two plots on the
same axes: the xticklabels are printed twice, once for each axes. This
shows up as slightly thicker labels than for a single axes. It is
particularly visible for ps or pdf output, but can be seen also in an
interactive session.

I can also see this in the figure shown for the two_scales.py example
(http://matplotlib.sourceforge.net/_images/two_scales.png), where the
xticklabels are thicker than the yticklabels (though it is not so
apparent due to different colours. I therefore assume it is not just my
installation. (Adding

for tl in ax2.get_xticklabels():
   tl.set_fontsize(16)

just before the last plt.show() in two_scales.py makes it even more
visible)

Does anyone know of a reasonable work-around? Surely it is not the
intended behaviour?

Thanks for any help,
Christoffer Åberg


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users