[Scilab-users] ticks_mark property in Scilab 6.0.1

2019-01-08 Thread Patrice MEGRET
Dear all,

Since Scilab 6.0.1 the ticks_mark property seems to be broken: the following 
code works as expected in Scilab 5.5.2 but does not display the formatted ticks 
in Scilab 6.0.1.


// test of ticks_format property

// PM 2019-01-08



x = [0:%pi/100:2*%pi]

plot2d(x,sin(x))

xgrid



af=gca()

// ticks_format ok, in Scilab 5.5.2 and broken in Scilab 6.0.1

af.ticks_format = ["%.1e","%.2f","%.1f"]  //x-axis in exp notation with 1 
decimal place and y-axis with 2 decimal places


There is a bug 14790 reported Scilab's Bug Tracker.

For publication it is generally vital to have a specified number of decimal 
places on the axes.
So, will this be be solved in the next release or is there a clue to get the 
good behavior without using ticks_format?

Thanks a lot.

Patrice MEGRET
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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

2017-10-18 Thread Patrice MEGRET
Dear Antoine,

Correct behavior in Windows 10 and Scilab 6.0.0

Patrice 


-Message d'origine-
De : users [mailto:users-boun...@lists.scilab.org] De la part de Antoine 
Monmayrant
Envoyé : mercredi 18 octobre 2017 13:23
À : users@lists.scilab.org
Objet : [Scilab-users] Bug?: plot with nan values (Linux Ubuntu 17.04)

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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] surf and plot3d

2017-05-15 Thread Patrice MEGRET
Dear Jens,

If you use plot3d instead of surf, it is ok.

The problem is that surf uses Matlab definition of the matrix Z whereas plot3d, 
... use Scilab definition. ==> there is a transposition between these two 
definitions (see help file)

Ndgrid for plot3d, contour, ...
Meshgrid for surf

If you would like to use surf with ndgrid: surf(x,y,Z.')

PM




De : users [mailto:users-boun...@lists.scilab.org] De la part de Jens Simon 
Strom
Envoyé : dimanche 14 mai 2017 18:51
À : International users mailing list for Scilab. 
Objet : [Scilab-users] surf and plot3d


Hi,

Please check the graph below:



x=[0 1]; y=[0 2];

[X,Y]=ndgrid(x,y)

Z=X+2*Y

xdel();

surf(x,y,Z)

param3d(X,Y,Z)

ce=gce();   ce.line_mode="off";   ce.mark_mode = "on";   ce.mark_size = 10

ca=gca(); ca.rotation_angles=[65 290];



The facet corners do not coincide with the marks in Version 5.4.0. and 5.5.2.. 
Shouldn't they?



Kind regards

Jens
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users