Commit 4b17a287 authored by Tom Clayton's avatar Tom Clayton
Browse files

Remove python 2 code from plotssaver RE #30315

parent 4f477af8
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment