From: Yann Le Du <yan...@no...> - 2004-01-17 19:21:02
|
Hello, I've just discovered matplotlib-0.40 (with linux), and going through the tutorial, I get an error (pasted at the end of email) when using dashes in the "Multiple lines with one plot command" example. If instead of putting : plot(t, t, 'r--', t, t**2, 'bs', t, t**3, 'g^') I put : plot(t, t, 'r-', t, t**2, 'bs', t, t**3, 'g^') it works fine. Maybe someone can help ? Y ======== /usr/lib/python2.3/site-packages/matplotlib/backends/backend_gtk.py in set_dashes(self, dash_offset, dash_list) 175 dpi = self.drawable.dpi.get() 176 if dash_list is not None: --> 177 dashes = dash_list*dpi/72.0 178 self.gdkGC.line_style = gdk.LINE_ON_OFF_DASH 179 dl = [int(math.ceil(val)) for val in dash_list] TypeError: unsupported operand type(s) for /: 'array' and 'float' |