[Top][All Lists]

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

Help with 'xlim' property

From: Rik
Subject: Help with 'xlim' property
Date: Mon, 22 Jun 2015 16:21:12 -0700


I don't think Octave is properly validating the 'xlim', 'ylim', etc.
properties.  It seems to accept any matrix value at all instead of just a
2-element row vector.  It's easy enough to change, but I'm hoping someone
can verify in Matlab what the following code does.

plot (1:10)
set (gca, 'xlim', [1 3 5; 2 4 6])
set (gca, 'xlim', [1 2 4])
set (gca, 'xlim', [1 5]')
set (gca, 'xlim', [1 8])

I would expect errors out of everything but the last.


reply via email to

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