Skip to content

Commit

Permalink
plot errorbars, but clip them at plot edges
Browse files Browse the repository at this point in the history
  • Loading branch information
pjkohler committed Jan 23, 2018
1 parent be5d968 commit 07c64b3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions figures_motion2D3D.m
Original file line number Diff line number Diff line change
Expand Up @@ -439,19 +439,20 @@
xVals = (1:4)+5*(s-1)+10*(e-1);
arrayfun(@(x) bar(xVals(x),NRvals(paramList(z),x),'facecolor',subColors(x,:),'edgecolor','none'),1:4,'uni',false);
if paramList(z) ~= 6
%arrayfun(@(x) ...
% ErrorBars(xVals(x),NRvals(paramList(z),x),NRerrors(paramList(z),x),'color',[0,0,0],'type','bar','cap',false,'barwidth',lWidth),...
% 1:4,'uni',false);
eH = arrayfun(@(x) ...
ErrorBars(xVals(x),NRvals(paramList(z),x),NRerrors(paramList(z),x),'color',[0,0,0],'type','bar','cap',false,'barwidth',lWidth),...
1:4,'uni',false);
cellfun(@(x) set(x{:},'clipping','on'),eH);
else
end
if e == numExp
switch paramList(z)
case 1
ylabel('C_5_0');
yMin = 0; yMax = 6; yUnit = 2;
yMin = 0; yMax = 8; yUnit = 2;
case 2
ylabel('exponent');
yMin = 0; yMax = 6; yUnit = 2;
yMin = 0; yMax = 8; yUnit = 2;
case 3
ylabel('rMax');
yMin = 0; yMax = 4; yUnit = 1;
Expand Down

0 comments on commit 07c64b3

Please sign in to comment.