[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, ax
From: |
Lukas Reichlin |
Subject: |
[Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly |
Date: |
Sun, 11 Dec 2011 19:39:43 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7 |
URL:
<http://savannah.gnu.org/bugs/?35034>
Summary: Plotting: axis returns wrong value, axis ('tight')
not working properly
Project: GNU Octave
Submitted by: paramaniac
Submitted on: Sun 11 Dec 2011 07:39:42 PM GMT
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.3
Operating System: Mac OS
_______________________________________________________
Details:
Octave shows unexpected behaviour when running the following code:
plot (11:20, [21:25, -Inf, 27:30])
a = axis
axis ('tight')
b = axis
Matlab returns b(3) = 21 whereas Octave returns b(3) = -Inf. Moreover,
axis('tight') screws the plot up in Octave, see the attachments. The problem
seems to be caused by the Inf value on the y-axis.
Matlab R2011b
>> plot (11:20, [21:25, -Inf, 27:30])
a = axis
axis ('tight')
b = axis
a =
11 20 21 30
b =
11 20 21 30
>>
Octave 3.4.3
octave:1> plot (11:20, [21:25, -Inf, 27:30])
octave:2> a = axis
a =
10 20 20 30
octave:3> axis ('tight')
octave:4> b = axis
b =
11 20 -Inf 30
octave:5>
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 11 Dec 2011 07:39:42 PM GMT Name: matlab.png Size: 35kB By:
paramaniac
<http://savannah.gnu.org/bugs/download.php?file_id=24566>
-------------------------------------------------------
Date: Sun 11 Dec 2011 07:39:42 PM GMT Name: octave.png Size: 23kB By:
paramaniac
<http://savannah.gnu.org/bugs/download.php?file_id=24567>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?35034>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly,
Lukas Reichlin <=
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Lukas Reichlin, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Lukas Reichlin, 2011/12/11
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Rik, 2011/12/13
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/13
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/13
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Rik, 2011/12/13
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Ben Abbott, 2011/12/14
- [Octave-bug-tracker] [bug #35034] Plotting: axis returns wrong value, axis ('tight') not working properly, Rik, 2011/12/15