From 40282ae23ab55480b2acfe9e0d1465c7e6539b67 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Fri, 3 Nov 2017 10:02:16 +0100 Subject: [PATCH] allow setting the linestyle for contours on GR --- src/backends/gr.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backends/gr.jl b/src/backends/gr.jl index dfc726bd..9fc65c27 100644 --- a/src/backends/gr.jl +++ b/src/backends/gr.jl @@ -997,7 +997,9 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas) if series[:fillrange] != nothing GR.surface(x, y, z, GR.OPTION_CELL_ARRAY) else - GR.setlinewidth(series[:linewidth]) + GR.setlinetype(gr_linetype[series[:linestyle]]) + width, height = gr_plot_size + GR.setlinewidth(max(0, series[:linewidth] / (sum(gr_plot_size) * 0.001))) GR.contour(x, y, h, z, 1000) end