allow setting the linestyle for contours on GR

This commit is contained in:
Daniel Schwabeneder 2017-11-03 10:02:16 +01:00
parent 5d5d8f073a
commit 40282ae23a

View File

@ -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