How to Output Simple Graphics in the Julia Console
Overview
UnicodePlots.jl
is a library that uses Unicode characters to print graphics in the Julia REPL1, enabling lightweight yet high-quality visualization as the program runs.
Code
using UnicodePlots
p1 = lineplot(100 |> randn |> cumsum)
p1 = lineplot!(p1, 100 |> randn |> cumsum); p1
UnicodePlots.heatmap(cumsum(abs.(randn(100,100)), dims=2))
The result of running the above example code is as follows.
Environment
- OS: Windows
- julia: v1.7.3
- UnicodePlots v3.0.4