Learn to Code via Tutorials on Repl.it!

← Back to all posts
Julia 1.3 - Printing Plots in the Console from main.jl
VictorVillavice (13)

Printing Plots in the Console from main.jl

The Julia Docs is a little lacking with Unicode Printing since many are using Pluto.jl. If you are trying to plot within main.jl, it has to go to the console. The Pluto.jl is a better option once Repl.it upgrades from Julia 1.3 to 1.5.3+

begin
  using Pkg
  Pkg.add.(["Plots","DataFrames","UnicodePlots"])
 # using Plots
 # using DataFrames
  using UnicodePlots
end

#unicodePlots()
println(histogram(randn(4)))

The image below is the main.jl code

The image below is the code in Repl.