bugGNU Octave - Bugs: bug #43391, stem() gives an error if passed...

 
 

bug #43391: stem() gives an error if passed the result of a logical expression

Submitted by:  None
Submitted on:  Thu 09 Oct 2014 03:36:01 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.8.0
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 07 Dec 2014 12:06:41 AM UTC, comment #4:

I added a bit more to the comment message--Octave style is to state the summary of what was fixed in the first line and then have separate lines detailing how each affected file was modified--and committed it to the development branch here (http://hg.savannah.gnu.org/hgweb/octave/rev/aea099cd1ee7). Thanks for the patch. Closing report.

Rik <rik5>
Project Administrator
Fri 10 Oct 2014 04:34:47 AM UTC, comment #3:

Well, right.

(file #32250)

Markus Bergholz <markuman>
Thu 09 Oct 2014 06:49:36 PM UTC, comment #2:

Instead of 1*x, maybe you just want to say double (x)?

John W. Eaton <jwe>
Project Administrator
Thu 09 Oct 2014 06:31:48 PM UTC, comment #1:

At this point

x is logical. When you did (1*x), the datatype has changed to double.

I've attached a quick patch which works in this case. Someone have to write an assert test for it.

(file #32249)

Markus Bergholz <markuman>
Thu 09 Oct 2014 03:36:01 PM UTC, original submission:

When the result of a logical expression is passed to stem as the y argument this error occurs:
The strange thing is that the graph gets plotted correctly, but the execution of the program stops.
If you do this:
no error occurs.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #32250:  43391-2.patch added by markuman (943B - text/x-patch)
file #32249:  43391-1.patch added by markuman (933B - 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 mtmiller (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by markuman (Updated the item)
  • -unavailable- added by None (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 07 Dec 2014 12:06:41 AM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Sun 02 Nov 2014 05:16:48 PM UTCmtmillerStatusNone=>Patch Submitted
      Operating SystemMac OS=>Any
    Fri 10 Oct 2014 04:34:47 AM UTCmarkumanAttached File-=>Added 43391-2.patch, #32250
    Thu 09 Oct 2014 06:31:48 PM UTCmarkumanAttached File-=>Added 43391-1.patch, #32249

    Back to the top


    Powered by Savane 3.1-cleanup1