Commit 935d051f authored by David Keitel's avatar David Keitel

python3 fix: list(range(...))

parent 88396262
......@@ -160,7 +160,7 @@ def gridcorner(D, xyz, labels=None, projection='max_slice', max_n_ticks=4,
def projection_2D(ax, x, y, D, xidx, yidx, projection, lines=None, **kwargs):
flat_idxs = range(D.ndim)
flat_idxs = list(range(D.ndim))
flat_idxs.remove(xidx)
flat_idxs.remove(yidx)
D2D = projection(D, axis=tuple(flat_idxs), **kwargs)
......@@ -174,7 +174,7 @@ def projection_2D(ax, x, y, D, xidx, yidx, projection, lines=None, **kwargs):
def projection_1D(ax, x, D, xidx, projection, showDvals=True, lines=None,
**kwargs):
flat_idxs = range(D.ndim)
flat_idxs = list(range(D.ndim))
flat_idxs.remove(xidx)
D1D = projection(D, axis=tuple(flat_idxs), **kwargs)
ax.plot(x, D1D, color='k')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment