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

CRETE Denis denis.crete at thalesgroup.com
Wed Oct 18 14:23:08 CEST 2017


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


More information about the users mailing list