From 420228c67b24c8e131eb34ee179b1ab2ba0f5de3 Mon Sep 17 00:00:00 2001 From: Oliver Schulz Date: Thu, 1 Nov 2018 21:49:34 +0100 Subject: [PATCH] Remove function add_backend No longer in use. --- src/Plots.jl | 1 - src/backends.jl | 56 ------------------------------------------------- 2 files changed, 57 deletions(-) diff --git a/src/Plots.jl b/src/Plots.jl index d387275e..10c599ff 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -84,7 +84,6 @@ export backends, backend_name, backend_object, - add_backend, aliases, Shape, diff --git a/src/backends.jl b/src/backends.jl index e008283b..f0445ff6 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -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 _create_backend_figure(plt::Plot) = nothing _prepare_plot_object(plt::Plot) = nothing @@ -314,14 +308,6 @@ _initialize_backend(pkg::GRBackend) = nothing _initialize_backend(pkg::PlotlyBackend) = nothing -function add_backend_string(pkg::AbstractBackend) - sym = backend_package_name(pkg) - """ - using Pkg - Pkg.add("$sym") - """ -end - # ------------------------------------------------------------------------------ # gr @@ -377,13 +363,6 @@ const _gr_marker = _allMarkers const _gr_scale = [:identity, :log10] is_marker_supported(::GRBackend, shape::Shape) = true -function add_backend_string(::GRBackend) - """ - Pkg.add("GR") - Pkg.build("GR") - """ -end - # ------------------------------------------------------------------------------ # plotly @@ -445,14 +424,6 @@ const _plotly_scale = [:identity, :log10] # ------------------------------------------------------------------------------ # pgfplots -function add_backend_string(::PGFPlotsBackend) - """ - using Pkg - Pkg.add("PGFPlots") - Pkg.build("PGFPlots") - """ -end - const _pgfplots_attr = merge_with_base_supported([ :annotations, :background_color_legend, @@ -504,15 +475,6 @@ function _initialize_backend(pkg::PlotlyJSBackend) 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_seriestype = _plotly_seriestype const _plotlyjs_style = _plotly_style @@ -533,16 +495,6 @@ function _initialize_backend(::PyPlotBackend) 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([ :annotations, :background_color_legend, :background_color_inside, :background_color_outside, @@ -596,14 +548,6 @@ const _pyplot_scale = [:identity, :ln, :log2, :log10] # ------------------------------------------------------------------------------ # unicodeplots -function add_backend_string(::UnicodePlotsBackend) - """ - using Pkg - Pkg.add("UnicodePlots") - Pkg.build("UnicodePlots") - """ -end - const _unicodeplots_attr = merge_with_base_supported([ :label, :legend,