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
de77bd79
Unverified
Commit
de77bd79
authored
4 years ago
by
Gigg, Martyn Anthony
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #28640 from mantidproject/28053_colorbar_gridlines
parents
e398767e
7bbb39fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/source/release/v5.1.0/mantidworkbench.rst
+1
-0
1 addition, 0 deletions
docs/source/release/v5.1.0/mantidworkbench.rst
qt/applications/workbench/workbench/plotting/figuremanager.py
+3
-1
3 additions, 1 deletion
...pplications/workbench/workbench/plotting/figuremanager.py
with
4 additions
and
1 deletion
docs/source/release/v5.1.0/mantidworkbench.rst
+
1
−
0
View file @
de77bd79
...
...
@@ -41,5 +41,6 @@ Bugfixes
- Fixed being able to zoom in and out of colorbars on colorfill plots.
- Fixed the default axis scale settings applying to the wrong axis.
- Performing an overplot by dragging workspaces onto colorfill plots now correctly replaces the workspace.
- Removed gridlines from the colorbar on colorfill plots.
:ref:`Release 5.1.0 <v5.1.0>`
This diff is collapsed.
Click to expand it.
qt/applications/workbench/workbench/plotting/figuremanager.py
+
3
−
1
View file @
de77bd79
...
...
@@ -16,6 +16,7 @@ from matplotlib._pylab_helpers import Gcf
from
matplotlib.axes
import
Axes
from
matplotlib.backend_bases
import
FigureManagerBase
from
matplotlib.backends.backend_qt5agg
import
FigureCanvasQTAgg
from
matplotlib.collections
import
QuadMesh
from
mpl_toolkits.mplot3d.axes3d
import
Axes3D
from
qtpy.QtCore
import
QObject
,
Qt
from
qtpy.QtWidgets
import
QApplication
,
QLabel
,
QFileDialog
...
...
@@ -350,7 +351,8 @@ class FigureManagerWorkbench(FigureManagerBase, QObject):
canvas
=
self
.
canvas
axes
=
canvas
.
figure
.
get_axes
()
for
ax
in
axes
:
ax
.
grid
(
on
)
if
not
any
(
isinstance
(
x
,
QuadMesh
)
for
x
in
ax
.
collections
):
ax
.
grid
(
on
)
canvas
.
draw_idle
()
def
fit_toggle
(
self
):
...
...
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