problem with set in current svn HEAD

hello,
I must be doing something stupid.... I am trying to test the snippets of code in http://matplotlib.sourceforge.net/users_guide_0.90.0.pdf p.29, and I get :
[cohen@...142... python]$ python
Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
>>> subplot(211)
<matplotlib.axes.Subplot instance at 0x9c5412c>
>>> plot([1,2,3],[1,2,3])
[<matplotlib.lines.Line2D instance at 0x9c5a8ac>]
>>> set(gca(), xticklabels=[])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: set() does not take keyword arguments

Can somebody help me understand what goes wrong here?
thanks,
Johann

Hi,

I think you must type :
set(gca(), ‘xticklabels’, )

Matthieu

2007/8/16, Johann Cohen-Tanugi <cohen@…1565…

···

:
hello,
I must be doing something stupid… I am trying to test the snippets of

code in http://matplotlib.sourceforge.net/users_guide_0.90.0.pdf p.29,
and I get :
[cohen@…142… python]$ python
Python 2.5 (r25:51908, Apr 10 2007, 10:29:13)

[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.

from pylab import *
subplot(211)

<matplotlib.axes.Subplot instance at 0x9c5412c>

plot([1,2,3],[1,2,3])
[<matplotlib.lines.Line2D instance at 0x9c5a8ac>]
set(gca(), xticklabels=)
Traceback (most recent call last):

File “”, line 1, in
TypeError: set() does not take keyword arguments

Can somebody help me understand what goes wrong here?
thanks,
Johann


This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/


Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users