Skip to content

Commit

Permalink
Merge pull request #81 from gustaphe/deprecate
Browse files Browse the repository at this point in the history
Add deprecation notices
  • Loading branch information
gustaphe authored Oct 3, 2022
2 parents 6e1d43e + 630cbac commit ae26046
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
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"
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"

8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

*for plotting data with units seamlessly in Julia*

## Deprecation

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.

## Archive

<p>
<a href="https://jw3126.github.io/UnitfulRecipes.jl/stable/">
<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">
Expand Down
1 change: 1 addition & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

[compat]
Documenter = "0.27"
Plots = "< 1.34.2"
8 changes: 8 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)).


Expand Down
11 changes: 11 additions & 0 deletions src/UnitfulRecipes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ 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
==========#
Expand Down

2 comments on commit ae26046

@gustaphe
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/69466

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.6.1 -m "<description of version>" ae26046232c74f0ef27f93bc2903bb1ef043e411
git push origin v1.6.1

Please sign in to comment.