Add fallback for other backends

This commit is contained in:
Adrian Dawid 2020-08-13 11:03:14 +02:00
parent 71910c2d70
commit acfda5ea69

View File

@ -913,6 +913,21 @@ end
@deps pie shape
# ---------------------------------------------------------------------------
# mesh 3d replacement for non-plotly backends
@recipe function f(::Type{Val{:mesh3d}}, x, y, z; i=nothing,j=nothing,k=nothing)
# As long as no i,j,k are supplied this should work with PyPlot and GR
seriestype := :surface
if i != nothing || j != nothing || k != nothing
throw(ArgumentError("Giving triangles using i,j,k is only supported on Plotly backend."))
end
()
end
# note: don't add dependencies because this really isn't a drop-in replacement
# ---------------------------------------------------------------------------
# scatter 3d
@ -928,7 +943,6 @@ end
# note: don't add dependencies because this really isn't a drop-in replacement
# ---------------------------------------------------------------------------
# lens! - magnify a region of a plot
lens!(args...;kwargs...) = plot!(args...; seriestype=:lens, kwargs...)