From fe2d46d1eb83117960e0f9a0df6d6687885eca46 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sun, 26 Apr 2020 21:43:55 +0200 Subject: [PATCH] fix pgfx_get_ functions --- src/backends/pgfplotsx.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backends/pgfplotsx.jl b/src/backends/pgfplotsx.jl index 55a2d376..580420c6 100644 --- a/src/backends/pgfplotsx.jl +++ b/src/backends/pgfplotsx.jl @@ -601,7 +601,7 @@ pgfx_get_linestyle(k) = get( dashdot = "dashdotted", dashdotdot = "dashdotdotted", ), - k, + Symbol(k), "solid", ) @@ -625,7 +625,7 @@ pgfx_get_marker(k) = get( hline = "-", vline = "|", ), - k, + Symbol(k), "*", ) @@ -648,7 +648,7 @@ pgfx_get_legend_pos(k) = get( outertopright = ("at" => string((1.02, 1)), "anchor" => "north west"), outertopleft = ("at" => string((-0.02, 1)), "anchor" => "north east"), ), - k, + Symbol(k), ("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) end -function pgfx_linestyle(linewidth::Real, color, α = 1, linestyle = "solid") +function pgfx_linestyle(linewidth::Real, color, α = 1, linestyle = :solid) cstr = plot_color(color, α) a = alpha(cstr) return PGFPlotsX.Options(