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: avlas
Subject: [Octave-bug-tracker] [bug #53767] error in calling linkaxes
Date: Fri, 27 Apr 2018 12:30:07 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.10.0 Chrome/61.0.3163.140 Safari/537.36 Konqueror (WebEnginePart)

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

                 Summary: error in calling linkaxes
                 Project: GNU Octave
            Submitted by: kupiqu
            Submitted on: Fri 27 Apr 2018 04:30:05 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Regression
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.3.91
        Operating System: Other

    _______________________________________________________

Details:

There is a regression in linkaxes or linkprop, tested in Octave 4.3.91.
Reported to work fine in Octave 4.2.

While this works:


for ii = 1:3; ha(ii) = subplot(3,1,ii); axes(ha(ii)); plot(randn(10+ii,1));
end
linkaxes(ha, 'x')



for ii = 1:3; ha(ii) = subplot(2,2,ii); axes(ha(ii)); plot(randn(10+ii,1));
end
linkaxes(ha, 'x')


This doesn't:


for ii = 1:4; ha(ii) = subplot(4,1,ii); axes(ha(ii)); plot(randn(10+ii,1));
end
linkaxes(ha, 'x')



for ii = 1:4; ha(ii) = subplot(2,2,ii); axes(ha(ii)); plot(randn(10+ii,1));
end
linkaxes(ha, 'x')


This is the error I find:


error: horizontal dimensions mismatch (1x1 vs 2x1)
error: called from
    linkprop at line 84 column 7
    linkaxes at line 83 column 13


Btw, probably not strictly related to this specific issue, but I find
intriguing (is this another bug?) that


for ii = 1:3; ha(ii) = subplot(3,1,ii); axes(ha(ii)); plot(randn(10+ii,1));
end
linkaxes(ha, 'x')


shows all x axes limited to [0,12] instead of [0,13]. 

(Ideally it would be [1,13] for all, but that is certainly another story)




    _______________________________________________________

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]