-
Notifications
You must be signed in to change notification settings - Fork 25
[docs] Makie.jl #183
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
base: main
Are you sure you want to change the base?
[docs] Makie.jl #183
Conversation
Benchmark Results (Julia v1.10)Time benchmarks
Memory benchmarks
|
Benchmark Results (Julia v1)Time benchmarks
Memory benchmarks
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #183 +/- ##
=======================================
Coverage 99.21% 99.21%
=======================================
Files 21 21
Lines 1273 1273
=======================================
Hits 1263 1263
Misses 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
# Can explicitly import units: | ||
using DynamicQuantities: km, m, s, min | ||
|
||
y0 = 10km | ||
v0 = 250m/s | ||
θ = deg2rad(60) | ||
g = 9.81m/s^2 | ||
nothing # hide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use ;
instead of a new line with this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, it got buried in the previous PR, but I think I was running into this when trying to do that. It's been a while though, so I'll go back and try it again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, yea, still looks like no dice with @example
blocks + semicolon suppression:
```@example projectile
# Can explicitly import units:
using DynamicQuantities: km, m, s, min
y0 = 10km
v0 = 250m/s
θ = deg2rad(60)
g = 9.81m/s^2;
```

It looks like this may be a design decision
On the flip side, we could use a @repl
block if you like and output all the things equally:
```@repl projectile
# Can explicitly import units:
using DynamicQuantities: km, m, s, min
y0 = 10km
v0 = 250m/s
θ = deg2rad(60)
g = 9.81m/s^2
```

For completeness, the semicolon also works here, but it's probably not what we want in this case:
```@repl projectile
# Can explicitly import units:
using DynamicQuantities: km, m, s, min
y0 = 10km
v0 = 250m/s
θ = deg2rad(60)
g = 9.81m/s^2;
```

Documents plotting capabilities with Makie.jl
Depends on: MakieOrg/Makie.jl#5137
Based on: #165