Avoid drawing markers for empty 3D scatter plots in GR
This commit is contained in:
parent
5c4fbc5e1a
commit
279bc347ef
@ -1840,7 +1840,7 @@ function gr_add_series(sp, series)
|
|||||||
gr_draw_shapes(series, clims)
|
gr_draw_shapes(series, clims)
|
||||||
elseif st in (:path3d, :scatter3d)
|
elseif st in (:path3d, :scatter3d)
|
||||||
gr_draw_segments_3d(series, x, y, z, clims)
|
gr_draw_segments_3d(series, x, y, z, clims)
|
||||||
if st === :scatter3d || series[:markershape] !== :none
|
if (st === :scatter3d || series[:markershape] !== :none) && !isempty(x)
|
||||||
# TODO: Do we need to transform to 2d coordinates here?
|
# TODO: Do we need to transform to 2d coordinates here?
|
||||||
x2, y2 = RecipesPipeline.unzip(map(GR.wc3towc, x, y, z))
|
x2, y2 = RecipesPipeline.unzip(map(GR.wc3towc, x, y, z))
|
||||||
gr_draw_markers(series, x2, y2, clims)
|
gr_draw_markers(series, x2, y2, clims)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user