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 ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users