Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Keitel
gridcorner
Commits
935d051f
Commit
935d051f
authored
Mar 03, 2020
by
David Keitel
Browse files
python3 fix: list(range(...))
parent
88396262
Changes
1
Show whitespace changes
Inline
Side-by-side
gridcorner.py
View file @
935d051f
...
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment