Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
4b17a287
Commit
4b17a287
authored
Jan 20, 2021
by
Tom Clayton
Browse files
Remove python 2 code from plotssaver RE #30315
parent
4f477af8
Changes
1
Hide whitespace changes
Inline
Side-by-side
qt/python/mantidqt/project/plotssaver.py
View file @
4b17a287
...
...
@@ -14,13 +14,7 @@ from matplotlib.image import AxesImage
from
mantid
import
logger
from
mantid.plots.legend
import
LegendProperties
try
:
from
matplotlib.colors
import
to_hex
,
Normalize
except
ImportError
:
from
matplotlib.colors
import
colorConverter
,
rgb2hex
,
Normalize
def
to_hex
(
color
):
return
rgb2hex
(
colorConverter
.
to_rgb
(
color
))
from
matplotlib.colors
import
to_hex
,
Normalize
class
PlotsSaver
(
object
):
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment