From 9a73625abff2db0c74911fb8cf98525770a2d77e Mon Sep 17 00:00:00 2001 From: David Gustavsson Date: Tue, 27 Sep 2022 14:11:57 +0200 Subject: [PATCH 1/6] Add deprecation notices and bump version --- Project.toml | 4 ++-- README.md | 8 ++++++++ docs/src/index.md | 8 ++++++++ src/UnitfulRecipes.jl | 9 +++++++++ 4 files changed, 27 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 57828e6..87142b9 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "UnitfulRecipes" uuid = "42071c24-d89e-48dd-8a24-8a12d9b8861f" authors = ["Benoit Pasquier", "David Gustavsson", "Jan Weidner"] -version = "1.6.0" +version = "1.6.1" [deps] RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" @@ -10,7 +10,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" [compat] RecipesBase = "1.0" Unitful = "0.16, 0.17, 0.18, 1.0" -julia = "1.0" +julia = "1.0 - 1.8.1" [extras] Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" diff --git a/README.md b/README.md index 1b2d538..ea3025f 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,14 @@ *for plotting data with units seamlessly in Julia* +## Deprecation + +As of Plots.jl `v1.34.1`, UnitfulRecipes is included in Plots, and is no longer +necessary. Instead, loading both Unitful.jl and Plots.jl suffices to plot +unitful data. + +## Archive +

diff --git a/docs/src/index.md b/docs/src/index.md index 484cc92..92e7076 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -2,6 +2,14 @@ *for plotting data with units seamlessly in Julia* +## Deprecation + +As of Plots.jl `v1.34.1`, UnitfulRecipes is included in Plots, and is no longer +necessary. Instead, loading both Unitful.jl and Plots.jl suffices to plot +unitful data. + +## Archive + [UnitfulRecipes.jl](https://github.com/jw3126/UnitfulRecipes.jl) provides recipes for plotting figures ([Plots.jl](https://github.com/JuliaPlots/Plots.jl)) when using data with units ([Unitful.jl](https://github.com/PainterQubits/Unitful.jl)). diff --git a/src/UnitfulRecipes.jl b/src/UnitfulRecipes.jl index 6f1dade..4b871ae 100644 --- a/src/UnitfulRecipes.jl +++ b/src/UnitfulRecipes.jl @@ -1,5 +1,14 @@ module UnitfulRecipes +@warn """ +UnitfulRecipes has been deprecated. + +``` +using Plots, Unitful +``` +should suffice to plot unitful data. +""" + using RecipesBase using Unitful: Quantity, unit, ustrip, Unitful, dimension, Units export @P_str From 85bb9076496b5e634c71ab28103d8b8064bf5a31 Mon Sep 17 00:00:00 2001 From: gustaphe Date: Wed, 28 Sep 2022 10:30:34 +0200 Subject: [PATCH 2/6] Update src/UnitfulRecipes.jl Co-authored-by: t-bltg --- src/UnitfulRecipes.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UnitfulRecipes.jl b/src/UnitfulRecipes.jl index 4b871ae..53f7964 100644 --- a/src/UnitfulRecipes.jl +++ b/src/UnitfulRecipes.jl @@ -4,7 +4,7 @@ module UnitfulRecipes UnitfulRecipes has been deprecated. ``` -using Plots, Unitful +using Unitful, Plots ``` should suffice to plot unitful data. """ From f6ec9a23c1f1eaa4eaf64d1dc2cceb615df0d521 Mon Sep 17 00:00:00 2001 From: David Gustavsson Date: Sun, 2 Oct 2022 12:04:52 +0200 Subject: [PATCH 3/6] Fix deprecation comments --- Project.toml | 2 +- src/UnitfulRecipes.jl | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/Project.toml b/Project.toml index 87142b9..25d82c3 100644 --- a/Project.toml +++ b/Project.toml @@ -10,7 +10,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" [compat] RecipesBase = "1.0" Unitful = "0.16, 0.17, 0.18, 1.0" -julia = "1.0 - 1.8.1" +julia = "1.0" [extras] Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" diff --git a/src/UnitfulRecipes.jl b/src/UnitfulRecipes.jl index 53f7964..519d7da 100644 --- a/src/UnitfulRecipes.jl +++ b/src/UnitfulRecipes.jl @@ -1,20 +1,22 @@ module UnitfulRecipes -@warn """ -UnitfulRecipes has been deprecated. - -``` -using Unitful, Plots -``` -should suffice to plot unitful data. -""" - using RecipesBase using Unitful: Quantity, unit, ustrip, Unitful, dimension, Units export @P_str const clims_types = (:contour, :contourf, :heatmap, :surface) +function __init__() + @warn """ + UnitfulRecipes has been deprecated. + + ``` + using Unitful, Plots + ``` + should suffice to plot unitful data. + """ +end + #========== Main recipe ==========# From 927a4b9bf33bfbb6f90321a72e37a48dd3653b2d Mon Sep 17 00:00:00 2001 From: gustaphe Date: Mon, 3 Oct 2022 18:27:31 +0200 Subject: [PATCH 4/6] Update README.md Co-authored-by: t-bltg --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea3025f..cd67e13 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Deprecation -As of Plots.jl `v1.34.1`, UnitfulRecipes is included in Plots, and is no longer +As of Plots.jl `v1.34.2`, UnitfulRecipes is included in Plots, and is no longer necessary. Instead, loading both Unitful.jl and Plots.jl suffices to plot unitful data. From aaaa2a77ea24e74d57988ca74a69f8482fc334c5 Mon Sep 17 00:00:00 2001 From: David Gustavsson Date: Mon, 3 Oct 2022 20:36:01 +0200 Subject: [PATCH 5/6] Limit Plots version --- Project.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Project.toml b/Project.toml index 25d82c3..089469d 100644 --- a/Project.toml +++ b/Project.toml @@ -7,14 +7,16 @@ version = "1.6.1" RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" -[compat] -RecipesBase = "1.0" -Unitful = "0.16, 0.17, 0.18, 1.0" -julia = "1.0" - [extras] Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] test = ["Test", "Plots"] + +[compat] +RecipesBase = "1.0" +Plots = "<1.34.2" +Unitful = "0.16, 0.17, 0.18, 1.0" +julia = "1.0" + From 630cbac59708658fce1e52f2ee6e01ed595aa7af Mon Sep 17 00:00:00 2001 From: David Gustavsson Date: Mon, 3 Oct 2022 20:42:16 +0200 Subject: [PATCH 6/6] Docs plot dependency limit --- docs/Project.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/Project.toml b/docs/Project.toml index 5002751..b6b4a8e 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -6,3 +6,4 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" [compat] Documenter = "0.27" +Plots = "< 1.34.2"