Gaston: fix wrong series_list causing segfault
This commit is contained in:
parent
defe808619
commit
fe8d08123c
@ -132,7 +132,7 @@ function gaston_init_subplot(plt::Plot{GastonBackend}, sp::Union{Nothing,Subplot
|
|||||||
else
|
else
|
||||||
dims = RecipesPipeline.is3d(sp) || sp.attr[:projection] == "3d" || needs_any_3d_axes(sp) ? 3 : 2
|
dims = RecipesPipeline.is3d(sp) || sp.attr[:projection] == "3d" || needs_any_3d_axes(sp) ? 3 : 2
|
||||||
any_label = false
|
any_label = false
|
||||||
for series ∈ plt.series_list
|
for series ∈ series_list(sp)
|
||||||
if dims == 2 && series[:seriestype] ∈ (:heatmap, :contour)
|
if dims == 2 && series[:seriestype] ∈ (:heatmap, :contour)
|
||||||
dims = 3 # we need heatmap/contour to use splot, not plot
|
dims = 3 # we need heatmap/contour to use splot, not plot
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user