From: Darren D. <dd...@co...> - 2006-01-20 17:08:15
|
I just updated this morning, and the following script fails: import pylab as pl pl.plot(xrange(10), xrange(10)) Here's the traceback: --------------------------------------------------------------------------- exceptions.ValueError Traceback (most recent call last) /home/darren/<ipython console> /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/pylab.py in plot(*args, **kwargs) 2077 def plot(*args, **kwargs): 2078 # allow callers to override the hold state by passing hold=True| False -> 2079 b = ishold() 2080 h = popd(kwargs, 'hold', None) 2081 if h is not None: /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/pylab.py in ishold() 938 Return the hold status of the current axes 939 """ --> 940 return gca().ishold() 941 942 def isinteractive(): /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/pylab.py in gca(**kwargs) 889 """ 890 --> 891 ax = gcf().gca(**kwargs) 892 return ax 893 /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/figure.py in gca(self, **kwargs) 613 ax = self._axstack() 614 if ax is not None: return ax --> 615 return self.add_subplot(111, **kwargs) 616 617 def sca(self, a): /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/figure.py in add_subplot(self, *args, **kwargs) 463 a = PolarSubplot(self, *args, **kwargs) 464 else: --> 465 a = Subplot(self, *args, **kwargs) 466 467 /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/axes.py in __init__(self, fig, *args, **kwargs) 4094 def __init__(self, fig, *args, **kwargs): 4095 SubplotBase.__init__(self, fig, *args) -> 4096 Axes.__init__(self, fig, [self.figLeft, self.figBottom, 4097 self.figW, self.figH], **kwargs) 4098 /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/axes.py in __init__(self, fig, rect, axisbg, frameon, sharex, sharey, label, **kwargs) 329 330 # this call may differ for non-sep axes, eg polar --> 331 self._init_axis() 332 333 /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/axes.py in _init_axis(self) 358 def _init_axis(self): 359 "move this out of __init__ because non-separable axes don't use it" --> 360 self.xaxis = XAxis(self) 361 self.yaxis = YAxis(self) 362 /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/axis.py in __init__(self, axes) 499 self.minorTicks = [] 500 --> 501 self.cla() 502 503 def cla(self): /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/axis.py in cla(self) 522 popall(self.minorTicks) 523 --> 524 self.majorTicks.extend([self._get_tick(major=True) for i in range(1)]) 525 self.minorTicks.extend([self._get_tick(major=False) for i in range(1)]) 526 /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/axis.py in _get_tick(self, major) 832 833 def _get_tick(self, major): --> 834 return XTick(self.axes, 0, '', major=major) 835 836 def _get_label(self): /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/axis.py in __init__(self, axes, loc, label, size, gridOn, tick1On, tick2On, label1On, label2On, major) 98 99 --> 100 self.tick1line = self._get_tick1line(loc) 101 self.tick2line = self._get_tick2line(loc) 102 self.gridline = self._get_gridline(loc) /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/axis.py in _get_tick1line(self, loc) 274 antialiased=False, 275 marker = self._xtickmarkers[0], --> 276 markersize=self._size, 277 ) 278 /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/lines.py in __init__(self, xdata, ydata, linewidth, linestyle, color, marker, markersize, markeredgewidth, markeredgecolor, markerfacecolor, antialiased, dash_capstyle, solid_capstyle, dash_joinstyle, solid_joinstyle, **kwargs) 209 self.verticalOffset = None 210 --> 211 self.set_data(xdata, ydata) 212 213 if not self._lineStyles.has_key(linestyle): /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/lines.py in set_data(self, *args) 280 x = ma.masked_array(x, mask=mask).compressed() 281 y = ma.masked_array(y, mask=mask).compressed() --> 282 self._segments = unmasked_index_ranges(mask) 283 else: 284 self._segments = None /usr/lib64/python2.4/site-packages/matplotlib-0.86.2cvs-py2.4-linux-x86_64.egg/matplotlib/lines.py in unmasked_index_ranges(mask, compressed) 67 68 ''' ---> 69 m = concatenate(((1,), mask, (1,))) 70 indices = arange(len(mask) + 1) 71 mdif = m[1:] - m[:-1] ValueError: arrays must have same number of dimensions |