Skip to content

Instantly share code, notes, and snippets.

@mrandri19
Last active September 20, 2020 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrandri19/3cf6490b3a3712439949937247b02294 to your computer and use it in GitHub Desktop.
Save mrandri19/3cf6490b3a3712439949937247b02294 to your computer and use it in GitHub Desktop.
Julia Plots Cheatsheet

Make multiple plots

plot(
  plot(),
  plot(),
  ...
)

Vertical line

vline!([2]; color=["blue"], label="Real coeff", linestyle=[:dash])

https://github.com/sswatson/cheatsheets/blob/master/plotsjl-cheatsheet.pdf

3D Surface and axes labels

surface(-5.0:0.1:5.0, 0.1:0.1:5.0,(x, y) -> pdf(prior, x, y))
xlabel!("mean")
ylabel!("variance")

Heatmaps

heatmap(-3:0.1:3,-3:0.1:3, (x, y) -> pdf(Normal([1, x]'beta - y, sigma), 0.0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment