From 2f9ce790e43ddec7b671df1cc0dc192ab604dc84 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Tue, 19 May 2020 13:03:54 +0200 Subject: [PATCH] deprecate pgfplots (#2711) * deprecate pgfplots * Update backends.jl * Update backends.jl * Rename src/backends/pgfplots.jl to src/backends/deprecated/pgfplots.jl * Update init.jl --- src/backends.jl | 8 ++++++-- src/backends/{ => deprecated}/pgfplots.jl | 0 src/init.jl | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) rename src/backends/{ => deprecated}/pgfplots.jl (100%) diff --git a/src/backends.jl b/src/backends.jl index d71b3ffb..4aec7d9d 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -190,11 +190,15 @@ function backend(sym::Symbol) end end -const _deprecated_backends = [:qwt, :winston, :bokeh, :gadfly, :immerse, :glvisualize] +const _deprecated_backends = [:qwt, :winston, :bokeh, :gadfly, :immerse, :glvisualize, :pgfplots] function warn_on_deprecated_backend(bsym::Symbol) if bsym in _deprecated_backends - @warn("Backend $bsym has been deprecated.") + if bsym == :pgfplots + @warn("Backend $bsym has been deprecated. Use pgfplotsx instead.") + else + @warn("Backend $bsym has been deprecated.") + end end end diff --git a/src/backends/pgfplots.jl b/src/backends/deprecated/pgfplots.jl similarity index 100% rename from src/backends/pgfplots.jl rename to src/backends/deprecated/pgfplots.jl diff --git a/src/init.jl b/src/init.jl index eb05ec71..624e78f6 100644 --- a/src/init.jl +++ b/src/init.jl @@ -39,7 +39,7 @@ function __init__() end @require PGFPlots = "3b7a836e-365b-5785-a47d-02c71176b4aa" begin - fn = joinpath(@__DIR__, "backends", "pgfplots.jl") + fn = joinpath(@__DIR__, "backends", "deprecated", "pgfplots.jl") include(fn) @require Revise = "295af30f-e4ad-537b-8983-00126c2a3abe" Revise.track(Plots, fn) end