After poking around in the Pylab source, managed to sort
> the multiple line plotting using
> fig = self.get_figure() ax1 = fig.gca() ax2 =
> fig.add_axes(ax1.get_position(), sharex=ax1,
> frameon=False)
Isn't this what the twinx function does - heave you seen
http://matplotlib.sourceforge.net/examples/shared_axis_demo.py ?
John
thanks - twinx was indeed where I "borrowed" some of the lines from. They're in the code explicitly 'cos it's a lot clearer to me than using twinx which is buried somewhere in the pylab interface
Alun Griffiths
···
At 15:32 07/11/2006, you wrote:
> After poking around in the Pylab source, managed to sort
> the multiple line plotting using
> fig = self.get_figure() ax1 = fig.gca() ax2 =
> fig.add_axes(ax1.get_position(), sharex=ax1,
> frameon=False)
Isn't this what the twinx function does - heave you seen
http://matplotlib.sourceforge.net/examples/shared_axis_demo.py ?