Skip to content

Commit ff933ec

Browse files
committed
Problem fixed, continue with cleanup.
1 parent a9dc013 commit ff933ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ def draw(self, renderer):
753753
prop = textobj._fontproperties
754754
gc = renderer.new_gc()
755755
gc.set_foreground(color)
756+
color = gc.get_rgb()
756757
gc.set_alpha(textobj.get_alpha())
757758
gc.set_url(textobj._url)
758759
textobj._set_gc_clip(gc)
@@ -779,7 +780,6 @@ def draw(self, renderer):
779780
if textobj.get_usetex():
780781
ismath = "TeX"
781782
path, transform = textrenderer._get_text_path_transform(x, y, clean_line, prop, angle, ismath)
782-
color = gc.get_rgb()
783783
gc.set_linewidth(0.0)
784784
textrenderer.draw_path(gc, path, transform, rgbFace=color)
785785
else:

0 commit comments

Comments
 (0)