[Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values (Linux Ubuntu 17.04)

Antoine Monmayrant antoine.monmayrant at laas.fr
Wed Oct 18 13:26:14 CEST 2017


Update:

1) Here is a simpler minimal working example:

///////////////////////////////////////////////
x=1:100;
y=rand(x);
th=0.1;
rg=find(y<th);
ynan=y;
ynan(rg)=%nan;

scf();
plot(x,y,'k.-');
plot(x,ynan,'r.-');
///////////////////////////////////////////////

2) This might be due to some graphic drivers, but I think I am up to date on that front. How can I check it's related to a graphic driver or not?

Antoine
 
 
Le Mercredi, Octobre 18, 2017 13:22 CEST, "Antoine Monmayrant" <antoine.monmayrant at laas.fr> a écrit: 
 
> Hi everyone,
> 
> I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots.
> This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0.
> I attached the expected plot ('no_bug.png', what I get with 16.04), the bugged one ('bug.png') and the minimum working example ('bug_plot_nan.sce') with the original dataset with nans ('dat_with_nans.txt').
> Are you also affected by this bug? Which platform (OS) are you working on?
> 
> Cheers,
> 
> Antoine




More information about the users mailing list