Clean up code

This commit is contained in:
Adrian Dawid 2020-08-11 01:15:43 +02:00
parent 6d9f224c74
commit 60e80e93cf
2 changed files with 0 additions and 4 deletions

View File

@ -489,7 +489,6 @@ as_gradient(grad, α) = cgrad(alpha = α)
# get a dictionary representing the series params (plotattributes is the Plots-dict, plotattributes_out is the Plotly-dict) # get a dictionary representing the series params (plotattributes is the Plots-dict, plotattributes_out is the Plotly-dict)
function plotly_series(plt::Plot, series::Series) function plotly_series(plt::Plot, series::Series)
st = series[:seriestype] st = series[:seriestype]
println(st)
sp = series[:subplot] sp = series[:subplot]
clims = get_clims(sp, series) clims = get_clims(sp, series)

View File

@ -328,15 +328,12 @@ end
function _override_seriestype_check(plotattributes::AKW, st::Symbol) function _override_seriestype_check(plotattributes::AKW, st::Symbol)
# do we want to override the series type? # do we want to override the series type?
println(RecipesPipeline.is3d(st))
println(st)
if !RecipesPipeline.is3d(st) && !(st in (:contour, :contour3d)) if !RecipesPipeline.is3d(st) && !(st in (:contour, :contour3d))
z = plotattributes[:z] z = plotattributes[:z]
if !isa(z, Nothing) && if !isa(z, Nothing) &&
(size(plotattributes[:x]) == size(plotattributes[:y]) == size(z)) && (size(plotattributes[:x]) == size(plotattributes[:y]) == size(z)) &&
st !== :mesh3d st !== :mesh3d
st = (st == :scatter ? :scatter3d : :path3d) st = (st == :scatter ? :scatter3d : :path3d)
println("hello hello hello")
plotattributes[:seriestype] = st plotattributes[:seriestype] = st
end end
end end