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

CRETE Denis denis.crete at thalesgroup.com
Thu Oct 19 16:54:20 CEST 2017


Hello,
Today, I checked again with the Lenovo T420 + Ubuntu 16.04 + SciLab 6 ... and I could NOT reproduce the bug (that I did observe with the same equipment and same code 5 months ago). Most probably, an (automatic) update of Ubuntu may have fixed the problem. But I don't know the name of the file tracking the changes in the update... If anyone knows, and can give me instructions, I would be happy to do it if it helps.
Regards
Denis

-----Message d'origine-----
De : users [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant
Envoyé : jeudi 19 octobre 2017 10:30
À : Users mailing list for Scilab
Objet : Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Bug?: plot with nan values (Linux Ubuntu 17.04

It seems the bug report was 4 years ago: https://bugzilla.scilab.org/show_bug.cgi?id=13060
I added my test script and plots.

Antoine
 
 
Le Jeudi, Octobre 19, 2017 10:21 CEST, "Antoine Monmayrant" <amonmayr at laas.fr> a écrit: 
 
> Thank you all for your answers.
> It does look like a graphic bug that is only affecting some Linux machines.
> I refined my test script to compare the obtained plots when plotting on the screen and directly in a file ('driver').
> It seems graphic direver related to me.
> I'll fill a bug report.
> 
> Cheers,
> 
> Antoine
> 
> ////////////////////////////////////////////////
> x=1:100;
> y=rand(x);
> th=0.1;
> rg=find(y<th);
> ynan=y;
> ynan(rg)=%nan;
> 
> h=scf();
> plot(x,y,'k.-');
> plot(x,ynan,'r.-');
> xtitle('BUG');
> 
> fpath=TMPDIR+'/nobug_plot_nan.png';
> previous_driver = driver('PNG');
> xinit(fpath);
> 
> scf();
> plot(x,y,'k.-');
> plot(x,ynan,'r.-');
> xtitle('NO BUG');
> 
> xend();
> driver(previous_driver);
> stat=unix("xdg-open "+fpath);
> xs2png(h,TMPDIR+'/bug_plot_nan.png');
> /////////////////////////////////////////////////
>  
>  
> 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

_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


More information about the users mailing list