Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0 release #31

Closed
jw3126 opened this issue Aug 20, 2020 · 6 comments
Closed

1.0 release #31

jw3126 opened this issue Aug 20, 2020 · 6 comments

Comments

@jw3126
Copy link
Owner

jw3126 commented Aug 20, 2020

@briochemc I think this package is pretty stable and we can do an 1.0 release. What do you think?

@briochemc
Copy link
Collaborator

Yes, I agree!

@jw3126
Copy link
Owner Author

jw3126 commented Aug 22, 2020

[ANN] UnitfulRecipes.jl 1.0

@briochemc and myself are happy to announce UnitfulRecipes.jl 1.0.

UnitfulRecipes.jl provides recipes for plotting figures (Plots.jl) when using data with units (Unitful.jl).

using Unitful, UnitfulRecipes, Plots
const a = 1u"m/s^2"
v(t) = a * t
x(t) = a/2 * t^2
t = (0:0.01:100)*u"s"
plot(x.(t), v.(t), xlabel="position", ylabel="speed")

should give something like

UnitfulRecipeExample

UnitfulRecipes.jl also interoperates well with the wider ecosystem:

using Plots, UnitfulRecipes, Unitful, UnitfulMoles, Measurements
x = collect(-10:2:30) * u"°C"
y = (50 .+ 10atan.(ustrip.(x)/10)  3rand.(length(x))) * u"molC/molP"
plot(x, y, ylabel="Organic matter C:P", xlabel="Water temperature", label="")

image

Head over to the documentation for more examples!

@jw3126
Copy link
Owner Author

jw3126 commented Aug 22, 2020

Does that sound good for a discourse announcement @briochemc ?

@briochemc
Copy link
Collaborator

Yes, of course! Maybe give this example too to say that it also combines well with the recently released UnitfulMoles.jl and other packages like Measurments.jl?

using Plots, UnitfulRecipes, Unitful, UnitfulMoles, Measurements
x = collect(-10:2:30) * u"°C"
y = (50 .+ 10atan.(ustrip.(x)/10)  3rand.(length(x))) * u"molC/molP"
plot(x, y, ylabel="Organic matter C:P", xlabel="Water temperature", label="")

should give something like

Screen Shot 2020-08-22 at 4 03 07 pm

@jw3126
Copy link
Owner Author

jw3126 commented Aug 22, 2020

I edited my post, see above.

@jw3126
Copy link
Owner Author

jw3126 commented Aug 22, 2020

@jw3126 jw3126 closed this as completed Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants