fix pgfx_get_ functions
This commit is contained in:
parent
a0ba0e232e
commit
fe2d46d1eb
@ -601,7 +601,7 @@ pgfx_get_linestyle(k) = get(
|
|||||||
dashdot = "dashdotted",
|
dashdot = "dashdotted",
|
||||||
dashdotdot = "dashdotdotted",
|
dashdotdot = "dashdotdotted",
|
||||||
),
|
),
|
||||||
k,
|
Symbol(k),
|
||||||
"solid",
|
"solid",
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -625,7 +625,7 @@ pgfx_get_marker(k) = get(
|
|||||||
hline = "-",
|
hline = "-",
|
||||||
vline = "|",
|
vline = "|",
|
||||||
),
|
),
|
||||||
k,
|
Symbol(k),
|
||||||
"*",
|
"*",
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -648,7 +648,7 @@ pgfx_get_legend_pos(k) = get(
|
|||||||
outertopright = ("at" => string((1.02, 1)), "anchor" => "north west"),
|
outertopright = ("at" => string((1.02, 1)), "anchor" => "north west"),
|
||||||
outertopleft = ("at" => string((-0.02, 1)), "anchor" => "north east"),
|
outertopleft = ("at" => string((-0.02, 1)), "anchor" => "north east"),
|
||||||
),
|
),
|
||||||
k,
|
Symbol(k),
|
||||||
("at" => string((1.02, 1)), "anchor" => "north west"),
|
("at" => string((1.02, 1)), "anchor" => "north west"),
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -720,7 +720,7 @@ function pgfx_fillstyle(plotattributes, i = 1)
|
|||||||
PGFPlotsX.Options("fill" => cstr, "fill opacity" => a)
|
PGFPlotsX.Options("fill" => cstr, "fill opacity" => a)
|
||||||
end
|
end
|
||||||
|
|
||||||
function pgfx_linestyle(linewidth::Real, color, α = 1, linestyle = "solid")
|
function pgfx_linestyle(linewidth::Real, color, α = 1, linestyle = :solid)
|
||||||
cstr = plot_color(color, α)
|
cstr = plot_color(color, α)
|
||||||
a = alpha(cstr)
|
a = alpha(cstr)
|
||||||
return PGFPlotsX.Options(
|
return PGFPlotsX.Options(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user