annotations over marksers in pgfplotsx backend (#3957)
This commit is contained in:
parent
63743f1c17
commit
2cd90ac33e
@ -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
|
||||
@ -1055,7 +1056,11 @@ function pgfx_add_annotation!(
|
||||
push!(
|
||||
o,
|
||||
join([
|
||||
"\\node",
|
||||
raw"""
|
||||
\begin{scope}
|
||||
\clip \pgfextra{\pgfplotspathaxisoutline};
|
||||
\node
|
||||
""",
|
||||
sprint(
|
||||
PGFPlotsX.print_tex,
|
||||
merge(
|
||||
@ -1074,6 +1079,7 @@ function pgfx_add_annotation!(
|
||||
),
|
||||
),
|
||||
string(" at (", cs, x, ",", y, ") {", val.str, "};"),
|
||||
"\\end{scope}",
|
||||
]),
|
||||
)
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user