axis cs for annotations
This commit is contained in:
parent
cc4750688e
commit
cc2e8ed513
@ -591,7 +591,6 @@ end
|
|||||||
|
|
||||||
function pgfx_add_annotation!(o, x, y, val, thickness_scaling = 1)
|
function pgfx_add_annotation!(o, x, y, val, thickness_scaling = 1)
|
||||||
# Construct the style string.
|
# Construct the style string.
|
||||||
# Currently supports color and orientation
|
|
||||||
cstr = val.font.color
|
cstr = val.font.color
|
||||||
a = alpha(cstr)
|
a = alpha(cstr)
|
||||||
push!(o, ["\\node",
|
push!(o, ["\\node",
|
||||||
@ -602,9 +601,7 @@ function pgfx_add_annotation!(o, x, y, val, thickness_scaling = 1)
|
|||||||
"rotate" => val.font.rotation,
|
"rotate" => val.font.rotation,
|
||||||
"font" => pgfx_font(val.font.pointsize, thickness_scaling)
|
"font" => pgfx_font(val.font.pointsize, thickness_scaling)
|
||||||
),
|
),
|
||||||
" at ",
|
" at (axis cs:$x, $y) {$(val.str)};"
|
||||||
PGFPlotsX.Coordinate(x, y),
|
|
||||||
"{$(val.str)};"
|
|
||||||
])
|
])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user