all the legend positions (#2550)
* all the legend positions * fix default
This commit is contained in:
parent
749f56084a
commit
e6097f4534
@ -180,9 +180,8 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
push!(axis_opt["legend style"], "at={($x, $y)}")
|
push!(axis_opt["legend style"], "at={($x, $y)}")
|
||||||
else
|
else
|
||||||
push!(
|
push!(
|
||||||
axis_opt,
|
axis_opt["legend style"],
|
||||||
"legend pos" =>
|
get(_pgfplotsx_legend_pos, sp[:legend], ("at" => string((1.02, 1)), "anchor" => "north west"))...
|
||||||
get(_pgfplotsx_legend_pos, sp[:legend], "outer north east"),
|
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
for letter in (:x, :y, :z)
|
for letter in (:x, :y, :z)
|
||||||
@ -611,22 +610,22 @@ const _pgfplotsx_markers = KW(
|
|||||||
)
|
)
|
||||||
|
|
||||||
const _pgfplotsx_legend_pos = KW(
|
const _pgfplotsx_legend_pos = KW(
|
||||||
:top => "north",
|
:top => ("at" => string((0.5, 0.98)), "anchor" => "north"),
|
||||||
:bottom => "south",
|
:bottom => ("at" => string((0.5, 0.02)), "anchor" => "south"),
|
||||||
:left => "west",
|
:left => ("at" => string((0.02, 0.5)), "anchor" => "west"),
|
||||||
:right => "east",
|
:right => ("at" => string((0.98, 0.5)), "anchor" => "east"),
|
||||||
:bottomleft => "south west",
|
:bottomleft => ("at" => string((0.02, 0.02)), "anchor" => "south west"),
|
||||||
:bottomright => "south east",
|
:bottomright => ("at" => string((0.98, 0.02)), "anchor" => "south east"),
|
||||||
:topright => "north east",
|
:topright => ("at" => string((0.98, 0.98)), "anchor" => "north east"),
|
||||||
:topleft => "north west",
|
:topleft => ("at" => string((-1.02, 0.98)), "anchor" => "north west"),
|
||||||
:outertop => "north",
|
:outertop => ("at" => string((0.5, 1.02)), "anchor" => "south"),
|
||||||
:outerbottom => "outer south",
|
:outerbottom => ("at" => string((0.5, -0.02)), "anchor" => "north"),
|
||||||
:outerleft => "outer west",
|
:outerleft => ("at" => string((-0.02, 0.5)), "anchor" => "east"),
|
||||||
:outerright => "outer east",
|
:outerright => ("at" => string((1.02, 0.5)), "anchor" => "west"),
|
||||||
:outerbottomleft => "outer south west",
|
:outerbottomleft => ("at" => string((-0.02, -0.02)), "anchor" => "north east"),
|
||||||
:outerbottomright => "outer south east",
|
:outerbottomright => ("at" => string((1.02, -0.02)), "anchor" => "north west"),
|
||||||
:outertopright => "outer north east",
|
:outertopright => ("at" => string((1.02, 1)), "anchor" => "north west"),
|
||||||
:outertopleft => "outer north west",
|
:outertopleft => ("at" => string((-0.02, 1)), "anchor" => "north east"),
|
||||||
)
|
)
|
||||||
|
|
||||||
const _pgfx_framestyles = [:box, :axes, :origin, :zerolines, :grid, :none]
|
const _pgfx_framestyles = [:box, :axes, :origin, :zerolines, :grid, :none]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user