From bad7772b1577f76c41385649414b3d53d5b073e4 Mon Sep 17 00:00:00 2001 From: "Michael K. Borregaard" Date: Tue, 6 Jun 2017 14:45:30 +0200 Subject: [PATCH] fix-example12-transpose --- src/examples.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/examples.jl b/src/examples.jl index 2fd6a0e9..c842d433 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -115,7 +115,8 @@ PlotExample("Line types", PlotExample("Line styles", "", [:(begin - styles = filter(s -> s in Plots.supported_styles(), [:solid, :dash, :dot, :dashdot, :dashdotdot])' + styles = filter(s -> s in Plots.supported_styles(), [:solid, :dash, :dot, :dashdot, :dashdotdot]) + styles = reshape(styles, 1, length(styles)) # Julia 0.6 unfortunately gives an error when transposing symbol vectors n = length(styles) y = cumsum(randn(20,n),1) plot(y, line = (5, styles), label = map(string,styles))