bugGNU Octave - Bugs: bug #37006, axis() does not accept -Inf/Inf as...

 
 

bug #37006: axis() does not accept -Inf/Inf as indication to do autoscaling

Submitter:  Rik <rik5>
Submitted:  Tue 31 Jul 2012 11:00:17 PM UTC
   
 
Category:  Plotting Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 19 Mar 2014 01:01:02 AM UTC, comment #2: 

Lots of patches from you lately, thanks.  I did some variable renaming to take advantage of the isinf() function that already exists.  I applied the patch on the default branch (http://hg.savannah.gnu.org/hgweb/octave/rev/89a8a90ac850).

Rik <rik5>
Group administrator
Tue 18 Mar 2014 10:10:25 AM UTC, comment #1: 

Attached is a patch.

(file #30938)

Pantxo Diribarne <pantxo>
Group Member
Tue 31 Jul 2012 11:00:17 PM UTC, original submission:  

Matlab accepts -Inf or Inf to be one bound of an axis command.  This is an indication to use autoscaling on that particular bound.

For example,


plot (1:10);
axis ([-Inf 5 0 10]);


Since the X data begins at 1, the actual axis after the command above should begin at an autoscaled point such as 0 or 1 and continue only until the hard limit of x=5.

This would be a nice feature to emulate.

Rik <rik5>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30938:  inf_axis_bug37006.patch added by pantxo (2KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pantxo (Updated the item)
  • -email is unavailable- added by rik5 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-19 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
    2014-03-18 pantxo Attached File- Added inf_axis_bug37006.patch, #30938

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code