Commit 7c449cc3 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter
Browse files

hopefully a bugfix

if an axis handle is passed, it should not be ignored by taking the figures current axis
parent 2ac543ca
...@@ -174,7 +174,12 @@ if sArgs.linfreq %pdi: linear frequency plotting ...@@ -174,7 +174,12 @@ if sArgs.linfreq %pdi: linear frequency plotting
else else
set(sArgs.axes_handle,'XScale','log'); set(sArgs.axes_handle,'XScale','log');
end end
axh = get(fgh,'CurrentAxes');
if isempty(sArgs.axes_handle)
axh = get(fgh,'CurrentAxes');
else
axh = sArgs.axes_handle;
end
setappdata(axh,'ChannelHandles',lnh); setappdata(axh,'ChannelHandles',lnh);
%% call help function %% call help function
......
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