Skip to content

Commit

Permalink
'Type','Line' in l. 318
Browse files Browse the repository at this point in the history
    % Just find 'Type','Line'
        hi=findobj(hi,'Type','Line');
  • Loading branch information
MarcoRianiUNIPR committed Oct 3, 2024
1 parent 7221381 commit 8a9b563
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions toolbox/graphics/add2yX.m
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,10 @@ function add2yX(H,AX,BigAx,varargin)

if nAX > 1
for i=1:nAX
H(1,i,:) = fliplr(hPlotMatrixAxC{i,:}');
hi=hPlotMatrixAxC{i,:}';
% Just find 'Type','Line'
hi=findobj(hi,'Type','Line');
H(1,i,:) = flip(hi);
if i==1
if ngroups == 1
y = get(H(1,i,:),'YData')';
Expand Down Expand Up @@ -552,8 +555,8 @@ function add2yX(H,AX,BigAx,varargin)

% Add the labels for the last selected group.
if strcmp('1',labeladd) && ngroups > 1
xlimits = get(AX(i),'Xlim');
xlimits = get(AX(i),'Xlim');

% ylimits = get(AX(i),'Ylim');
% dx = (xlimits(2)-xlimits(1))*0.01*length(AX);
% dy = (ylimits(2)-ylimits(1))*0.01*length(AX)/2; % displacement
Expand Down

0 comments on commit 8a9b563

Please sign in to comment.