KomaMRI.jl
KomaMRI.jl copied to clipboard
Slow plots for long sequences in UI
What happened?
As some people have commented, the plots can become quite slow for long sequences.
I enabled a few new options in plot_seq:
-
gl=false
: That changes the scatter plot backend, making it faster, but you will not be able to output an svg with vector graphics, the lines will be rasterized (this one I also added toplot_signal
). Moreover, whenslider=true
the lines using thescattergl
backend will dissapear. The phantom plot uses it as default (scatter3d
). -
max_rf_samples=100
: This already existed, but now it is 100 by default - false: Shows adc points as markers
I also optimized get_samples
so there are fewer samples to plot.
The same can be applied to the base plotting function and the default values in the UI
- [x] #365
- [ ] plot_signal (function and UI)
- [ ] plot_M0 (function and UI)
- [ ] plot_M1 (function and UI)
- [ ] plot_M2 (function and UI)
- [ ] plot_eddy_current (function and UI)
- [ ] plot_slew_rate (function and UI)
- [ ] plot_kspace (function and UI)
Environment
OS x86_64-linux-gnu
Julia 1.10.2
KomaMRIPlots 0.8.1
KomaMRIFiles 0.8.1
KomaMRICore 0.8.1
KomaMRIBase 0.8.2