Skip to content

Commit

Permalink
Merge pull request #55 from JuliaAstro/sunpos_doc
Browse files Browse the repository at this point in the history
Fix the example in the documentation
  • Loading branch information
giordano authored May 22, 2019
2 parents 2f2c205 + 45644a9 commit fb2ef58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sunpos.jl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ degrees, for every day in 2016. Use
```julia
using PyPlot
days = DateTime(2016):DateTime(2016, 12, 31);
using Dates
days = DateTime(2016):Day(1):DateTime(2016, 12, 31);
ra, declin = sunpos(jdcnv.(days));
plot(days, ra/15); plot(days, declin)
```
Expand Down

0 comments on commit fb2ef58

Please sign in to comment.