bugGNU Octave - Bugs: bug #42362, isaxes returns wrong results

 
 

bug #42362: isaxes returns wrong results

Submitted by:  Stefan Mahr <dac922>
Submitted on:  Wed 14 May 2014 10:15:14 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 15 May 2014 03:20:04 PM UTC, comment #5:

With your newer test I see the problem. I amended your patch to test isaxes with [ax NaN] and pushed it to the stable branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/4ca40b289b2c). Closing report.

Rik <rik5>
Project Administrator
Thu 15 May 2014 07:08:34 AM UTC, comment #4:

isaxes([ax NaN]) should be more safe: http://inversethought.com/hg/octave-nkf/rev/d79dd5c464bf

Stefan Mahr <dac922>
Thu 15 May 2014 06:55:45 AM UTC, comment #3:

Well, the test is not correct, since ishandle(0) returns 1. Try isaxes([ax 1.1]) instead.

Stefan Mahr <dac922>
Thu 15 May 2014 12:58:25 AM UTC, comment #2:

The sample code already works for me without the patch. I tested in 3.8.1 and on the development branch, and with gnuplot or fltk as the backend.

Perhaps you could try running with '-f' so that no initial configuration files are read. Also try 'which isaxes' to make sure the correct function is being called.

Rik <rik5>
Project Administrator
Wed 14 May 2014 10:24:33 PM UTC, comment #1:

See attached patch or here: http://inversethought.com/hg/octave-nkf/rev/d3475c45a468

(file #31373)

Stefan Mahr <dac922>
Wed 14 May 2014 10:15:14 PM UTC, original submission:

If the last arguments of isaxes input vector are not a axes, the output vector size if different from the input size.

The correct result should be [1 0]

I figured out while trying to do a plotyy twice.

The first call works, the second fails. With correct isaxes, plotyy works for this case.

However, there're still some problems in conjunction with legend. The example from bug 41970 still works for the first call, but the second plotyy call fails again.

Stefan Mahr <dac922>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #31373:  isaxes.patch added by dac922 (977B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by dac922 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 15 May 2014 03:20:04 PM UTCrik5StatusWorks For Me=>Fixed
      Open/ClosedOpen=>Closed
    Thu 15 May 2014 12:58:25 AM UTCrik5StatusNone=>Works For Me
    Wed 14 May 2014 10:24:33 PM UTCdac922Attached File-=>Added isaxes.patch, #31373

    Back to the top


    Powered by Savane 3.1-cleanup1