Skip to content

DanDeepPhase/UnitfulRecipes.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnitfulRecipes.jl

for plotting data with units seamlessly in Julia

UnitfulRecipes.jl makes it easy to plot data with units.

It works by providing recipes for the Plots.jl package that can deal with units from Unitful.jl. For a quick example,

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

Head over to the documentation for more examples!

Acknowledgements

Inspired by UnitfulPlots.jl.

About

Plots.jl recipes for Unitful.jl arrays

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Julia 100.0%