format file pgfplotsx.jl
This commit is contained in:
parent
dab99cd674
commit
2c4535f6f2
@ -129,8 +129,7 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
) => nothing,
|
) => nothing,
|
||||||
"fill" => cstr,
|
"fill" => cstr,
|
||||||
"fill opacity" => a,
|
"fill opacity" => a,
|
||||||
"text opacity" =>
|
"text opacity" => alpha(plot_color(sp[:legendfontcolor])),
|
||||||
alpha(plot_color(sp[:legendfontcolor])),
|
|
||||||
"font" => pgfx_font(
|
"font" => pgfx_font(
|
||||||
sp[:legendfontsize],
|
sp[:legendfontsize],
|
||||||
pgfx_thickness_scaling(sp),
|
pgfx_thickness_scaling(sp),
|
||||||
@ -299,7 +298,8 @@ function (pgfx_plot::PGFPlotsXPlot)(plt::Plot{PGFPlotsXBackend})
|
|||||||
rng,
|
rng,
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
if i == 1 && sp[:legend] != :none && pgfx_should_add_to_legend(series)
|
if i == 1 &&
|
||||||
|
sp[:legend] != :none && pgfx_should_add_to_legend(series)
|
||||||
pgfx_filllegend!(series_opt, opt)
|
pgfx_filllegend!(series_opt, opt)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -541,8 +541,7 @@ function pgfx_series_coordinates!(
|
|||||||
|
|
||||||
cs = join(
|
cs = join(
|
||||||
[
|
[
|
||||||
join(["($x, $y) [$(zs[j, i])]" for (j, x) in enumerate(xs)], " ")
|
join(["($x, $y) [$(zs[j, i])]" for (j, x) in enumerate(xs)], " ") for (i, y) in enumerate(ys)
|
||||||
for (i, y) in enumerate(ys)
|
|
||||||
],
|
],
|
||||||
"\n\n",
|
"\n\n",
|
||||||
)
|
)
|
||||||
@ -889,8 +888,7 @@ function pgfx_axis!(opt::PGFPlotsX.Options, sp::Subplot, letter)
|
|||||||
opt,
|
opt,
|
||||||
string(letter, "label style") => PGFPlotsX.Options(
|
string(letter, "label style") => PGFPlotsX.Options(
|
||||||
labelpos => nothing,
|
labelpos => nothing,
|
||||||
"font" =>
|
"font" => pgfx_font(axis[:guidefontsize], pgfx_thickness_scaling(sp)),
|
||||||
pgfx_font(axis[:guidefontsize], pgfx_thickness_scaling(sp)),
|
|
||||||
"color" => cstr,
|
"color" => cstr,
|
||||||
"draw opacity" => α,
|
"draw opacity" => α,
|
||||||
"rotate" => axis[:guidefontrotation],
|
"rotate" => axis[:guidefontrotation],
|
||||||
@ -995,8 +993,7 @@ function pgfx_axis!(opt::PGFPlotsX.Options, sp::Subplot, letter)
|
|||||||
|
|
||||||
# framestyle
|
# framestyle
|
||||||
if framestyle in (:axes, :origin)
|
if framestyle in (:axes, :origin)
|
||||||
axispos = axis[:mirror] ? "right" :
|
axispos = axis[:mirror] ? "right" : framestyle == :axes ? "left" : "middle"
|
||||||
framestyle == :axes ? "left" : "middle"
|
|
||||||
|
|
||||||
if axis[:draw_arrow]
|
if axis[:draw_arrow]
|
||||||
push!(opt, string("axis ", letter, " line") => axispos)
|
push!(opt, string("axis ", letter, " line") => axispos)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user