Skip to content

Commit 8472d07

Browse files
committed
text weight: respect lfseries
1 parent f23a154 commit 8472d07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

matplotlib2tikz/text.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ def draw_text(data, obj):
160160
'black'
161161
] or (isinstance(weight, int) and weight > 550):
162162
style.append('\\bfseries')
163+
elif weights == 'light' or (isinstance(weight, int) and weight < 300):
164+
style.append('\\lfseries')
163165

164166
if obj.axes:
165167
# If the coordinates are relative to an axis, use `axis cs`.

0 commit comments

Comments
 (0)