pace-neutrons / Horace

Horace is a suite of programs for the visualization and analysis of large datasets from time-of-flight neutron inelastic scattering spectrometers.
https://pace-neutrons.github.io/Horace/stable/
GNU General Public License v3.0
8 stars 5 forks source link

new spagetty plot does not work with previous versions of MATLAB #1649

Closed abuts closed 5 months ago

abuts commented 5 months ago

User reported the following error (below). It looks like somebody modified spaghetty plot for new Matlab, did not write unit test for it and broke the code.

On 24/04/2024 09:08, Viola Romerio wrote:

Dear all,

I saw a new version of the spaghetti plot function has been uploaded

I have some issue with the qwidth argument. I get the error:

“SWITCH expression must be a scalar or a character vector.

Error in spaghetti_plot (line 190)

switch size(opt.qwidth)”

With the previous version of the function my code was working.

Best regards

Follow up errors was also identified:

 The change I noticed is that with the command
   “spaghetti_plot([G_K; K_M; M_G],'labels',{'\Gamma','K','M','\Gamma'},'clim',[0 0.15]);grid on;colormap turbo;keep_figure;”

Only the M_G cut is plotted, before I had like all the three plots together.

abuts commented 5 months ago

fixed by Re #1651