[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #33249] log plots with all negative data produ
From: |
JF Cardoso |
Subject: |
[Octave-bug-tracker] [bug #33249] log plots with all negative data produce segfault |
Date: |
Wed, 31 Aug 2011 08:59:20 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.1) Gecko/20100101 Firefox/6.0.1 |
Follow-up Comment #4, bug #33249 (project octave):
One more remark:
The crash does not happen when *all* the data is negative.
When the argument is a data matrix, the crash happens
only when the first column is all negative
as seen with this script.
## semilogy and loglog deal gracefully with partially negative inputs
## UNLESS the FIRST column of the data matrix is entirely negative
n = 5; # say
showbug = false ;
if showbug ## causes a bus error on semilogy(Z) ;
Z = [ -1*rand(n,1) randn(n,8) ] ; ## 9 colmuns, the first one is entirely
negative (almost surely)
else
Z = [ randn(n,3) -1*rand(n,1) randn(n,5) ] ; ## The entirely negative
column is not the first one.
endif
semilogy(Z) ;
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?33249>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #33249] log plots with all negative data produce segfault,
JF Cardoso <=