From: Jean-Baptiste C. <jea...@de...> - 2004-01-20 16:55:28
|
Saell I have got problem using semilogy while semilogx works fine I with matplotlib with python2 on RedHat 9.0 default setup Any idea of what is going wrong ? Below is the code I use in the interactive2 mode: Takk Kve=C3=B0ja Jean-Baptiste Welcome to matplotlib. help(matplotlib) -- shows a list of all matlab compatible commands provided help(plotting) -- shows a list of plot specific commands >>> import matplotlib >>> from matplotlib.matlab import * pygtk.require() must be called before importing gtk matplotlib requires pygtk-1.99.16 or greater -- trying anyway. Please hold on >>> from matplotlib.backends.backend_gtk import ShowOn >>> ShowOn().set(1) # turning on interactive mode >>> dt=3D0.01 >>> t=3Darange(dt,10.0,dt) >>> semilogy(t,t) Traceback (most recent call last): File "<<console>>", line 1, in ? File "/usr/lib/python2.2/site-packages/matplotlib/matlab.py", line 829, in semilogy try: ret =3D gca().semilogy(*args, **kwargs) File "/usr/lib/python2.2/site-packages/matplotlib/axes.py", line 2007, in semilogy l =3D selfplot(*args, **kwargs) NameError: global name 'selfplot' is not defined >>> semilogx(t,t) [<matplotlib.lines.Line2D instance at 0x8516034>] >>>=20 |