Skip to content

Commit a78331d

Browse files
authored
Support for opacity of text annotations
1 parent d88bb1e commit a78331d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tikzplotlib/_text.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ def _bbox(bbox, data, properties, scaling):
246246
properties.append(f"line width={line_width:{ff}}pt")
247247
inner_sep = bbox_style.pad * data["font size"]
248248
properties.append(f"inner sep={inner_sep:{ff}}pt")
249+
properties.append("fill opacity={}".format(bbox.get_alpha()))
249250
# Rounded boxes
250251
if isinstance(bbox_style, mpl.patches.BoxStyle.Round):
251252
properties.append("rounded corners")

0 commit comments

Comments
 (0)