fix filling stepstyle on pyplot
This commit is contained in:
parent
ee9d78b190
commit
2fbc3c954a
@ -221,6 +221,12 @@ function py_stepstyle(seriestype::Symbol)
|
|||||||
return "default"
|
return "default"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function py_fillstepstyle(seriestype::Symbol)
|
||||||
|
seriestype == :steppost && return "post"
|
||||||
|
seriestype == :steppre && return "pre"
|
||||||
|
return nothing
|
||||||
|
end
|
||||||
|
|
||||||
# # untested... return a FontProperties object from a Plots.Font
|
# # untested... return a FontProperties object from a Plots.Font
|
||||||
# function py_font(font::Font)
|
# function py_font(font::Font)
|
||||||
# pyfont.pymember("FontProperties")(
|
# pyfont.pymember("FontProperties")(
|
||||||
@ -868,7 +874,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
|||||||
dim1, expand_data(fillrange[1], n), expand_data(fillrange[2], n)
|
dim1, expand_data(fillrange[1], n), expand_data(fillrange[2], n)
|
||||||
end
|
end
|
||||||
|
|
||||||
handle = ax[f](args...;
|
handle = ax[f](args..., trues(n), false, py_fillstepstyle(st);
|
||||||
zorder = series[:series_plotindex],
|
zorder = series[:series_plotindex],
|
||||||
facecolor = py_fillcolor(series),
|
facecolor = py_fillcolor(series),
|
||||||
linewidths = 0
|
linewidths = 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user