https://github.com/ufechner7/plotting
Demo for using InspectDR
https://github.com/ufechner7/plotting
julia julia-language plotting
Last synced: 3 months ago
JSON representation
Demo for using InspectDR
- Host: GitHub
- URL: https://github.com/ufechner7/plotting
- Owner: ufechner7
- Created: 2022-09-17T10:13:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T13:23:16.000Z (over 2 years ago)
- Last Synced: 2025-01-17T13:16:05.638Z (5 months ago)
- Topics: julia, julia-language, plotting
- Language: Julia
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Plotting
## Installation
1. install Julia as explained for example [here](https://ufechner7.github.io/2022/08/18/installing-julia.html)
2. clone this repository
3. change into the folder Plotting
```
cd Plotting
```
4. run from bash
```bash
julia --project
```
Run from the julia prompt:
```julia
using Pkg
Pkg.instantiate()
using AutoSysimages
install()
```
## Executing the example
```julia
@time include("src/plot.jl")
```## Additional examples:
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.---
## Creating a system image
To reduce the startup time it is possible to create a system image. This can be done using the following steps
```bash
cd Plotting
asysimg --project
```
On the julia prompt now execute:
```julia
@time include("src/plot.jl")
```
and close the plotting window.Now quit Julia with:
```julia
exit()
```
You get the question: "... Do you want to build one?"
Answer with "Yes" by just pressing \.This will take a few minutes.
If you now start Julia again with the command:
```bash
asysimg --project
```
and execute on the Julia prompt:
```julia
@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.