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ðja
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=0.01
t=arange(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 = gca().semilogy(*args, **kwargs)
File "/usr/lib/python2.2/site-packages/matplotlib/axes.py", line 2007,
in semilogy
l = selfplot(*args, **kwargs)
NameError: global name 'selfplot' is not defined
semilogx(t,t)
[<matplotlib.lines.Line2D instance at 0x8516034>]