Skip to content

Commit 867b768

Browse files
committed
Set annotation properties
1 parent 33bcc4d commit 867b768

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

packages/python/plotly/templategen/definitions.py

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,23 +92,11 @@ def mpl():
9292
ticks="outside",
9393
showline=True,
9494
)
95-
9695
# semi-transparent black and no outline
97-
# annotation_clr = "rgb(67,103,167)"
98-
# shape_defaults = dict(fillcolor=annotation_clr, line={"width": 0}, opacity=0.5)
99-
# Near black line color, no fill
100-
annotation_clr = plotly_clrs["Rhino Core"]
101-
shape_defaults = dict(line_color=annotation_clr)
102-
103-
# Remove arrow head and make line thinner
104-
# annotation_defaults = {"arrowcolor": annotation_clr}
96+
shape_defaults = dict(fillcolor="black", line={"width": 0}, opacity=0.3)
10597

10698
# Remove arrow head and make line thinner
107-
annotation_defaults = {
108-
"arrowcolor": annotation_clr,
109-
"arrowhead": 0,
110-
"arrowwidth": 1,
111-
}
99+
annotation_defaults = {"arrowhead": 0, "arrowwidth": 1}
112100

113101
template = initialize_template(
114102
paper_clr="white",

0 commit comments

Comments
 (0)