octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Plotting bools ?


From: Ben Abbott
Subject: Re: Plotting bools ?
Date: Fri, 24 Feb 2012 08:26:04 -0500

On Feb 24, 2012, at 3:58 AM, CdeMills wrote:

> Hello,
> 
> When processing series of measurements, I usually encode states into logical
> vectors. Such vectors can not be plotted directly, while
> plot(int8(some_bool_vector)) is just OK. Could such logical vectors be
> allowed as input for plot () by implicitelly enabling to bool to int
> conversion ?
> 
> Under 3.6, I get as error message:
> 
> plot (logical (randn (1, 100) > 0))
> warning: implicit conversion from matrix to sq_string
> error: get: unknown line property ^A
> error: called from:
> error:  /usr/share/octave/3.6.0/m/plot/private/__line__.m at line 113,
> column 16
> error:  /usr/share/octave/3.6.0/m/plot/line.m at line 38, column 5
> error:  /usr/share/octave/3.6.0/m/plot/private/__plt__.m at line 597, column
> 12
> error:   /usr/share/octave/3.6.0/m/plot/private/__plt__.m at line 238,
> column 14
> error:   /usr/share/octave/3.6.0/m/plot/private/__plt__.m at line 193,
> column 10
> error:   /usr/share/octave/3.6.0/m/plot/private/__plt__.m at line 104,
> column 17
> error:   /usr/share/octave/3.6.0/m/plot/plot.m at line 196, column 9
> 
> Regards
> 
> Pascal

I think this can be fixed in __plt__.m

Would you like to take a look ?

Ben



reply via email to

[Prev in Thread] Current Thread [Next in Thread]