Willi Richert wrote:
> 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

There is the problem: you need to update your matplotlib.

Eric



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to