replace hline and vline marker shapes with _ and | on pyplot
This commit is contained in:
parent
dbe5b78307
commit
77c2ee6782
@ -214,6 +214,8 @@ function py_marker(marker::Symbol)
|
|||||||
marker == :hexagon && return "h"
|
marker == :hexagon && return "h"
|
||||||
marker == :octagon && return "8"
|
marker == :octagon && return "8"
|
||||||
marker == :pixel && return ","
|
marker == :pixel && return ","
|
||||||
|
marker == :hline && return "_"
|
||||||
|
marker == :vline && return "|"
|
||||||
haskey(_shapes, marker) && return py_marker(_shapes[marker])
|
haskey(_shapes, marker) && return py_marker(_shapes[marker])
|
||||||
|
|
||||||
warn("Unknown marker $marker")
|
warn("Unknown marker $marker")
|
||||||
@ -571,7 +573,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
|
|||||||
:scatter3d, :steppre, :steppost,
|
:scatter3d, :steppre, :steppost,
|
||||||
:bar)
|
:bar)
|
||||||
if series[:marker_z] == nothing
|
if series[:marker_z] == nothing
|
||||||
extrakw[:c] = py_color_fix(py_markercolor(series), x)
|
extrakw[:c] = series[:markershape] in (:+, :x, :hline, :vline) ? py_markerstrokecolor(series) : py_color_fix(py_markercolor(series), x)
|
||||||
else
|
else
|
||||||
extrakw[:c] = convert(Vector{Float64}, series[:marker_z])
|
extrakw[:c] = convert(Vector{Float64}, series[:marker_z])
|
||||||
extrakw[:cmap] = py_markercolormap(series)
|
extrakw[:cmap] = py_markercolormap(series)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user