[SciPy-user] plt.plot titles problem

Douglas Eck doug at idsia.ch
Tue Jun 4 08:37:20 CDT 2002


Hi Folks,

Any idea how I might set the title of a plt.plot() from a python
script? The menu works fine in the plot window but the plt.title('str')
fails. I'm using debian with the scipy source from
SciPy-0.2.0_alpha_101.3442_src.tar.gz


 >>> plt.plot(rand(1,10))
<C wxFrame instance at _88384d8_wxFrame_p>
 >>> plt.xlabel('hello')
 >>> plt.ylabel('hello')
 >>> plt.title('hello')
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/lib/python2.1/site-packages/scipy/plt/interface.py", line 136, in title
     _active.title.text = name
TypeError: read-only attribute: text


Regards,
Doug Eck
-- 
Dr. Douglas Eck, http://www.idsia.ch/~doug
Istituto Dalle Molle di Studi sull'Intelligenza Artificiale (IDSIA)
Neural Networks, Rhythm Perception and Production, Dynamical Systems




More information about the SciPy-user mailing list