Hi I am trying to use autofmt_xdate() on graphs with more than 1 y-axis. But it seems that even calling twinx() causes errors. On python 2.5 matplotlib 0.98 a call to twinx() seems to switch off the functioning of autofmt_xdate() (and the labels are horizontal and mashed up). On python 2.6 and matplotlib 1.0.0 it causes a ValueError.
The following script illustrates the issue (in real life I obviously want to do things with ax2, but it seems that even creating it causes problems). Is there a simple working example of rotated data formats and twinx()? robert import datetime import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt date=[datetime.datetime(2010,1,1), datetime.datetime(2010,12,1)] data=[1,2] fig = plt.figure() ax = fig.add_subplot(111) # uncommenting the following line will lead to the problems # ax2=ax.twinx() ax.plot(date, data) fig.autofmt_xdate(rotation=90) fig.savefig("test3.png", dpi=400) ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users