|
From: Willi R. <w.r...@gm...> - 2006-10-21 18:07:43
|
Am Freitag, 20. Oktober 2006 17:31 schrieb John Hunter:
> from pylab import *
>
> ax1 = subplot(111)
> t = arange(0.01, 10.0, 0.01)
> s1 = exp(t)
> plot(t, s1, 'b-')
> xlabel('time (s)')
> ylabel('exp')
>
>
> # turn off the 2nd axes rectangle with frameon kwarg
> ax2 = twinx()
> s2 = sin(2*pi*t)
> plot(t, s2, 'r.')
> ylabel('sin')
> ax2.yaxis.tick_right()
> ax2.set_ylim(ymin=-3)
> show()
Hi,
this example does not work for me: Right axis is in the range [-1, 1].
(The same as the example two_axes.py with an additional set_ylim in my
previous mail. Sorry for the sparse information.)
matplotlib.__version__ == 0.82
python 2.4
Thanks,
wr
|