On Wed, Jul 21, 2010 at 9:16 AM, alberttresens <alb...@gm...> wrote:
> I am trying to do a plot, and getting and out of index, I am not sure what
> is reason. I tried all combinations even with empty arrays and possible
> indexes. Always the same. Any one can recon what is happening from the
> trace? Traceback (most recent call last): File "gcview.py", line 226, in
> main() File "gcview.py", line 222, in main drawGraph(timeStampsBeforeGc,
> usedBeforeGc, timeStampsAfterGc, usedAfterGc, heapSizes,
> timeStampsForFullGc, fullGcIndicators, logStartTS, logEndTS, output) File
> "gcview.py", line 87, in drawGraph plot(0,0) File
> "/usr/local/lib/python2.6/site-packages/matplotlib/pyplot.py", line 2287, in
> plot ret = ax.plot(*args, **kwargs) File
> "/usr/local/lib/python2.6/site-packages/matplotlib/axes.py", line 3776, in
> plot self.autoscale_view(scalex=scalex, scaley=scaley) File
> "/usr/local/lib/python2.6/site-packages/matplotlib/axes.py", 1793, in
> autoscale_view x0, x1 = xlocator.view_limits(x0, x1) File
> "/usr/local/lib/python2.6/site-packages/matplotlib/ticker.py", line 1176, in
> view_limits return np.take(self.bin_boundaries(dmin, dmax), [0,-1]) File
> "/usr/local/lib/python2.6/site-packages/numpy/core/fromnumeric.py", line
> 103, in take return take(indices, axis, out, mode) IndexError: index out of
> range for array
Can you post a free-standing script that we can run that exposes the
problem, and please post your mpl version info and other relevant info
suggested at:
http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#report-a-problem
JDH
|