My first trial produced the following error message. What
> problem do you think is in my installation? I am using
> GtkAgg backend for matplotlib 0.6.1 version in Mandrake 10
> and python 2.3.3. Thanks.
That is very bizarre. Take a look at
site-packages/matplotlib/patches.py - you should have set_antialiased
defined on line 70 in the Patches class. Rectangle should derive from
Patches on line 119.
It looks a little like your build is messed up in some way I don't
understand. You may want to try removing matplotlib from your
site-packages dir, removing 'build' from your matplotlib src tree, adn
doing a clean install.
For the record, I did a clean install of 0.61.0 on a linux machine I
don't normally develop on and ran your example without problems
>>> from matplotlib.matlab import *
>>> x=arange(10)
>>> plot(x)
[<matplotlib.lines.Line2D instance at 0x40d5e94c>]
With the following in my .matplotlibrc file
backend : TkAgg # the default backend
numerix : Numeric # Numeric or numarray
interactive : True
toolbar : toolbar2 # None | classic | toolbar2
Let me know what you find.
JDH
···
from matplotlib.matlab import * x=arange(10) plot(x)
> Traceback (most recent call last): File "<stdin>", line 1,
> in ? File
> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
> line 1176, in plot lines = gca().plot(*args, **kwargs) File
> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
> line 762, in gca return
> get_current_fig_manager().get_current_axis() File
> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
> line 251, in get_current_fig_manager gcf() # creates an
> active figure as a side effect File
> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
> line 771, in gcf return figure() File
> "/usr/lib/python2.3/site-packages/matplotlib/matlab.py",
> line 691, in figure figManager = new_figure_manager(num,
> figsize, dpi, facecolor, edgecolor, frameon) File
> "/usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtkagg.py",
> line 25, in new_figure_manager thisFig = Figure(*args,
> **kwargs) File
> "/usr/lib/python2.3/site-packages/matplotlib/figure.py",
> line 52, in __init__ facecolor=facecolor,
> edgecolor=edgecolor, File
> "/usr/lib/python2.3/site-packages/matplotlib/patches.py",
> line 130, in __init__ Patch.__init__(self, **kwargs) File
> "/usr/lib/python2.3/site-packages/matplotlib/patches.py",
> line 48, in __init__ self.__dict__['set_%s'%abbrev] =
> getattr(self, 'set_%s'%func) AttributeError: Rectangle
> instance has no attribute 'set_antialiased'
> -- Daehyok Shin
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on
> Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic
> DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free
> Shipping and Free Gift.
> Cheap Ink Cartridges: printer ink, printer cartridge, printer cartridges, inkjet cartridge, ink jet cartridges, ink cartridges, ink cartridge, inkjet cartridges, epson ink cartridge, epson ink cartridges
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> matplotlib-users List Signup and Options