Skip to content

Commit

Permalink
annotations over marksers in pgfplotsx backend (JuliaPlots#3957)
Browse files Browse the repository at this point in the history
  • Loading branch information
chwons authored and isentropic committed Jan 16, 2022
1 parent 63743f1 commit 2cd90ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backends/pgfplotsx.jl
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
"anchor" => "north west",
"xshift" => string(dx),
"yshift" => string(-dy),
"clip mode" => "individual",
)
sp_width > 0 * mm ? push!(axis_opt, "width" => string(axis_width)) : nothing
sp_height > 0 * mm ? push!(axis_opt, "height" => string(axis_height)) : nothing
Expand Down Expand Up @@ -1055,7 +1056,11 @@ function pgfx_add_annotation!(
push!(
o,
join([
"\\node",
raw"""
\begin{scope}
\clip \pgfextra{\pgfplotspathaxisoutline};
\node
""",
sprint(
PGFPlotsX.print_tex,
merge(
Expand All @@ -1074,6 +1079,7 @@ function pgfx_add_annotation!(
),
),
string(" at (", cs, x, ",", y, ") {", val.str, "};"),
"\\end{scope}",
]),
)
end
Expand Down

0 comments on commit 2cd90ac

Please sign in to comment.