From b682bc8e967025b6cad3de6da83c8c4890e071a0 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Wed, 12 Feb 2020 07:28:30 +0100 Subject: [PATCH] prepare for docs rewrite --- src/backends/pgfplots.jl | 12 ++++++------ src/examples.jl | 5 +++-- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/backends/pgfplots.jl b/src/backends/pgfplots.jl index 378473c5..7205b850 100644 --- a/src/backends/pgfplots.jl +++ b/src/backends/pgfplots.jl @@ -482,12 +482,12 @@ function _update_plot_object(plt::Plot{PGFPlotsBackend}) fg_alpha = alpha(plot_color(sp[:foreground_color_legend])) push!(style, string( - "legend style = {", - pgf_linestyle(pgf_thickness_scaling(sp), sp[:foreground_color_legend], fg_alpha, "solid", ), ",", - "fill = $cstr,", - "fill opacity = $bg_alpha,", - "text opacity = $(alpha(plot_color(sp[:legendfontcolor]))),", - "font = ", pgf_font(sp[:legendfontsize], pgf_thickness_scaling(sp)), + "legend style = {", + pgf_linestyle(pgf_thickness_scaling(sp), sp[:foreground_color_legend], fg_alpha, "solid", ), ",", + "fill = $cstr,", + "fill opacity = $bg_alpha,", + "text opacity = $(alpha(plot_color(sp[:legendfontcolor]))),", + "font = ", pgf_font(sp[:legendfontsize], pgf_thickness_scaling(sp)), "}", )) diff --git a/src/examples.jl b/src/examples.jl index c0ac5a38..a00a61d9 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -433,7 +433,7 @@ each line segment or marker in the plot. x = t .* cos.(θ) y = t .* sin.(θ) p1 = plot(x, y, line_z=t, linewidth=3, legend=false) - p2 = scatter(x, y, marker_z=(x,y)->x+y, color=:bluesreds, legend=false) + p2 = scatter(x, y, marker_z=+, color=:bluesreds, legend=false) plot(p1, p2) end)] ), @@ -507,7 +507,8 @@ _backend_skips = Dict( :gr => [25, 30], :pyplot => [25, 30], :plotlyjs => [2, 21, 24, 25, 30, 31], - :pgfplots => [2, 5, 6, 10, 16, 20, 22, 23, 25, 28, 30], + :plotly => [2, 21, 24, 25, 30, 31], + :pgfplots => [2, 5, 6, 10, 16, 20, 22, 23, 25, 28, 30, 31, 34, 37, 38, 39], )