diff --git a/crpptbx/AUG/plot_torbeam.m b/crpptbx/AUG/plot_torbeam.m index b5a3d2247e5bd2e402e28423d674043af28ebe1c..2943eb9056773eab5fcb6eecfdb8e3347b60057b 100644 --- a/crpptbx/AUG/plot_torbeam.m +++ b/crpptbx/AUG/plot_torbeam.m @@ -56,6 +56,7 @@ for ifield=1:length(list_fields) titleg{end+1} = ['L' num2str(igyro)]; end end + if ~isempty(titleg) ; legend(titleg); end eval(['fig_handles.' list_fields{ifield} '.titleg = titleg;']); xlabel('time [s]') diff --git a/crpptbx/AUG/run_torbeam_fullshot.m b/crpptbx/AUG/run_torbeam_fullshot.m index a491bc5793cc81c4e5bf989929ba1b0143211998..cc84f4ac30cd26b25ead58fae36929d6358740d3 100644 --- a/crpptbx/AUG/run_torbeam_fullshot.m +++ b/crpptbx/AUG/run_torbeam_fullshot.m @@ -62,7 +62,7 @@ if shot>0 dousebetapol = '-betapol'; if hhIDA.handle~=0; netest=gdat(shot,{'IDA','ne'}); - tetest=gdat(shot,{'IDA','te'}); + tetest=gdat(shot,{'IDA','Te'}); if ~isempty(netest.data) && ~isempty(tetest.data) run_with_IDA = 1; dousebetapol = ''; % can use Te from IDA @@ -120,7 +120,10 @@ if exist('tbout'); torbeam_out_struct = tbout; end -fig_handles=plot_torbeam(torbeam_out_struct); +try + fig_handles=plot_torbeam(torbeam_out_struct); +catch +end % comments for hiytory backup: