Skip to content

Commit

Permalink
Adding annotations now respects vertical alignment
Browse files Browse the repository at this point in the history
- Fixes #4810
  • Loading branch information
avonmoll committed Aug 25, 2023
1 parent 47c0aee commit 366ee9f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/backends/pgfplotsx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,8 @@ function pgfx_add_annotation!(
Options(
get((hcenter = "", left = "right", right = "left"), val.font.halign, "") =>
nothing,
get((vcenter = "", top = "below", bottom = "above"), val.font.valign, "") =>
nothing,
"color" => cstr,
"draw opacity" => float(alpha(cstr)), # float(...): convert N0f8
"rotate" => val.font.rotation,
Expand Down

0 comments on commit 366ee9f

Please sign in to comment.