Skip to content

Commit ae26046

Browse files
authored
Merge pull request #81 from gustaphe/deprecate
Add deprecation notices
2 parents 6e1d43e + 630cbac commit ae26046

File tree

5 files changed

+36
-6
lines changed

5 files changed

+36
-6
lines changed

Project.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
name = "UnitfulRecipes"
22
uuid = "42071c24-d89e-48dd-8a24-8a12d9b8861f"
33
authors = ["Benoit Pasquier", "David Gustavsson", "Jan Weidner"]
4-
version = "1.6.0"
4+
version = "1.6.1"
55

66
[deps]
77
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
88
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
99

10-
[compat]
11-
RecipesBase = "1.0"
12-
Unitful = "0.16, 0.17, 0.18, 1.0"
13-
julia = "1.0"
14-
1510
[extras]
1611
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
1712
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1813

1914
[targets]
2015
test = ["Test", "Plots"]
16+
17+
[compat]
18+
RecipesBase = "1.0"
19+
Plots = "<1.34.2"
20+
Unitful = "0.16, 0.17, 0.18, 1.0"
21+
julia = "1.0"
22+

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
*for plotting data with units seamlessly in Julia*
44

5+
## Deprecation
6+
7+
As of Plots.jl `v1.34.2`, UnitfulRecipes is included in Plots, and is no longer
8+
necessary. Instead, loading both Unitful.jl and Plots.jl suffices to plot
9+
unitful data.
10+
11+
## Archive
12+
513
<p>
614
<a href="https://jw3126.github.io/UnitfulRecipes.jl/stable/">
715
<img src="https://img.shields.io/github/workflow/status/jw3126/UnitfulRecipes.jl/Documentation?style=for-the-badge&label=Documentation&logo=Read%20the%20Docs&logoColor=white">

docs/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
66

77
[compat]
88
Documenter = "0.27"
9+
Plots = "< 1.34.2"

docs/src/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
*for plotting data with units seamlessly in Julia*
44

5+
## Deprecation
6+
7+
As of Plots.jl `v1.34.1`, UnitfulRecipes is included in Plots, and is no longer
8+
necessary. Instead, loading both Unitful.jl and Plots.jl suffices to plot
9+
unitful data.
10+
11+
## Archive
12+
513
[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)).
614

715

src/UnitfulRecipes.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ export @P_str
66

77
const clims_types = (:contour, :contourf, :heatmap, :surface)
88

9+
function __init__()
10+
@warn """
11+
UnitfulRecipes has been deprecated.
12+
13+
```
14+
using Unitful, Plots
15+
```
16+
should suffice to plot unitful data.
17+
"""
18+
end
19+
920
#==========
1021
Main recipe
1122
==========#

0 commit comments

Comments
 (0)