KomaMRI.jl icon indicating copy to clipboard operation
KomaMRI.jl copied to clipboard

Slow plots for long sequences in UI

Open cncastillo opened this issue 2 months ago • 0 comments

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 to plot_signal). Moreover, when slider=true the lines using the scattergl 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

cncastillo avatar Apr 08 '24 00:04 cncastillo