Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
c19c6c08
Commit
c19c6c08
authored
7 years ago
by
Martyn Gigg
Browse files
Options
Downloads
Patches
Plain Diff
Remove aspect ratio code that seems buggy.
Refs #21567
parent
2ec9f3b8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/applications/workbench/workbench/plotting/functions.py
+2
-6
2 additions, 6 deletions
qt/applications/workbench/workbench/plotting/functions.py
with
2 additions
and
6 deletions
qt/applications/workbench/workbench/plotting/functions.py
+
2
−
6
View file @
c19c6c08
...
@@ -128,7 +128,8 @@ def pcolormesh(workspaces):
...
@@ -128,7 +128,8 @@ def pcolormesh(workspaces):
if
workspaces_len
<=
(
nrows
-
1
)
*
ncols
:
if
workspaces_len
<=
(
nrows
-
1
)
*
ncols
:
nrows
-=
1
nrows
-=
1
fig
,
axes
=
plt
.
subplots
(
nrows
,
ncols
,
subplot_kw
=
dict
(
projection
=
PROJECTION
))
fig
,
axes
=
plt
.
subplots
(
nrows
,
ncols
,
squeeze
=
False
,
subplot_kw
=
dict
(
projection
=
PROJECTION
))
row_idx
,
col_idx
=
0
,
0
row_idx
,
col_idx
=
0
,
0
for
subplot_idx
in
range
(
nrows
*
ncols
):
for
subplot_idx
in
range
(
nrows
*
ncols
):
ax
=
axes
[
row_idx
][
col_idx
]
ax
=
axes
[
row_idx
][
col_idx
]
...
@@ -138,11 +139,6 @@ def pcolormesh(workspaces):
...
@@ -138,11 +139,6 @@ def pcolormesh(workspaces):
pcm
=
ax
.
pcolormesh
(
ws
,
cmap
=
DEFAULT_COLORMAP
)
pcm
=
ax
.
pcolormesh
(
ws
,
cmap
=
DEFAULT_COLORMAP
)
xticks
=
ax
.
get_xticklabels
()
xticks
=
ax
.
get_xticklabels
()
map
(
lambda
lbl
:
lbl
.
set_rotation
(
45
),
xticks
)
map
(
lambda
lbl
:
lbl
.
set_rotation
(
45
),
xticks
)
xvals
,
yvals
=
ax
.
get_xlim
(),
ax
.
get_ylim
()
xrange
=
xvals
[
1
]
-
xvals
[
0
]
yrange
=
yvals
[
1
]
-
yvals
[
0
]
# Set the aspect ratios and colarbar size
ax
.
set_aspect
(
aspect
=
xrange
/
yrange
,
adjustable
=
'
box
'
)
if
col_idx
<
ncols
-
1
:
if
col_idx
<
ncols
-
1
:
col_idx
+=
1
col_idx
+=
1
else
:
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment