Skip to content
Snippets Groups Projects

Two small bugfixed in freq and phase plot

Open Stefan Liebich requested to merge bugfix_plots into master
2 files
+ 12
2
Compare changes
  • Side-by-side
  • Inline

Files

@@ -160,8 +160,9 @@ end
@@ -160,8 +160,9 @@ end
if sArgs.hold
if sArgs.hold
nPlots = numel(get(sArgs.axes_handle,'Children'));
nPlots = numel(get(sArgs.axes_handle,'Children'));
co = get(sArgs.axes_handle,'ColorOrder');
co = get(sArgs.axes_handle,'ColorOrder');
if nPlots > size(co,1) %pdi:bugfix for a lot of channels
if nPlots > size(co,1) %pdi:bugfix for a lot of channels %sl:bugfix for bugfix
co = repmat(co,2,1);
exceed = nPlots/size(co,1);
 
co = repmat(co,ceil(exceed),1);
end
end
set(sArgs.axes_handle,'ColorOrder',co([(nPlots+1):end 1:nPlots],:));
set(sArgs.axes_handle,'ColorOrder',co([(nPlots+1):end 1:nPlots],:));
end
end
Loading