[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: plotting uint8 data
From: |
Dmitri A. Sergatskov |
Subject: |
Re: plotting uint8 data |
Date: |
Wed, 16 Sep 2009 18:23:10 -0500 |
On Wed, Sep 16, 2009 at 6:18 PM, Rob Mahurin <address@hidden> wrote:
> On Wed, Sep 16, 2009 at 05:32:10PM -0500, Dmitri A. Sergatskov wrote:
>> I have problems plotting uint8 type data. The data set seems to get
>> truncated at index=256. I.e. if I do:
>>
>> x = uint8(100*(randn(1,300)+1));
>> plot(x)
>>
>> then only first 256 data points gets plotted.
>>
>> This is with 3.2.2 and a recent 4.3 cvs gnuplot....
>>
>> Does anyone see the same?
>
> I see this with 3.2.3rc4. A workaround is plot(double(x)).
I see it with 3.3.50 as well. I figure out the workaround, but I think
it is a bug.
It is somewhat strange to me that even
plot(1:300, x) would fail.
The data does not get disregarded, it is all plotted at x=256
(this is more obvious if one does plot(x,"o;;") or similar).
>
> Cheers,
> Rob
>
Dmitri.
--