Skip to content

Instantly share code, notes, and snippets.

@andferrari
Last active January 21, 2022 11:17
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 andferrari/3e254ffd67629078c1aaad95caf23079 to your computer and use it in GitHub Desktop.
Save andferrari/3e254ffd67629078c1aaad95caf23079 to your computer and use it in GitHub Desktop.
Julia Unknown Pleasures plot
using CSV, Tables, Plots
pulsar = CSV.read(download("https://gist.githubusercontent.com/borgar/31c1e476b8e92a11d7e9/raw/0fae97dab6830ecee185a63c1cee0008f6778ff6/pulsar.csv"), Tables.matrix)
α = 2
p = plot(border=:none, bg = :black)
for k in 79:-1:1
plot!(pulsar[80 - k ,:] .+ α*k, label="", fillrange = α*k,
fillalpha = 1, fillcolor = :black, c=:white)
end
p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment