I have two PCs which both run Ubuntu 20.04 and Scilab 2024.0.0. I run the same script on the same data on both and get different plots from data with %nan values. The desired results from plot2d are that %nan values are not plotted. (I would provide example but new users are only allowed one embedded media.)
One of the PCs works perfectly but one of the PCs produces this:
%nan values are plotted in the middle of the plot
I must be missing something but can’t see it?
Mark
Hello,
Please give a short piece of code which exhibits the problem.
S.
Here is an example:
mode(0);
clear;
funcprot(0);
xa = [%nan,0,0,0,0,%nan,1,1,1,1,%nan,2,2,2,2,%nan,3,3,3,3,%nan,4,4,4,4,%nan]';
xmax = max(xa);
xmin = min(xa);
close(winsid()); //be sure that any existing figure is deleted
tdlimits = [1,xmin,size(xa,1),xmax];
plot2d(xa, rect=tdlimits);
The desired case is ploted as stair steps, the bad case looks like diagonal bow ties.
Hello,
Here is what I get under macOS:
That is exactly what I see with Windows and one of my Linux machines. The other Linux machine, which is running the same version of the OS and Scilab, shows diagonal lines connecting the ends of each horizontal line to the center of the plot. I can only assume that there is some dependency in Linux that differs between the two systems but I don’t know how to get a list of dependencies to check.
Hello, I suggest to check the Java Virtual Machine version and vendor.
S.