bugGNU Octave - Bugs: bug #34130, plotting integer against uint8...

 
 

bug #34130: plotting integer against uint8 saturates the integer at uint8 bounds

Submitted by:  Alan W <walabry>
Submitted on:  Thu 25 Aug 2011 03:27:26 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.2.4Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 03 Oct 2011 04:06:00 AM UTC, comment #2:

Happily, this has already been fixed. The 3.2.4 release is old and deprecated. Please upgrade to the latest stable release 3.4.2.

Rik <rik5>
Project Administrator
Fri 26 Aug 2011 09:45:51 PM UTC, comment #1:

a clean work around is to typecast x directly as uint8.

Also note that in example x autoscale is correctly down to -3 but data truncated at zero for neg values.

Suggests some intermediate variable is not correctly typed is y is typed and x not.

x=uint8(-3:3); # works

Anonymous
Thu 25 Aug 2011 03:27:26 PM UTC, original submission:

If y is a vector of uint8s, eg:
and x is a normal integer vector, some values less than zero
then plot(x,y) saturates x (the integer valued vector) at zero.

A workaround is plot(x,double(y)), but this seems unsatisfactory.

Alan W <walabry>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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 walabry (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 03 Oct 2011 04:06:00 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1