bugGNU Octave - Bugs: bug #53480, pie() fails for infinite inputs or...

 
 

bug #53480: pie() fails for infinite inputs or when there is no data to plot

Submitter:  Dildar Sk <hodor123456>
Submitted:  Mon 26 Mar 2018 07:19:55 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Dildar Sk Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 12 Apr 2018 08:31:56 PM UTC, comment #3: 

I added extra input validation, and BIST tests to check it, to pie and pie3.  See this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/c64f7a95b464).

Marking as fixed and closing report.

Rik <rik5>
Group administrator
Fri 30 Mar 2018 10:56:54 AM UTC, comment #2: 

"What does MATLAB do for ..."


>> pie (inf)
Error using pie (line 41)
All data must be finite in pie chart.

>> pie ([1, 2, Inf])
Error using pie (line 41)
All data must be finite in pie chart.

>>


And there no pop-up comes.

Dildar Sk <hodor123456>
Thu 29 Mar 2018 10:33:49 PM UTC, comment #1: 

Confirmed.  What does Matlab do for


pie (Inf)


Since it is a single value, one could draw a pie and assign the entire circle to this one value.  This is what is done in Octave with a finite value like


pie (3)


As a second question, what does Matlab do for


pie ([1, 2, Inf])


In this case, the last value could take up the entire pie which would be correct.  Or maybe they emit an error for all of these cases.

Rik <rik5>
Group administrator
Mon 26 Mar 2018 07:19:55 PM UTC, original submission:  

When you try,


>> pie(inf)
error: xn(0): subscripts must be either integers 1 to (2^63)-1 or logicals
error: called from
    __pie__ at line 96 column 5
    pie at line 69 column 10
>> pie3(inf)
error: xn(0): subscripts must be either integers 1 to (2^63)-1 or logicals
error: called from
    __pie__ at line 96 column 5
    pie3 at line 70 column 10
>> plot('')
error: plot: no data to plot
error: called from
    __plt__ at line 122 column 11
    plot at line 223 column 10

......


Though,there are errors but each time there a empty pop up comes.
Which must be off by default.

Dildar Sk <hodor123456>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-12 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2018-03-29 rik5 StatusNone Confirmed
        SummaryPop up coming there a error is shown. pie() fails for infinite inputs or when there is no data to plot
    2018-03-26 hodor123456 Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code