Skip to content

Commit

Permalink
fix(Util): workaround to failing docstring tests
Browse files Browse the repository at this point in the history
This just comment out the example
block to allow these files to pass
using testDocstring.

testDocstring do not support evaluation
of continuation lines in the example block.
  • Loading branch information
ocehugo committed Feb 23, 2021
1 parent 9fb7e36 commit 8217ace
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
22 changes: 11 additions & 11 deletions Util/legendflex.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,21 @@
%
% % Replicating an example from legend.m:
%
% figure;
% b = bar(rand(10,5),'stacked'); colormap(summer); hold on
% x = plot(1:10,5*rand(10,1),'marker','square','markersize',12,...
% 'markeredgecolor','y','markerfacecolor',[.6 0 .6],...
% 'linestyle','-','color','r','linewidth',2); hold off
% lbl = {'Carrots','Peas','Peppers','Green Beans','Cucumbers','Eggplant'};
% %figure;
% %b = bar(rand(10,5),'stacked'); colormap(summer); hold on
% %x = plot(1:10,5*rand(10,1),'marker','square','markersize',12,...
% % 'markeredgecolor','y','markerfacecolor',[.6 0 .6],...
% % 'linestyle','-','color','r','linewidth',2); hold off
% %lbl = {'Carrots','Peas','Peppers','Green Beans','Cucumbers','Eggplant'};
%
% % Rather than covering up data or resizing the axis, let's squeeze the
% % legend into the margin at the top of the figure;
%
% legendflex([b,x], lbl, 'ref', gcf, ...
% 'anchor', {'n','n'}, ...
% 'buffer',[0 0], ...
% 'nrow',2, ...
% 'fontsize',8);
% %legendflex([b,x], lbl, 'ref', gcf, ...
% % 'anchor', {'n','n'}, ...
% % 'buffer',[0 0], ...
% % 'nrow',2, ...
% % 'fontsize',8);

% Copyright 2011-2014 Kelly Kearney

Expand Down
14 changes: 8 additions & 6 deletions Util/posUi2.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
% pos - position vector
%
% Example:
% hFig = figure;
% uicontrol(...
% 'Parent', hFig,...
% 'style', 'pushbutton',...
% 'units', 'normalized',...
% 'Position', posUi2(hFig,4,3,2:3,1:2,0.05));
% %Create a uicontrol with position
% %hFig = figure;
% %uicontrol(...
% % 'Parent', hFig,...
% % 'style', 'pushbutton',...
% % 'units', 'normalized',...
% % 'Position', posUi2(hFig,4,3,2:3,1:2,0.05));
%

% Remarks:
% - margin is normalized (percentage of the parent's size)
% - normalized unit compulsory for the parent and children graphical
Expand Down

0 comments on commit 8217ace

Please sign in to comment.