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

CRETE Denis denis.crete at thalesgroup.com
Wed Oct 18 18:09:26 CEST 2017


Hello Antoine
I used a Lenovo T420 with Ubuntu 16.04 (I need to check when I am back on this machine, and I'll try to find what is the graphic driver), and Scilab 6.0. 
With this machine, but under Windows and Scilab 5.5.2, this did not happen = it used to be correct, with open gap at the %Nan value.
I can't try this machine and SciLab 6 under Windows, as Windows is not on this machine anymore.
I also tried the following code:
// Code
X=1:5;
Y=X.^2; Y(3)=%nan;
 plot2d(X',Y')
// End of code
- with an HP Z440 + Windows 7 Pro + SciLab 6.0 	: both plot and plot2d are correct
- with an HP Z420 + Windows 7 Pro + SciLab 5.5.2 : both plot and plot2d are correct
I did not fill a bug report.

I notice a different behaviour between "your bug" and "my bug": in your bug/no_bug PNGs, Nan points are plot in the center (both x-wise and y-wise) of the graph, whereas in my observation (sorry, I do not have the true result, I can produce it when I am back on the Linux machine) only the y coordinate is "fake" data in the mid-range of Y, but at the right value of X...
HTH
Denis

-----Message d'origine-----
De : users [mailto:users-bounces at lists.scilab.org] De la part de Antoine Monmayrant
Envoyé : mercredi 18 octobre 2017 16:47
À : Users mailing list for Scilab
Objet : Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= )

Yep, you're right, it looks the same.
Did you fill a bug report?
On what machine/OS did you observe this bug?

Antoine
 
 
Le Mercredi, Octobre 18, 2017 14:23 CEST, CRETE Denis <denis.crete at thalesgroup.com> a écrit: 
 
> This seems to be the same problem I discussed with Christophe (although he observed a correct behaviour) :
> ----------------------------------------------------------------------
> ------------
> Objet: Scilab 6's plot2d displays %nan on the horizontal line in the 
> mid-range of vertical axis
> 
> Hello Denis,
> 
> > De  CRETE Denis
> > Envoyé : mercredi 17 mai 2017 14:20
> >
> > If %nan values are in the Y vector,
> > plot2d behaves as if the following was performed before display:
> > Y (isnan(Y))=(YM + Ym)/2
> 
> I'm not sure I understand what you're pointing out.
> The following code works exactly as I expect:
> ----------
> x = 1:5;
> y=x.^2;
> y(3)=%nan;
> plot(x, y)
> ----------
> i.e. the point at x=3 is simply missing, with a blank between x=2 and x=4.
> --
> Christophe Dang Ngoc Chan
> 
> 
> -----Message d'origine-----
> De : users [mailto:users-bounces at lists.scilab.org] De la part de 
> Rafael Guerra Envoyé : mercredi 18 octobre 2017 13:35 À : 
> antoine.monmayrant at laas.fr; Users mailing list for Scilab Objet : Re: 
> [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with nan values 
> (Linux Ubuntu 17.04)
> 
> Hi Antoine,
> 
> I observe the "No bug" behavior (i.e., gaps when plotting nans) in both Scilab 5.5.2 and Scilab 6.0.0 installations on Win7 64-bit PC.
> 
> Regards,
> Rafael
> 
> 
> -----Original Message-----
> From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of 
> Antoine Monmayrant
> Sent: Wednesday, October 18, 2017 1:26 PM
> To: Users mailing list for Scilab <users at lists.scilab.org>
> Subject: Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? Bug?: plot with 
> nan values (Linux Ubuntu 17.04)
> 
> 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
> 
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>

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


More information about the users mailing list