Remove function add_backend
No longer in use.
This commit is contained in:
parent
f1719d6e91
commit
420228c67b
@ -84,7 +84,6 @@ export
|
|||||||
backends,
|
backends,
|
||||||
backend_name,
|
backend_name,
|
||||||
backend_object,
|
backend_object,
|
||||||
add_backend,
|
|
||||||
aliases,
|
aliases,
|
||||||
|
|
||||||
Shape,
|
Shape,
|
||||||
|
|||||||
@ -42,12 +42,6 @@ end
|
|||||||
|
|
||||||
# ---------------------------------------------------------
|
# ---------------------------------------------------------
|
||||||
|
|
||||||
function add_backend(pkg::Symbol)
|
|
||||||
@info("To do a standard install of $pkg, copy and run this:\n\n")
|
|
||||||
println(add_backend_string(_backend_instance(pkg)))
|
|
||||||
println()
|
|
||||||
end
|
|
||||||
|
|
||||||
# don't do anything as a default
|
# don't do anything as a default
|
||||||
_create_backend_figure(plt::Plot) = nothing
|
_create_backend_figure(plt::Plot) = nothing
|
||||||
_prepare_plot_object(plt::Plot) = nothing
|
_prepare_plot_object(plt::Plot) = nothing
|
||||||
@ -314,14 +308,6 @@ _initialize_backend(pkg::GRBackend) = nothing
|
|||||||
_initialize_backend(pkg::PlotlyBackend) = nothing
|
_initialize_backend(pkg::PlotlyBackend) = nothing
|
||||||
|
|
||||||
|
|
||||||
function add_backend_string(pkg::AbstractBackend)
|
|
||||||
sym = backend_package_name(pkg)
|
|
||||||
"""
|
|
||||||
using Pkg
|
|
||||||
Pkg.add("$sym")
|
|
||||||
"""
|
|
||||||
end
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# gr
|
# gr
|
||||||
|
|
||||||
@ -377,13 +363,6 @@ const _gr_marker = _allMarkers
|
|||||||
const _gr_scale = [:identity, :log10]
|
const _gr_scale = [:identity, :log10]
|
||||||
is_marker_supported(::GRBackend, shape::Shape) = true
|
is_marker_supported(::GRBackend, shape::Shape) = true
|
||||||
|
|
||||||
function add_backend_string(::GRBackend)
|
|
||||||
"""
|
|
||||||
Pkg.add("GR")
|
|
||||||
Pkg.build("GR")
|
|
||||||
"""
|
|
||||||
end
|
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# plotly
|
# plotly
|
||||||
|
|
||||||
@ -445,14 +424,6 @@ const _plotly_scale = [:identity, :log10]
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# pgfplots
|
# pgfplots
|
||||||
|
|
||||||
function add_backend_string(::PGFPlotsBackend)
|
|
||||||
"""
|
|
||||||
using Pkg
|
|
||||||
Pkg.add("PGFPlots")
|
|
||||||
Pkg.build("PGFPlots")
|
|
||||||
"""
|
|
||||||
end
|
|
||||||
|
|
||||||
const _pgfplots_attr = merge_with_base_supported([
|
const _pgfplots_attr = merge_with_base_supported([
|
||||||
:annotations,
|
:annotations,
|
||||||
:background_color_legend,
|
:background_color_legend,
|
||||||
@ -504,15 +475,6 @@ function _initialize_backend(pkg::PlotlyJSBackend)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function add_backend_string(::PlotlyJSBackend)
|
|
||||||
"""
|
|
||||||
using Pkg
|
|
||||||
Pkg.add(["PlotlyJS", "Blink", "ORCA"])
|
|
||||||
import Blink
|
|
||||||
Blink.AtomShell.install()
|
|
||||||
"""
|
|
||||||
end
|
|
||||||
|
|
||||||
const _plotlyjs_attr = _plotly_attr
|
const _plotlyjs_attr = _plotly_attr
|
||||||
const _plotlyjs_seriestype = _plotly_seriestype
|
const _plotlyjs_seriestype = _plotly_seriestype
|
||||||
const _plotlyjs_style = _plotly_style
|
const _plotlyjs_style = _plotly_style
|
||||||
@ -533,16 +495,6 @@ function _initialize_backend(::PyPlotBackend)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function add_backend_string(::PyPlotBackend)
|
|
||||||
"""
|
|
||||||
using Pkg
|
|
||||||
withenv("PYTHON" => "") do
|
|
||||||
Pkg.add("PyPlot")
|
|
||||||
Pkg.build("PyPlot")
|
|
||||||
end
|
|
||||||
"""
|
|
||||||
end
|
|
||||||
|
|
||||||
const _pyplot_attr = merge_with_base_supported([
|
const _pyplot_attr = merge_with_base_supported([
|
||||||
:annotations,
|
:annotations,
|
||||||
:background_color_legend, :background_color_inside, :background_color_outside,
|
:background_color_legend, :background_color_inside, :background_color_outside,
|
||||||
@ -596,14 +548,6 @@ const _pyplot_scale = [:identity, :ln, :log2, :log10]
|
|||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
# unicodeplots
|
# unicodeplots
|
||||||
|
|
||||||
function add_backend_string(::UnicodePlotsBackend)
|
|
||||||
"""
|
|
||||||
using Pkg
|
|
||||||
Pkg.add("UnicodePlots")
|
|
||||||
Pkg.build("UnicodePlots")
|
|
||||||
"""
|
|
||||||
end
|
|
||||||
|
|
||||||
const _unicodeplots_attr = merge_with_base_supported([
|
const _unicodeplots_attr = merge_with_base_supported([
|
||||||
:label,
|
:label,
|
||||||
:legend,
|
:legend,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user