Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Plots/src/backends/pgfplotsx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1029,10 +1029,13 @@ function pgfx_add_annotation!(
cstr = val.font.color
ann_opt = merge(
Options(
get((hcenter = "", left = "right", right = "left"), val.font.halign, "") =>
nothing,
get((vcenter = "", top = "below", bottom = "above"), val.font.valign, "") =>
nothing,
join(
(
get((vcenter = "", top = "below", bottom = "above"), val.font.valign, ""),
get((hcenter = "", left = "right", right = "left"), val.font.halign, ""),
),
' '
) => nothing,
"color" => cstr,
"draw opacity" => float(alpha(cstr)), # float(...): convert N0f8
"rotate" => val.font.rotation,
Expand Down
Loading