Is this a bug?

Dear ALL,

When attempting to set the properties of points or lines in MPL 0.98.4
using the wxAgg backend (which should display a Basemap, that does not
appear because of the error) I am getting the following error -- it
happens no matter how I set the properties, if using keyword arguments
or the set methods:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py",
line 1122, in _onPaint
    self.draw(drawDC=drawDC)
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_wxagg.py",
line 60, in draw
    FigureCanvasAgg.draw(self)
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
line 283, in draw
    self.figure.draw(self.renderer)
  File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line
772, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1601, in draw
    a.draw(renderer)
  File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 462, in draw
    markerFunc(renderer, gc, tpath, affine.frozen())
  File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line
794, in _draw_circle
    w = renderer.points_to_pixels(self._markersize) * 0.5
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
line 216, in points_to_pixels
    return points*self.dpi/72.0
TypeError: unsupported operand type(s) for /: 'str' and 'float'

Any hints?

Best regards,

···

--
Dr. Mauro J. Cavalcanti
Ecoinformatics Studio
P.O. Box 46521, CEP 20551-970
Rio de Janeiro, RJ, BRASIL
E-mail: maurobio@...287...
Web: http://studio.infobio.net
Linux Registered User #473524 * Ubuntu User #22717
"Life is complex. It consists of real and imaginary parts."

Can you share the code you used to set the properties of points and lines. It looks like somehow a string is being set where a floating-point value is expected (either for dpi or markersize).

Mike

Mauro Cavalcanti wrote:

···

Dear ALL,

When attempting to set the properties of points or lines in MPL 0.98.4
using the wxAgg backend (which should display a Basemap, that does not
appear because of the error) I am getting the following error -- it
happens no matter how I set the properties, if using keyword arguments
or the set methods:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_wx.py",
line 1122, in _onPaint
    self.draw(drawDC=drawDC)
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_wxagg.py",
line 60, in draw
    FigureCanvasAgg.draw(self)
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
line 283, in draw
    self.figure.draw(self.renderer)
  File "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line
772, in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 1601, in draw
    a.draw(renderer)
  File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line 462, in draw
    markerFunc(renderer, gc, tpath, affine.frozen())
  File "/usr/lib/python2.5/site-packages/matplotlib/lines.py", line
794, in _draw_circle
    w = renderer.points_to_pixels(self._markersize) * 0.5
  File "/usr/lib/python2.5/site-packages/matplotlib/backends/backend_agg.py",
line 216, in points_to_pixels
    return points*self.dpi/72.0
TypeError: unsupported operand type(s) for /: 'str' and 'float'

Any hints?

Best regards,

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA