Merge pull request #767 from jheinen/master

gr: use correct line width
This commit is contained in:
Josef Heinen 2017-04-10 17:18:39 +02:00 committed by GitHub
commit b8d80f5285

View File

@ -335,9 +335,10 @@ end
# --------------------------------------------------------- # ---------------------------------------------------------
function gr_set_line(w, style, c) #, a) function gr_set_line(lw, style, c) #, a)
GR.setlinetype(gr_linetype[style]) GR.setlinetype(gr_linetype[style])
GR.setlinewidth(w) w, h = gr_plot_size
GR.setlinewidth(max(1, lw / ((w + h) * 0.001)))
gr_set_linecolor(c) #, a) gr_set_linecolor(c) #, a)
end end