Commit e45c2a99 authored by Lukas Aspöck's avatar Lukas Aspöck

fixed bug in plot routine. if 'axis' values are passed, these values are...

fixed bug in plot routine. if 'axis' values are passed, these values are favored over the plotAxesProperties of the itaAudio object
parent 0164b85b
......@@ -103,10 +103,7 @@ else
set(axh,'YLim',sort([abs_min abs_max]));
end
%% Sets both x and y axis limits
if ~isempty(options.axis)
axis(axh,options.axis);
end
%% background color
if ita_preferences('blackbackground')~=0 %%saves time
......@@ -218,6 +215,11 @@ if ~isempty(data.plotAxesProperties)
end;
end
%% Sets both x and y axis limits
if ~isempty(options.axis)
axis(axh,options.axis);
end
%% Legend or no Legend, that's the ... pdi: moved after setting the data
if (~isempty(data.plotLineProperties) || legendflat) && ~strcmp(options.plotType,'spectrogram') %Types: time, mag, phase, gdelay
%pdi: speed reason: no legend required, no time spent on setting the channeldata...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment