octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53767] error in calling linkaxes


From: Rik
Subject: [Octave-bug-tracker] [bug #53767] error in calling linkaxes
Date: Fri, 27 Apr 2018 14:49:32 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #7, bug #53767 (project octave):

The secondary issue is caused by the order of linking.  Because you are
linking the additional axes (ha(2:end)) to the first axes (ha(1)) which has x
limits of [0, 12].

At the end of the documentation for linkaxes it specifically mentions this.


When linking, the limits from the first axes in HAX are applied to
the other axes in the list.  Subsequent changes to any one of the
axes will be propagated to the others.


Two examples to see how it works.


## X limit of [0, 12] 
for ii = 1:3; ha(ii) = subplot(3,1,ii); axes(ha(ii)); plot(randn(10+ii,1));
end
linkaxes(ha, 'x')



## X limit of [0, 14] 
for ii = 1:3; ha(ii) = subplot(3,1,ii); axes(ha(ii)); plot(randn(10+ii,1));
end
linkaxes(flip (ha), 'x')




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53767>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]