Comments (6)
I edited my post, see above.
from unitfulrecipes.jl.
Yes, I agree!
from unitfulrecipes.jl.
[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
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="")
Head over to the documentation for more examples!
from unitfulrecipes.jl.
Does that sound good for a discourse announcement @briochemc ?
from unitfulrecipes.jl.
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
from unitfulrecipes.jl.
https://discourse.julialang.org/t/ann-unitfulrecipes-jl-1-0/45365
from unitfulrecipes.jl.
Related Issues (20)
- Compatibility when using two user recipes together HOT 8
- Recipe for parametric with units? HOT 14
- TagBot trigger issue HOT 16
- unitful yerr seems to break HOT 6
- Recipe request for logarithmic units HOT 6
- Vector{Any} doesn't plot HOT 4
- Shape() fails on conversion HOT 4
- `vline` and `hline` not supporting both `xunit` and `yunit` HOT 3
- Support Unitful xticks and yticks? HOT 1
- Units in colorbar clim
- No units on colorbar for 1-argument version of heatmap HOT 1
- axis labels for `plot!`
- Recipe request for Plots with ribbon keyword HOT 1
- Units from 3rd axis applied to 4th plot HOT 8
- Tuple vs Vector behavior HOT 1
- Is it neccessary that UnitfulStrings outlive the recipe? HOT 4
- The `aspect_ratio` controls the digit spacing, ignoring the units HOT 6
- New Recipes to support StatsPlots.jl HOT 5
- Crash on annotate HOT 1
- Error with `plot!(xticks)` HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unitfulrecipes.jl.