We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8d4405 + 09a8f58 commit 01e1e33Copy full SHA for 01e1e33
matplotlib2tikz/color.py
@@ -10,8 +10,12 @@ def mpl_color2xcolor(data, matplotlib_color):
10
# Convert it to RGBA.
11
my_col = numpy.array(mpl.colors.ColorConverter().to_rgba(matplotlib_color))
12
13
- xcol = None
+ # If the alpha channel is exactly 0, then the color is really 'none'
14
+ # regardless of the RGB channels.
15
+ if my_col[-1] == 0.0:
16
+ return data, 'none', my_col
17
18
+ xcol = None
19
# RGB values (as taken from xcolor.dtx):
20
available_colors = {
21
'red': numpy.array([1, 0, 0]),
0 commit comments