Skip to content

Commit

Permalink
Merge pull request #4811 from avonmoll/pgfplotsx_valign
Browse files Browse the repository at this point in the history
Adding annotations now respects vertical alignment
  • Loading branch information
BeastyBlacksmith authored Aug 29, 2023
2 parents 850f315 + a19cc53 commit 80c24e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .zenodo.json
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,11 @@
"name": "Ryan Young",
"orcid": "0000-0002-9454-2876",
"type": "Other"
},
{
"name": "Alexander Von Moll",
"orcid": "0000-0002-7661-5752",
"type": "Other"
}
],
"upload_type": "software"
Expand Down
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 80c24e8

Please sign in to comment.