- install Julia as explained for example here
- clone this repository
- change into the folder Plotting
cd Plotting
- run from bash
julia --projectRun from the julia prompt:
using Pkg
Pkg.instantiate()
using AutoSysimages
install()@time include("src/plot.jl")The script plot2.jl provides an example to plot two signals in one windows, the example two_plots.jl shows how to plot two signals in two windows.
To reduce the startup time it is possible to create a system image. This can be done using the following steps
cd Plotting
asysimg --projectOn the julia prompt now execute:
@time include("src/plot.jl")and close the plotting window.
Now quit Julia with:
exit()You get the question: "... Do you want to build one?"
Answer with "Yes" by just pressing <ENTER>.
This will take a few minutes.
If you now start Julia again with the command:
asysimg --projectand execute on the Julia prompt:
@time include("src/plot.jl")you will see that it goes much faster.
On my computer it needed 14.6s without system image and 5.7s with system image.
Tested on Ubuntu.