SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Strauss JM <jst...@su...> - 2006年01月31日 14:49:33
Here is what I did:
I firstly downloaded the example "quadmesh_demo.py".
Then I reinstalled the latest mpl (0.86.2). When I tried to run the
example I got the following error message:
Traceback (most recent call last):
 File "C:\My
Leerkabinet\Installs\Python\Sandbox\Matplotlib\matplotlib\examples\quadm
esh_demo.py", line 3, in ?
 from pylab import figure,show
 File "C:\Program Files\Python24\Lib\site-packages\pylab.py", line 1,
in ?
 from matplotlib.pylab import *
 File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\pylab.py", line 217, in ?
 new_figure_manager, draw_if_interactive, show =3D pylab_setup()
 File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\backends\__init__.py", line
24, in pylab_setup
 globals(),locals(),[backend_name])
 File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\backends\backend_gtkagg.py",
line 10, in ?
 from backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
 File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\backends\backend_gtk.py",
line 6, in ?
 import gobject
ImportError: No module named gobject
I then went on and changed the backend in matplotlibrc from GTKAgg to
WXAgg. Running the example resulted in the following error message:
Traceback (most recent call last):
 File "C:\My
Leerkabinet\Installs\Python\Sandbox\Matplotlib\matplotlib\examples\quadm
esh_demo.py", line 15, in ?
 ax =3D fig.add_subplot(111)
 File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\figure.py", line 465, in
add_subplot
 a =3D Subplot(self, *args, **kwargs)
 File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axes.py",
line 3974, in __init__
 Axes.__init__(self, fig, [self.figLeft, self.figBottom,
 File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axes.py",
line 331, in __init__
 self._init_axis()
 File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axes.py",
line 360, in _init_axis
 self.xaxis =3D XAxis(self)
 File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
line 501, in __init__
 self.cla()
 File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
line 524, in cla
 self.majorTicks.extend([self._get_tick(major=3DTrue) for i in
range(1)])
 File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
line 834, in _get_tick
 return XTick(self.axes, 0, '', major=3Dmajor)
 File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
line 100, in __init__
 self.tick1line =3D self._get_tick1line(loc)
 File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
line 276, in _get_tick1line
 markersize=3Dself._size,
 File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\lines.py", line 211, in
__init__
 self.set_data(xdata, ydata)
 File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\lines.py", line 282, in
set_data
 self._segments =3D unmasked_index_ranges(mask)
 File "C:\Program
Files\Python24\Lib\site-packages\matplotlib\lines.py", line 69, in
unmasked_index_ranges
 m =3D concatenate(((1,), mask, (1,)))
ValueError: arrays must have same number of dimensions
This problem I have encountered this morning. Through a quick search I
came upon advice by Travis Oliphant to obtain mpl out of CVS. I only
substituted my installed lines.py with the lines.py obtained from CVS
and here is the results after running the example again:
Traceback (most recent call last):
 File "C:\My
Leerkabinet\Installs\Python\Sandbox\Matplotlib\matplotlib\examples\quadm
esh_demo.py", line 16, in ?
 ax.pcolormesh(Qx,Qz,Z)
AttributeError: Subplot instance has no attribute 'pcolormesh'
It seems that we got passed ax =3D fig.add_subplot(111) in the example,
but I am not sure whether the problem is solved.
I hope the info is helpful.
Regards
Johann Strauss
=20
-----Original Message-----
From: Charlie Moad [mailto:cw...@gm...]=20
Sent: 31 Januarie 2006 04:00 nm
To: Strauss JM <jst...@su...>
Cc: mat...@li...
Subject: Re: [Matplotlib-users] backend_agg attribute error
> File "C:\Program
> Files\Python24\lib\site-packages\matplotlib\backends\backend_agg.py",
> line 124, in __init__
>
> self.draw_quad_mesh =3D self._renderer.draw_quad_mesh
>
> AttributeError: draw_quad_mesh
This was added to the agg (which affects wxagg) backend between 0.86.1
and 0.86.2. This error is probably not coming from wxmpl/boa. See if
you can run the examples/quadmesh_demo.py which uses this new
functionality, after reinstalling the latest mpl.
From: Strauss JM <jst...@su...> - 2006年01月31日 14:58:39
I just started Boa after performing the actions explained in my previous
email. The application executed without any problems. I can see my
plots using wxmpl again.
Thanks for helping. I do suggest though that someone should check the
errors that I explained in the previous e-mail and also, why I
encountered the original error when I substituted my entire mpl with the
files from CVS.
Regards
Johann Strauss
From: John H. <jdh...@ac...> - 2006年01月31日 16:12:40
>>>>> ""Strauss" == "Strauss JM <jst...@su...>" <jst...@su...> writes:
 "Strauss> I just started Boa after performing the actions
 "Strauss> explained in my previous email. The application
 "Strauss> executed without any problems. I can see my plots using
 "Strauss> wxmpl again.
 "Strauss> Thanks for helping. I do suggest though that someone
 "Strauss> should check the errors that I explained in the previous
 "Strauss> e-mail and also, why I encountered the original error
 "Strauss> when I substituted my entire mpl with the files from
 "Strauss> CVS.
If boa was still running after reinstalling matplotlib, it may be that
the python code was reloaded and the extension code was not. If
restarting boa fixed your problems, I suspect it's a non-issue.
Thanks for the report.
JDH
From: Charlie M. <cw...@gm...> - 2006年01月31日 14:55:44
On 1/31/06, Strauss JM <jst...@su...> <jst...@su...> wrote:
> Here is what I did:
>
> I firstly downloaded the example "quadmesh_demo.py".
>
> Then I reinstalled the latest mpl (0.86.2). When I tried to run the
> example I got the following error message:
>
> Traceback (most recent call last):
> File "C:\My
> Leerkabinet\Installs\Python\Sandbox\Matplotlib\matplotlib\examples\quadm
> esh_demo.py", line 3, in ?
> from pylab import figure,show
> File "C:\Program Files\Python24\Lib\site-packages\pylab.py", line 1,
> in ?
> from matplotlib.pylab import *
> File "C:\Program
> Files\Python24\Lib\site-packages\matplotlib\pylab.py", line 217, in ?
> new_figure_manager, draw_if_interactive, show =3D pylab_setup()
> File "C:\Program
> Files\Python24\Lib\site-packages\matplotlib\backends\__init__.py", line
> 24, in pylab_setup
> globals(),locals(),[backend_name])
> File "C:\Program
> Files\Python24\Lib\site-packages\matplotlib\backends\backend_gtkagg.py",
> line 10, in ?
> from backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
> File "C:\Program
> Files\Python24\Lib\site-packages\matplotlib\backends\backend_gtk.py",
> line 6, in ?
> import gobject
> ImportError: No module named gobject
>
> I then went on and changed the backend in matplotlibrc from GTKAgg to
> WXAgg. Running the example resulted in the following error message:
>
> Traceback (most recent call last):
> File "C:\My
> Leerkabinet\Installs\Python\Sandbox\Matplotlib\matplotlib\examples\quadm
> esh_demo.py", line 15, in ?
> ax =3D fig.add_subplot(111)
> File "C:\Program
> Files\Python24\Lib\site-packages\matplotlib\figure.py", line 465, in
> add_subplot
> a =3D Subplot(self, *args, **kwargs)
> File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axes.py",
> line 3974, in __init__
> Axes.__init__(self, fig, [self.figLeft, self.figBottom,
> File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axes.py",
> line 331, in __init__
> self._init_axis()
> File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axes.py",
> line 360, in _init_axis
> self.xaxis =3D XAxis(self)
> File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
> line 501, in __init__
> self.cla()
> File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
> line 524, in cla
> self.majorTicks.extend([self._get_tick(major=3DTrue) for i in
> range(1)])
> File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
> line 834, in _get_tick
> return XTick(self.axes, 0, '', major=3Dmajor)
> File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
> line 100, in __init__
> self.tick1line =3D self._get_tick1line(loc)
> File "C:\Program Files\Python24\Lib\site-packages\matplotlib\axis.py",
> line 276, in _get_tick1line
> markersize=3Dself._size,
> File "C:\Program
> Files\Python24\Lib\site-packages\matplotlib\lines.py", line 211, in
> __init__
> self.set_data(xdata, ydata)
> File "C:\Program
> Files\Python24\Lib\site-packages\matplotlib\lines.py", line 282, in
> set_data
> self._segments =3D unmasked_index_ranges(mask)
> File "C:\Program
> Files\Python24\Lib\site-packages\matplotlib\lines.py", line 69, in
> unmasked_index_ranges
> m =3D concatenate(((1,), mask, (1,)))
> ValueError: arrays must have same number of dimensions
>
> This problem I have encountered this morning. Through a quick search I
> came upon advice by Travis Oliphant to obtain mpl out of CVS. I only
> substituted my installed lines.py with the lines.py obtained from CVS
> and here is the results after running the example again:
>
> Traceback (most recent call last):
> File "C:\My
> Leerkabinet\Installs\Python\Sandbox\Matplotlib\matplotlib\examples\quadm
> esh_demo.py", line 16, in ?
> ax.pcolormesh(Qx,Qz,Z)
> AttributeError: Subplot instance has no attribute 'pcolormesh'
>
> It seems that we got passed ax =3D fig.add_subplot(111) in the example,
> but I am not sure whether the problem is solved.
I can't reproduce unfortunately. This is an attribute for subplot
with my version. Try print matplotlib.__version__ to ensure you are
not picking up on older files somehow. Or try printing
matplotlib.axes.__file__ as well.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /