andreww / MSAT

MATLAB Seismic Anisotropy Toolkit
http://www1.gly.bris.ac.uk/MSAT/
Other
42 stars 29 forks source link

Fix case 'nofig' of 'MS_sphere.m' #41

Open yvonnefroehlich opened 1 year ago

yvonnefroehlich commented 1 year ago

This PR aims to fix the case 'nofig' in the function MS_sphere.m.

Suppress the figure command, so plot can be sub-plotted.

A figure is set up if the variable nofig is unequal to 1, see lines 268-270:

if (nofig~=1)
    figure('position',[0 0 800 800])
end

So, to not set up a figure (passing 'nofig' to MS_sphere.m) the variable nofig has to be 1 not 0, see lines 198-200:

case 'nofig'
    nofig = 1 ; % <- instead of 0
    iarg = iarg + 1 ;