Merge pull request #2080 from daschw/gr-linealpha

fix gr linealpha (fix #2078)
This commit is contained in:
Daniel Schwabeneder 2019-07-02 08:01:23 +02:00 committed by GitHub
commit cf0cf972e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1280,10 +1280,10 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
for (i, rng) in enumerate(segments)
lc = get_linecolor(series, clims, i)
gr_set_line(get_linewidth(series, i), get_linestyle(series, i), lc) #, series[:linealpha])
gr_set_transparency(lc, get_linealpha(series, i))
arrowside = isa(series[:arrow], Arrow) ? series[:arrow].side : :none
arrowstyle = isa(series[:arrow], Arrow) ? series[:arrow].style : :simple
gr_set_fillcolor(lc)
gr_set_transparency(lc, get_linealpha(series, i))
gr_polyline(x[rng], y[rng]; arrowside = arrowside, arrowstyle = arrowstyle)
end
end