You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2022. It is now read-only.
"https://discourse.julialang.org/t/how-to-use-pkg-dependencies-instead-of-pkg-installed/36416/13"isinstalled(pkg::String) =any(x -> x.name == pkg && x.is_direct_dep, values(Pkg.dependencies()))
pk = ["Plots"]
using Pkg; for p in pk; isinstalled(p) || Pkg.add(p); endusing Plots
" pwd() "cd("Dokumenty/julia/")
# plot some data
Plots.plot([cumsum(rand(500) .-0.5), cumsum(rand(500) .-0.5)])
# save the current figure in
Plots.savefig("plots.svg")
# .eps, .pdf, & .png are also supported# we used svg here because it respects the width and height specified above