Most of the time however, you will want to make nicer looking graphs. There are many options to plot in Julia.
Plots is a convenient Julia package which allows to use the same code with several graphing backends such as the GR framework (great for speed), Plotly.js (allows interaction with your graphs in a browser), or PyPlot. The default backend is the GR framework.
StatsPlots is an enhanced version with added stats functionality.
Example:
# First run takes time as the package needs to compileusingStatsPlotsStatsPlots.histogram(randn(1000), bins=40)
Precompiling packages...
898.3 ms ✓ QuartoNotebookWorkerTablesExt (serial)
1 dependency successfully precompiled in 1 seconds
Precompiling packages...
1032.5 ms ✓ QuartoNotebookWorkerJSONExt (serial)
1 dependency successfully precompiled in 1 seconds
Precompiling packages...
2217.9 ms ✓ QuartoNotebookWorkerPlotsExt (serial)
1 dependency successfully precompiled in 2 seconds
Here, we need to explicitly run StatsPlots.histogram rather than histogram to prevent a conflict with the function of the same name from the package UnicodePlots.