Fix issue: legend not showing up

This commit is contained in:
Lakshya Khatri 2020-07-29 19:59:30 +05:30
parent f39cbbdcf5
commit ece5fcf4ae

View File

@ -480,11 +480,11 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
end end
if st == :pixel if st == :pixel
handle = ax."plot"(x, y, handle = ax."plot"(x, y, py_marker(:pixel);
py_marker(:pixel),
label = series[:label], label = series[:label],
zorder = series[:series_plotindex], zorder = series[:series_plotindex] + 0.5,
) color = py_color(single_color(get_linecolor(series, clims)), get_linealpha(series)),
)[1]
push!(handles, handle) push!(handles, handle)
end end