From a3392994f32124e17a8891d7863b5b16dd76fe21 Mon Sep 17 00:00:00 2001 From: dwgoon Date: Thu, 16 Jun 2016 00:45:16 +0900 Subject: [PATCH] using to_rgba rather than to_rgb --- lib/matplotlib/backends/qt_editor/figureoptions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/backends/qt_editor/figureoptions.py b/lib/matplotlib/backends/qt_editor/figureoptions.py index a3b8199805f8..2dffdb0521d4 100644 --- a/lib/matplotlib/backends/qt_editor/figureoptions.py +++ b/lib/matplotlib/backends/qt_editor/figureoptions.py @@ -112,9 +112,9 @@ def prepare_data(d, init): curvelabels = sorted(linedict, key=cmp_key) for label in curvelabels: line = linedict[label] - color = rgb2hex(colorConverter.to_rgb(line.get_color())) - ec = rgb2hex(colorConverter.to_rgb(line.get_markeredgecolor())) - fc = rgb2hex(colorConverter.to_rgb(line.get_markerfacecolor())) + color = rgb2hex(colorConverter.to_rgba(line.get_color())) + ec = rgb2hex(colorConverter.to_rgba(line.get_markeredgecolor())) + fc = rgb2hex(colorConverter.to_rgba(line.get_markerfacecolor())) curvedata = [ ('Label', label), sep,