[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34130] plotting integer against uint8 saturat
From: |
Alan Walbridge |
Subject: |
[Octave-bug-tracker] [bug #34130] plotting integer against uint8 saturates the integer at uint8 bounds |
Date: |
Thu, 25 Aug 2011 15:27:27 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1 |
URL:
<http://savannah.gnu.org/bugs/?34130>
Summary: plotting integer against uint8 saturates the integer
at uint8 bounds
Project: GNU Octave
Submitted by: walabry
Submitted on: Thu 25 Aug 2011 15:27:26 GMT
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: GNU/Linux
_______________________________________________________
Details:
If y is a vector of uint8s, eg:
y=uint8([1 2 3 4 5 6 7]);
and x is a normal integer vector, some values less than zero
x=-3:3;
then plot(x,y) saturates x (the integer valued vector) at zero.
A workaround is plot(x,double(y)), but this seems unsatisfactory.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34130>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34130] plotting integer against uint8 saturates the integer at uint8 bounds,
Alan Walbridge <=