[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() an
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]) |
Date: |
Tue, 26 Jul 2016 08:06:43 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0 |
Follow-up Comment #9, bug #48616 (project octave):
The underlying difference seems to be deeper in Octave's graphics code than I
initially suspected. The following example also fails in Octave but works
flawlessly in Matlab:
x = 1.2:10.2;
y = 1:10;
clf;
hax = axes ();
hp = plot (x, y);
set (hax, 'XLim', [-Inf Inf]);
In Matlab, an "inf" limit seems to indicate a *tight* axis limit on that
border.
Octave does a similar thing when calling the higher level function xlim() with
"inf" limits: It manually sets the axis limit on that border that would be
used if "(XYZ)LimMode" was set to *auto*.
The attached changeset does the same for logplots with a "0" border. This
prevents the original example from throwing an error. And makes Octave behave
more self-consistently, I guess.
However, the underlying difference still persists. Maybe, keep this bug open
even if this changeset should be applied. Or open a new bug.
(file #38026)
_______________________________________________________
Additional Item Attachment:
File name: bug48616_log_lim0.patch Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48616>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), anonymous, 2016/07/24
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), Ben Abbott, 2016/07/24
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), Ben Abbott, 2016/07/24
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), Franz Wankelhuber, 2016/07/24
- Message not available
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), Ben Abbott, 2016/07/24
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), Markus Mützel, 2016/07/25
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), Ben Abbott, 2016/07/25
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), Franz Wankelhuber, 2016/07/25
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]),
Markus Mützel <=
- [Octave-bug-tracker] [bug #48616] Matlab compatibility for semilogx() and xlim([0 uplim]), Markus Mützel, 2016/07/28