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
cf28aa91
Commit
cf28aa91
authored
4 years ago
by
Phil Colebrooke
Browse files
Options
Downloads
Patches
Plain Diff
Re #28464 make plot not move around after closing axis editor
parent
46277822
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Framework/PythonInterface/mantid/plots/mantidaxes.py
+7
-0
7 additions, 0 deletions
Framework/PythonInterface/mantid/plots/mantidaxes.py
qt/applications/workbench/workbench/plotting/figureinteraction.py
+3
-0
3 additions, 0 deletions
...cations/workbench/workbench/plotting/figureinteraction.py
with
10 additions
and
0 deletions
Framework/PythonInterface/mantid/plots/mantidaxes.py
+
7
−
0
View file @
cf28aa91
...
@@ -1128,6 +1128,13 @@ class MantidAxes3D(Axes3D):
...
@@ -1128,6 +1128,13 @@ class MantidAxes3D(Axes3D):
name
=
'
mantid3d
'
name
=
'
mantid3d
'
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
().
__init__
(
*
args
,
**
kwargs
)
# Remove the connection for when you click on the plot as this is dealt with in figureinteraction.py to stop
# it interfering with double-clicking on the axes.
self
.
figure
.
canvas
.
mpl_disconnect
(
self
.
_cids
[
1
])
def
plot
(
self
,
*
args
,
**
kwargs
):
def
plot
(
self
,
*
args
,
**
kwargs
):
"""
"""
If the **mantid3d** projection is chosen, it can be
If the **mantid3d** projection is chosen, it can be
...
...
This diff is collapsed.
Click to expand it.
qt/applications/workbench/workbench/plotting/figureinteraction.py
+
3
−
0
View file @
cf28aa91
...
@@ -20,6 +20,7 @@ from qtpy.QtGui import QCursor
...
@@ -20,6 +20,7 @@ from qtpy.QtGui import QCursor
from
qtpy.QtWidgets
import
QActionGroup
,
QMenu
,
QApplication
from
qtpy.QtWidgets
import
QActionGroup
,
QMenu
,
QApplication
from
matplotlib.colors
import
LogNorm
,
Normalize
from
matplotlib.colors
import
LogNorm
,
Normalize
from
matplotlib.collections
import
Collection
from
matplotlib.collections
import
Collection
from
mpl_toolkits.mplot3d.axes3d
import
Axes3D
# third party imports
# third party imports
from
mantid.api
import
AnalysisDataService
as
ads
from
mantid.api
import
AnalysisDataService
as
ads
...
@@ -152,6 +153,8 @@ class FigureInteraction(object):
...
@@ -152,6 +153,8 @@ class FigureInteraction(object):
self
.
canvas
.
toolbar
.
press_pan
(
event
)
self
.
canvas
.
toolbar
.
press_pan
(
event
)
finally
:
finally
:
event
.
button
=
3
event
.
button
=
3
elif
isinstance
(
event
.
inaxes
,
Axes3D
):
event
.
inaxes
.
_button_press
(
event
)
def
on_mouse_button_release
(
self
,
event
):
def
on_mouse_button_release
(
self
,
event
):
"""
Stop moving the markers when the mouse button is released
"""
"""
Stop moving the markers when the mouse button is released
"""
...
...
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