From: Darren D. <dd...@co...> - 2006-11-10 18:23:22
|
Can anyone reproduce this error? I am using up-to-date svn matplotlib, with either numpy or numeric: plot([1,2]) --------------------------------------------------------------------------- exceptions.TypeError Traceback (most recent call last) /home/darren/<ipython console> /usr/lib64/python2.4/site-packages/matplotlib/pylab.py in plot(*args, **kwargs) 3087 hold(h) 3088 try: -> 3089 ret = gca().plot(*args, **kwargs) 3090 draw_if_interactive() 3091 except: /usr/lib64/python2.4/site-packages/matplotlib/axes.py in plot(self, *args, **kwargs) 2137 lines = [line for line in lines] # consume the generator 2138 -> 2139 self.autoscale_view(scalex=scalex, scaley=scaley) 2140 return lines 2141 /usr/lib64/python2.4/site-packages/matplotlib/axes.py in autoscale_view(self, tight, scalex, scaley) 991 if xl[1] < xl[0]: 992 XL = XL[::-1] --> 993 self.set_xlim(XL) 994 if scaley: 995 yl = self.get_ylim() /usr/lib64/python2.4/site-packages/matplotlib/axes.py in set_xlim(self, xmin, xmax, emit) 1233 xmax += 1e-38 1234 -> 1235 self.viewLim.intervalx().set_bounds(xmin, xmax) 1236 if emit: self._send_xlim_event() 1237 return xmin, xmax TypeError: only length-1 arrays can be converted to Python scalars. Darren |