add ribbon area to marker
This commit is contained in:
parent
52f042263b
commit
9f712b44f3
@ -1049,16 +1049,19 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
|
|||||||
should_add_to_legend(series) || continue
|
should_add_to_legend(series) || continue
|
||||||
st = series[:seriestype]
|
st = series[:seriestype]
|
||||||
gr_set_line(series[:linewidth], series[:linestyle], series[:linecolor]) #, series[:linealpha])
|
gr_set_line(series[:linewidth], series[:linestyle], series[:linecolor]) #, series[:linealpha])
|
||||||
if st == :path && (series[:fillrange] == nothing || series[:ribbon] != nothing)
|
|
||||||
GR.polyline([xpos - 0.07, xpos - 0.01], [ypos, ypos])
|
if st == :shape || series[:fillrange] != nothing
|
||||||
elseif st == :shape || series[:fillrange] != nothing
|
|
||||||
gr_set_fill(series[:fillcolor]) #, series[:fillalpha])
|
gr_set_fill(series[:fillcolor]) #, series[:fillalpha])
|
||||||
l, r = xpos-0.07, xpos-0.01
|
l, r = xpos-0.07, xpos-0.01
|
||||||
b, t = ypos-0.4dy, ypos+0.4dy
|
b, t = ypos-0.4dy, ypos+0.4dy
|
||||||
x = [l, r, r, l, l]
|
x = [l, r, r, l, l]
|
||||||
y = [b, b, t, t, b]
|
y = [b, b, t, t, b]
|
||||||
gr_polyline(x, y, GR.fillarea)
|
gr_polyline(x, y, GR.fillarea)
|
||||||
gr_polyline(x, y)
|
series[:ribbon] != nothing || gr_polyline(x, y)
|
||||||
|
end
|
||||||
|
|
||||||
|
if st == :path && (series[:fillrange] == nothing || series[:ribbon] != nothing)
|
||||||
|
GR.polyline([xpos - 0.07, xpos - 0.01], [ypos, ypos])
|
||||||
end
|
end
|
||||||
|
|
||||||
if series[:markershape] != :none
|
if series[:markershape] != :none
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user