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
2316ef9b
Commit
2316ef9b
authored
7 years ago
by
Martyn Gigg
Browse files
Options
Downloads
Patches
Plain Diff
Analyse all axes when lookin at double click events.
Refs #21567
parent
c19c6c08
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/figuremanager.py
+12
-14
12 additions, 14 deletions
...pplications/workbench/workbench/plotting/figuremanager.py
with
12 additions
and
14 deletions
qt/applications/workbench/workbench/plotting/figuremanager.py
+
12
−
14
View file @
2316ef9b
...
...
@@ -211,25 +211,23 @@ class FigureManagerWorkbench(FigureManagerBase):
# which are outside of the axes so event.inaxes is no use.
canvas
=
self
.
canvas
figure
=
canvas
.
figure
try
:
axes
=
figure
.
get_axes
()[
0
]
except
IndexError
:
return
axes
=
figure
.
get_axes
()
def
move_and_show
(
editor
):
editor
.
move
(
event
.
x
,
figure
.
bbox
.
height
-
event
.
y
+
self
.
window
.
y
())
editor
.
exec_
()
if
axes
.
title
.
contains
(
event
)[
0
]:
move_and_show
(
LabelEditor
(
canvas
,
axes
.
title
))
elif
axes
.
xaxis
.
label
.
contains
(
event
)[
0
]:
move_and_show
(
LabelEditor
(
canvas
,
axes
.
xaxis
.
label
))
elif
axes
.
yaxis
.
label
.
contains
(
event
)[
0
]:
move_and_show
(
LabelEditor
(
canvas
,
axes
.
yaxis
.
label
))
elif
axes
.
xaxis
.
contains
(
event
)[
0
]:
move_and_show
(
XAxisEditor
(
canvas
,
axes
))
elif
axes
.
yaxis
.
contains
(
event
)[
0
]:
move_and_show
(
YAxisEditor
(
canvas
,
axes
))
for
ax
in
axes
:
if
ax
.
title
.
contains
(
event
)[
0
]:
move_and_show
(
LabelEditor
(
canvas
,
ax
.
title
))
elif
ax
.
xaxis
.
label
.
contains
(
event
)[
0
]:
move_and_show
(
LabelEditor
(
canvas
,
ax
.
xaxis
.
label
))
elif
ax
.
yaxis
.
label
.
contains
(
event
)[
0
]:
move_and_show
(
LabelEditor
(
canvas
,
ax
.
yaxis
.
label
))
elif
ax
.
xaxis
.
contains
(
event
)[
0
]:
move_and_show
(
XAxisEditor
(
canvas
,
ax
))
elif
ax
.
yaxis
.
contains
(
event
)[
0
]:
move_and_show
(
YAxisEditor
(
canvas
,
ax
))
class
Show
(
object
):
...
...
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