[Scilab-users] Precision of ode( )

2024-10-14 Thread Jens Simon Strom
Hallo Scilab experts, If I use ode() to simulate the two-body problem sun-earth (state vector of 12 barycentric coordinates), there is a large discrepancy between the numerical and the analytical solution: In a simulation time of 550 (analytically calculated) orbital periods, the Earth complete

[Scilab-users] How to produce the astronomic aries-Symbol by xlabel?

2024-09-12 Thread Jens Simon Strom
Hallo Scilab experts, How to produce the astronomic aries-Symbol by xlabel? Regards Jens This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or h

[Scilab-users] Read a matrix embedded in an unstructured text-file

2024-07-01 Thread Jens Simon Strom
Hallo Scilab experts, given is a text-file like: This is the first line of the txt-file. Some Text 1.1 2.2 3.3 4.4 Further Text 5.5 6.6 7.7 8.8 Some Text, further text, Further9.9 0.0 1.1 2.2 Some Text, further text, 45 Some Text, further text This is the last line o

Re: [Scilab-users] Get filename by script command

2024-01-22 Thread Jens Simon Strom
function or script returns its file name as you requested: [filepath,filename]=get_absolute_file_path(); Best regards Stefan On 2024-01-18 11:42, Jens Simon Strom wrote: Hi, I look for a command which -- as part of a script -- returns a string containing the file name or full path name of the current scrip

[Scilab-users] Get filename by script command

2024-01-18 Thread Jens Simon Strom
Hi, I look for a command which -- as part of a script -- returns a string containing the file name or full path name of the current script. uigetfile() seemed to be close but does something else. Regards Jens This email and any attachments are intended solely for the use of the individual o

Re: [Scilab-users] Noise canceling with playsnd( )

2023-12-20 Thread Jens Simon Strom
it sounds right !-) First on the left, then on the right, finally both simultaneously. I looks like it is what is expected; isn’t it ? Denis De : users <mailto:users-boun...@lists.scilab.org> De la part de Jens Simon Strom Envoyé : mardi 19 décembre 2023 19:52 À : Users mailing list for

[Scilab-users] Noise canceling with playsnd( )

2023-12-19 Thread Jens Simon Strom
Hallo Scilab friends, My question is at the end of the comment. fs=20050; t=0:1/fs:1; f=440; a=sin(2*%pi*f*t); // harmonic a_=asin(a); // distorted silence=zeros(1,length(a)); y=[a, silence, a; silence, a_, -a]; playsnd(y,fs); // The 1st section (channel 2 silent) and // the 2n

[Scilab-users] Header in txt file for read command

2023-05-25 Thread Jens Simon Strom
Hi Scilab insiders, My minimum example text file has 5 lines: These data are used in a.sce and also in b.sce 0 1 1 2 2 3 The read command shall only read the numerical data as a matrix, ignoring the two header lines. How can I do that? Regards Jens This email and any attachments are inte

Re: [Scilab-users] Uniform distribution of non equidistant integers

2022-08-30 Thread Jens Simon Strom
Thank you all for your valuable and quick help! [1 5 9](grand(1,1,"uin",1,3)) and sample(1, [1 5 9]) are now  my favorites. Regards Jens --- Am 30.08.2022 um 01:22 schrieb Federico Miyara: Samuel, or, faster, [1 5 9](grand(

[Scilab-users] Uniform distribution of non equidistant integers

2022-08-29 Thread Jens Simon Strom
Hallo, to get a random number from an uniform distribution of e.g. 1, 5 and 9 I can use x=grand(1,1, "uin", 1, 3); if x==2; x=5; elseif x==3 x=9; end xI there a more straightforward way? Regards Jens ___ users mailing list users@lists.scilab.org http

[Scilab-users] Problem with ticks

2022-08-03 Thread Jens Simon Strom
Hi, The code below works in version 6.1.0. But after replacing the ticks configuration by the commented one it fails. What is wrong there? Regards Jens T=15:200; P=9600../T; xdel() plot(T,P) ca=gca(); ca.grid=[1 1]; xtitle('$P=\frac{9600}{T}$'); t=ca.title; t.font_size=5; ca.x_ticks.locati

Re: [Scilab-users] Getting the variable name used for a function input argument

2021-12-06 Thread Jens Simon Strom
Hi Samuel, Your solution is quite sophisticated. To me it was confusing to call a function without the input being bracketed. And on top of this, that a variable of type /constant/ is accepted as a /string/ within the function. Scilab seems to be more flexible than I would dare to imagine befo

Re: [Scilab-users] Getting the variable name used for a function input argument

2021-12-04 Thread Jens Simon Strom
of an XY problem (https://xyproblem.info/) and that Jens should explain the whole story. S. Regards, Federico Miyara On 23/11/2021 17:18, Jens Simon Strom wrote: Hi Scilab friends, Given a numeric variable like xNum as an input argument of a function call, how can I produce the variable n

[Scilab-users] Getting the variable name used for a function input argument

2021-11-23 Thread Jens Simon Strom
Hi Scilab friends, Given a numeric variable like xNum as an input argument of a function call, how can I produce the variable name string "xNum" within the function? Example: function [name,y]=foo(x)    name=???    y=x^2 endfunction xNum=123. [name,y]=foo(xNum) The result for name should be

[Scilab-users] % instead of percent

2021-07-14 Thread Jens Simon Strom
Hallo Scilab family, How can I replace /percen/t by the symbol % in the command printf('Change: %5.1f percent \n',5.0) ? I use  Version 6.1.0 Kind regards Jens ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/us

[Scilab-users] xtitle hides figure cintent

2020-03-16 Thread Jens Simon Strom
Hallo Scilab family, After two decades of using Scilab I was not able to fix the following problem. fig=figure('visible','off'); plot(0:5,0:5) //xtitle('xtitle hides the figure content.') set(fig,'visible','on'); The script does what I expect. However when uncommenting xtitle the figure is bl

[Scilab-users] Polyline markers cycling through selected colors

2020-02-12 Thread Jens Simon Strom
Hallo Scilab experts, The script below should color the markers in a cyclic manner. It does - however only temporary! What should be changed? I would like to keep the plot command off the loop. Kind regards Jens xdel() x=1:15; y=x; COLO=[5 3 2 1]//selction of color IDs ncol=length(COLO);

[Scilab-users] Deletion of console content

2019-09-25 Thread Jens Simon Strom
Hello Scilab experts, I have two questions: * 1. After closing Scilab, is the content of what has appeared on the console during the session still accessible for computer experts? In other words: Is the console content securely deleted? * 2. After editing and executing a script and closi

[Scilab-users] Exclamation mark in variables

2019-08-16 Thread Jens Simon Strom
Hallo Scilab friends, can anyone roughly predict when e. g. "*!x*" will become a legal variable name again? Kind regards Jens ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

[Scilab-users] Font size of console printings on paper

2019-07-29 Thread Jens Simon Strom
Hallo Scilab community, How do you control  the font size, when printing the console content to paper. My changes in the console file menu lead to nothing. I aim at  smaller characters. Kiond regards Jens ___ users mailing list users@lists.scilab.

[Scilab-users] rand("seed",s)

2019-04-29 Thread Jens Simon Strom
Hallo Scilab équipe, In my application it is vital   -  in addition to the normal focus when using seeds -  that /different/ seeds in rand("seed",seed) produce /different/ random number series. (1) Is that the case? I am aware that  seed has to be a non negative integer. (2) Are there any fu

Re: [Scilab-users] Wanted: Command like regexp accepting a string vector for haystack

2018-12-07 Thread Jens Simon Strom
Am 06.12.2018 14:51, schrieb Jens Simon Strom: Thanks Samuel, That works fine. Regards Jens -- Am 05.12.2018 21:50, schrieb Samuel

Re: [Scilab-users] Inserting %nan at given positions into a vector

2018-12-06 Thread Jens Simon Strom
Hallo Samuel, Tanquam ex ungue leonem! Great! Kind regards Jens - Am 05.12.2018 22:12, schrieb Samuel Gougeon: Le 05/12/2018 à 13:01, Jens Simon Strom a écrit : Hallo Scilab experts, Given is a numeric vector x of length n and an

Re: [Scilab-users] Wanted: Command like regexp accepting a string vector for haystack

2018-12-06 Thread Jens Simon Strom
Thanks Samuel, That works fine. Regards Jens -- Am 05.12.2018 21:50, schrieb Samuel Gougeon: Hello Jens, Le 05/12/2018 à 17:47, Jens Simon Strom a écrit : Hallo Scilab experts, I am looking for a command to

[Scilab-users] Wanted: Command like regexp accepting a string vector for haystack

2018-12-05 Thread Jens Simon Strom
Hallo Scilab experts, I am looking for a command to *return the match (or position) of a character string (=needle) in a **vector**of strings (=haystack), where needle may be a regular expression* Needle occurs only once in any line of haystack. That may ease the problem. [start, final, match

[Scilab-users] Inserting %nan at given positions into a vector

2018-12-05 Thread Jens Simon Strom
Hallo Scilab experts, Given is a numeric vector x of length n and an index vector i with max(i)=n. I want to insert a %nan after every x(i). Example x=[11:20] i=[2 5 8] Required result: y=[11 12 %nan 13 14 15 %nan 16 17 18 %nan 19 20] How would you proceed so that it works fast for n>50 to

Re: [Scilab-users] Punch a hole into a facet

2018-10-03 Thread Jens Simon Strom
heers Jens -- Am 02.10.2018 21:27, schrieb Samuel Gougeon: Le 01/10/2018 à 16:35, Jens Simon Strom a écrit : Thanks Samuel, %nan works with surf, not with plot3d. The latter is attractive because it can handle polygons - but unfortunately

Re: [Scilab-users] Punch a hole into a facet

2018-10-01 Thread Jens Simon Strom
lines and facets going through it are skipped/not rendered. HTH Samuel Le 30/09/2018 à 23:35, Jens Simon Strom a écrit : Hallo Scilab friends, Is there a way to punch a*peak through* hole into a rectangle? The result below looks like a hole but it is just white intransparent color. xdel

[Scilab-users] Punch a hole into a facet

2018-09-30 Thread Jens Simon Strom
Hallo Scilab friends, Is there a way to punch a*peak through* hole into a rectangle? The result below looks like a hole but it is just white intransparent color. xdel(); xf=[1;-1;-1;1]; yf=[1;1;-1;-1]; zf=[0;0;0;0]; plot3d(xf,yf,list(zf,5))//Facet ce=gce(); ce.hiddencolor = 5; x

[Scilab-users] Punch a hole into a facet

2018-09-30 Thread Jens Simon Strom
Hallo Scilab friends, Is there a way to punch a*peak through* hole into a rectangle? The result below looks like a hole but it is just white intransparent color. xdel(); xf=[1;-1;-1;1]; yf=[1;1;-1;-1]; zf=[0;0;0;0]; plot3d(xf,yf,list(zf,5))//Facet ce=gce(); ce.hiddencolor = 5; x

[Scilab-users] Notches in thick polyline

2018-09-26 Thread Jens Simon Strom
Hello Scilab afficionados, Can the notches be avoided? Cheers Jens phi=0:360; param3d(cosd(phi),zeros(phi),sind(phi)) ce=gce(); ce.thickness=20; ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] ode with algebraic constraint

2018-08-14 Thread Jens Simon Strom
Hallo Rafael, This mail arrived properly! To my taste the equation of motion of a spherical pendulum (which we are actually treating here) is much easier to understand in the way you presented it than the one in spherical coordinates filling the textbooks. Perhaps Lagrange and Hamilton are s

Re: [Scilab-users] ode with algebraic constraint

2018-08-14 Thread Jens Simon Strom
Hallo Rafael, Sorry for my delayed answer! Your mail and your next one ("Bitte") accidently have gone into my recycle bin - I still have to find out why because in the case of your mail this false allocation is really annoying. Your approach seems to be correct. I have done a couple of simulat

[Scilab-users] ode with algebraic constraint

2018-08-10 Thread Jens Simon Strom
*Hallo,** **To solve the equation of motion for a mass point m in a constant force field f=[fx; fy; fz] one can use ode(...) with the function** ** **function dz=EoM(t, z, m,f)//z=[x; y; z; vx; vy; vz] (6 x 1)** ** dz(1:3)=z(4:6)** ** dz(4:6)=f/m** **endfunction** ** **If the motion shall

Re: [Scilab-users] Scilab Cloud App

2018-07-01 Thread Jens Simon Strom
plication/toolbox/script does not allow that. Technically speaking, this is not a web applet technology (Scilab running within the browser) but rather a web service technology (Scilab running within the cloud/servers). Thanks, -- Clément Le samedi

[Scilab-users] Scilab Cloud App

2018-06-23 Thread Jens Simon Strom
Hallo, I happended to see the page Scilab Cloud App , and was attracted by the slogan "Don't waste your time in learning HTML/JS". I know web applets being availabe to the public via an URL and allowing some mathematical calculations after some inputs

Re: [Scilab-users] Fill plot line properties into a list

2018-06-03 Thread Jens Simon Strom
Great,Samuel! Now my script looks much better. Thanks with kind regards Jens - Am 03.06.2018 11:26, schrieb Samuel Gougeon: Le 02/06/2018 à 22:31, Jens Simon Strom a écrit : Hello Scilab intimates, The lines Cspec=list

Re: [Scilab-users] Fill plot line properties into a list

2018-06-03 Thread Jens Simon Strom
Hi Rafael, Thanks! Not as simple as I hoped, but it works. Regards Jens -- Am 03.06.2018 01:33, schrieb Rafael Guerra: Hi Jen, Several of the arguments you would like to

[Scilab-users] Fill plot line properties into a list

2018-06-02 Thread Jens Simon Strom
Hello Scilab intimates, The lines Cspec=list('Color','r','thickness',5); plot(1:5,Cspec(:)) are functional, but the lines Cspec=list('line_mode','off','mark_mode','on','mark_style',1,'mark_foreground',5,'mark_size',5); plot([1:5],Cspec(:)) are not. What has to be changed? I would like to

Re: [Scilab-users] Exclamation mark in variable names

2018-05-27 Thread Jens Simon Strom
Hi, The `!` usage to recall a previous command is discussed here in detail. I don't miss it. My question was different. How about implementing again the "!" as a valid character in variable names as documented? How long is the reasonable response time for fixing the reported bug? Regards J

[Scilab-users] Exclamation mark in variable names

2018-05-19 Thread Jens Simon Strom
Hallo Scilab intimates, Is *!a* a valid variable name in the latest version of Scilab? Vers. 6.0.1 sees an*Error: Unexpected token '!'* Kind regards Jens ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] Print string matrix on console without exclamation marks

2017-10-05 Thread Jens Simon Strom
Thanks Stefan, Simpler than I thought! Regards Jens - Am 05.10.2017 10:55, schrieb Stefan Du Rietz: Hello Jens, -->M = ['a','b';'c','d']; -->mprintf("%s %s\n", M) a b c d Rega

[Scilab-users] Print string matrix on console without exclamation marks

2017-10-05 Thread Jens Simon Strom
Hi Scilab experts, How can I print a string matrix on the console without leading and trailing exlamation marks (!)? ['a','b';'c','d'] should simply be returned as a b c d Kind regards Jens ___ users mailing list users@lists.scilab.org http://list

Re: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count

2017-06-08 Thread Jens Simon Strom
6.2017 23:09, schrieb Samuel Gougeon: Hello Jens, Le 07/06/2017 à 09:49, Jens Simon Strom a écrit : Hallo Samuel, So I better count with something like this: wpt_pos=grep(XmlDump,' This is a useful workaround. May i suggest adding a space to ' &

Re: [Scilab-users] xmlns attribute cancels counting <= Re: xmlXPath with count

2017-06-07 Thread Jens Simon Strom
Hallo Samuel, So I better count with something like this: wpt_pos=grep(XmlDump,' Hello Jens, Le 05/06/2017 à 02:12, Jens Simon Strom a écrit : Hi, Ex. 0 and 2 are o.k.. But what I want is Ex. 1. What is wrong there? //Ex. 0 doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-name

[Scilab-users] xmlXPath with count

2017-06-04 Thread Jens Simon Strom
Hi, Ex. 0 and 2 are o.k.. But what I want is Ex. 1. What is wrong there? //Ex. 0 doc = xmlRead("http://www.w3.org/TR/2009/REC-xml-names-20091208/xml-names-10-3e.xml";); // Count the nodes with name equal to"note" xp0 = xmlXPath(doc, "count(//note)") xmlDelete(doc) //Ex. 1 t=[''+.. 'http://www

Re: [Scilab-users] Extracting numerical an text data from gmx files

2017-05-23 Thread Jens Simon Strom
ints endfunction Thanks again for your help. Regards, Jens ______ Am 22.05.2017 08:19, schrieb Jens Simon Strom: Hello Samuel, I tried the script doc=xmlRead("G:/Daten/Navigation/gpxArchiv/testfile.gpx") recent =getPr

Re: [Scilab-users] Extracting numerical an text data from gmx files

2017-05-21 Thread Jens Simon Strom
e called by : exec('G:\Daten\Navigation\eTrex10_GPX_Generator.sce', -1) What am I doing wrong here? Regards, Jens ----- Am 22.05.2017 01:31, schrieb Jens Simon Strom: Great, I will try this soon. Regards, Jen

Re: [Scilab-users] Extracting numerical an text data from gmx files

2017-05-21 Thread Jens Simon Strom
Great, I will try this soon. Regards, Jens -- Am 22.05.2017 01:14, schrieb Samuel Gougeon: Hello, Le 22/05/2017 à 00:32, Jens Simon Strom a écrit : Hi, I want to extract lat, lon and -name from gmx files. See the

[Scilab-users] Extracting numerical an text data from gmx files

2017-05-21 Thread Jens Simon Strom
Hi, I want to extract lat, lon and -name from gmx files. See the following reduced example: - xmlns="http://www.topografix.com/GPX/1/1"; creator="MEDIA-TOURS"

Re: [Scilab-users] surf and plot3d

2017-05-15 Thread Jens Simon Strom
-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(

[Scilab-users] surf and plot3d

2017-05-14 Thread Jens Simon Strom
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 Vers

[Scilab-users] Scilab 6, Exclamation mark in variable names

2017-04-08 Thread Jens Simon Strom
Hi, The character "!" in variable names is parsed as "unexpected token" and terminates execution. Will this be corrected to comply with the documentation saying "Names of variables and functions must begin with a letter or one of the following special characters '|%|', '|_|', '|#|', '|!|', '

Re: [Scilab-users] Reading numerical and string vectors from txt-file

2017-03-24 Thread Jens Simon Strom
end cv = strtod(part(txtlines,colspan))//string to double endfunction Jens --- Am 23.03.2017 09:51, schrieb Jan Åge Langeland: On 23.03.2017 00:25, Jens Simon Strom wrote: The test data I posted had bee

Re: [Scilab-users] Reading numerical and string vectors from txt-file

2017-03-22 Thread Jens Simon Strom
-- Am 22.03.2017 23:55, schrieb Jan Åge Langeland: On 22.03.2017 14:49, Jens Simon Strom wrote: Would you get toBAThour andBATminute the same way? I would probably have done it in a more complicated way:-), but I like this solution, it

Re: [Scilab-users] Reading numerical and string vectors from txt-file

2017-03-22 Thread Jens Simon Strom
Thanks Jan Åge, This is my further detailation of your approach: M=csvRead('G:\Daten\ScilabFun\MICAfileForMFSCANFreading.txt',.. " ",[],"string",[],[],[],7); Year=strtod(M(1:4,1)') Month=M(1:4,2)' Day=strtod(M(1:4,3)') BAThour =

[Scilab-users] Reading numerical and string vectors from txt-file

2017-03-22 Thread Jens Simon Strom
Hi, I would like to read 5 colum vectors from the example txt-file as quoted between the dotted lines below. The desired result should be: Y=[2017;2017;2017;2017] M=['May';'June';'Jul';'Aug'] D=[26.;25.;25.;24.] BATh=[0.;%nan;1.;2.] //hour of begin of astronomical twilight. BATm=[48.;%nan;29.;

Re: [Scilab-users] Same color for contour isolines

2017-03-18 Thread Jens Simon Strom
18.03.2017 17:14, schrieb Samuel Gougeon: Hello Jens, Le 16/03/2017 à 11:32, Jens Simon Strom a écrit : Hi, How would you avoid the loop in the following example? n2_=-1000:200:1000; nS_=-1000:200:1000; [N2,NS]=ndgrid(n2_,nS_); N1=2.6*N2+(3.6)*NS; xdel(); contour(n2_,nS_,N1/100,[-60:10:60]) ca

Re: [Scilab-users] ?==?utf-8?q? Same color for contour isolines

2017-03-17 Thread Jens Simon Strom
14:01, schrieb Antoine Monmayrant: Le Jeudi, Mars 16, 2017 11:32 CET, Jens Simon Strom a écrit: Hi, How would you avoid the loop in the following example? By setting the colormap beforehand so that is only contains the color you want: n2_=-1000:200:1000; nS_=-1000:200:1000; [N2,NS]=ndgrid(n2_,

[Scilab-users] Same color for contour isolines

2017-03-16 Thread Jens Simon Strom
Hi, How would you avoid the loop in the following example? n2_=-1000:200:1000; nS_=-1000:200:1000; [N2,NS]=ndgrid(n2_,nS_); N1=2.6*N2+(3.6)*NS; xdel(); contour(n2_,nS_,N1/100,[-60:10:60]) ca=gca(); Comp=ca.children; //colum matrix of handles: (Compound) nComp=length(Comp); for k=1:nComp Comp

Re: [Scilab-users] ?==?utf-8?q? Plots for scientific papers

2017-03-09 Thread Jens Simon Strom
Hallo Pierre, prettyfy is great. It will save many people a lot of time and trouble. I do not often use a legend. Leaving it out produces an error and using an empty one looks ugly. So that's my suggestion. Kind regards Jens --

Re: [Scilab-users] Reading numericaldata from txt file containing headlines

2017-03-03 Thread Jens Simon Strom
e","r"); header=mgetl(u,4) data=mfscanf(-1,u,"%f %f\n") Le 03/03/2017 à 13:09, Jens Simon Strom a écrit : Hi, with x=read(file,-1,2) I can read the data from a text file containing e. g. 1 2.12 First line of text file 2.12 3.2 3 2 4 2 5 2. 6 2 7 2 Las

Re: [Scilab-users] Reading numericaldata from txt file containing headlines

2017-03-03 Thread Jens Simon Strom
ue it's to ignore the first 5 lines. https://help.scilab.org/docs/6.0.0/en_US/csvRead.html Is that what you are looking for ? -- Amanda Osvaldo On Fri, 2017-03-03 at 13:09 +0100, Jens Simon Strom wrote: Hi, with x=read(file,-1,2) I can read the data from a text file containing e. g. 1 2.12

[Scilab-users] Reading numericaldata from txt file containing headlines

2017-03-03 Thread Jens Simon Strom
Hi, with x=read(file,-1,2) I can read the data from a text file containing e. g. 1 2.12 First line of text file 2.12 3.2 3 2 4 2 5 2. 6 2 7 2 Last line empty What can I do to read only the numbers from a text file like Header 1 First line of text file Header 2

Re: [Scilab-users] surf with isoview

2017-01-07 Thread Jens Simon Strom
ube_scaling="off"; h.isoview="on"; //END OF CODE Result seems isometric enough to me. Regards, Rafael -Original Message- From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Jens Simon Strom Sent: Friday, January 06, 2017 11:07 PM To: International users

[Scilab-users] surf with isoview

2017-01-06 Thread Jens Simon Strom
Hallo, When I switch isoview on after a surf plot I don't get an isometric plot. One can work around by defining cube shape data_bounds. Is that the method of first choice? Kind regards Jens ___ users mailing list users@lists.scilab.org http://lists.

Re: [Scilab-users] Using uimenue to change rotation_angles

2016-12-22 Thread Jens Simon Strom
again for your consultation. Regards Jens -- Am 18.12.2016 18:04, schrieb Jens Simon Strom: Hi Samuel, what I really do is this: xdel() figure_size=[1800 900]; cf=figure(1,'position',[0 0 figure_

Re: [Scilab-users] xclick with output argument cdmenu

2016-12-20 Thread Jens Simon Strom
cilab 5 distribution, such "examples" may be found in the following functions: -plotprofile -edit_curv -getcolor Not sure how easy they are to understand but you may want to let us know. Rgds, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *Jens Simon Strom *Sent:

[Scilab-users] xclick with output argument cdmenu

2016-12-19 Thread Jens Simon Strom
Hi Scilab experts, I am looking for an example where xclick is used with all 5 output arguments including cbmenu to see the interaction with a menu. The documentation only says cbmenu: String: callback associated to a menu if xclick returns due to a click on a menu. In this case, ibutton, xco

Re: [Scilab-users] Using uimenue to change rotation_angles

2016-12-18 Thread Jens Simon Strom
ge{\text{Rotierend}}$'','','')'); m7= uimenu(cf,'label', 'Aus', 'callback', "t=%f"); Case=0;//Initiierung für Anfangspassage, d.h.keine Animation ra=Rotation_Angles;//Initiierung für Anfangspassage t=%t; while t==%t i

Re: [Scilab-users] Using uimenue to change rotation_angles

2016-12-18 Thread Jens Simon Strom
7;, 'callback',"ca=gca(); ca.rotation_angles(1)=80"); HTH Samuel Le 18/12/2016 11:36, Jens Simon Strom a écrit : Hi, I try to use uimenue() in a minimal example to toggle the aspect of a 3D curve between two values - without succes. Here is my defective script. //BEGIN OF U

Re: [Scilab-users] Using uimenue to change rotation_angles

2016-12-18 Thread Jens Simon Strom
label','alpha=10','callback','alpha=10'); m3= uimenu(f,'label', 'quit', 'callback', "t=%f"); t=%t; whilet==%t sleep(300);// Adjust to user speed printf("alpha=%i\r", alpha) ca.rotation_angles(1)= alpha; end

[Scilab-users] Using uimenue to change rotation_angles

2016-12-18 Thread Jens Simon Strom
Hi, I try to use uimenue() in a minimal example to toggle the aspect of a 3D curve between two values - without succes. Here is my defective script. //BEGIN OF UNFUNCTIONAL CODE xdel() figure(1) param3d([0 1 1 1],[0 0 1 1],[0 0 0 1]); ce=gce(); ce.thickness=10; ca=gca(); alpha=ca.rotation_angle

Re: [Scilab-users] Unexpected occurrence of identity matrix 'eye'

2016-12-12 Thread Jens Simon Strom
Of Jens Simon Strom Sent: Monday, December 12, 2016 12:36 PM To: International users mailing list for Scilab. Subject: [Scilab-users] Unexpected occurrence of identity matrix 'eye' Hi Scilab experts, When executing a certain script I get the console output ans = eye * 1.

[Scilab-users] Unexpected occurrence of identity matrix 'eye'

2016-12-12 Thread Jens Simon Strom
Hi Scilab experts, When executing a certain script I get the console output ans = eye * 1. However I do not find a line in the *.sce and called *.sci which - to my knowledge - could produce this result. What can trigger it? Where would you search? Apart from that the script functions

Re: [Scilab-users] Influencing the automatic rotation_angles setting in advance

2016-12-10 Thread Jens Simon Strom
Hallo Serge, Perfect remedy! The twinkling has come to an end. Thanks a lot! Kind regards Jens -- Am 10.12.2016 21:25, schrieb Serge Steer: Le 10/12/2016 à 21:00, Jens Simon Strom a écrit : Hallo

[Scilab-users] Influencing the automatic rotation_angles setting in advance

2016-12-10 Thread Jens Simon Strom
Hallo Scilab experts, During execution of plot3d, param3d, surf, etc. Scilab *automatically* chooses the axes property *rotation_angles*. Is there a way to influence this automatic? I do not mean ca=gca(); ca.rotation_angles=[ang1 ang2]. The setting should be positioned in the script***before

Re: [Scilab-users] Untwinkle a sequence of graphics

2016-12-10 Thread Jens Simon Strom
11:55, Jens Simon Strom a écrit : Hallo Scilab experts, How would you avoid the 'twinkling' when clicking for the next image? For instance by using plot3d() options: xdel(); figure('position',[100 100 1200 800],'background',-2); xtitle('Click into figure an

[Scilab-users] Untwinkle a sequence of graphics

2016-12-10 Thread Jens Simon Strom
Hallo Scilab experts, How would you avoid the 'twinkling' when clicking for the next image? xdel(); cf=figure('position',[100 100 1200 800],'background',8); ca=gca(); x=[0 1 0]; y=[0 0 1]; z=[1 1 1]; for i=1:8 plot3d(x',y',z'*i/5) ca.box="off";ca.axes_visible = ["off","off","off"]; ca

Re: [Scilab-users] Stepping through a script with graphics

2016-11-30 Thread Jens Simon Strom
st regards, Claus On 30-11-2016 10:44, Jens Simon Strom wrote: Hi, I would like to share a function with the community which supports stepping through a script: function!XCLICK()//Stops a script and offers restart options by pressing a key //Helpful for presenting a sequence of graphics or pri

[Scilab-users] Stepping through a script with graphics

2016-11-30 Thread Jens Simon Strom
Hi, I would like to share a function with the community which supports stepping through a script: function!XCLICK()//Stops a script and offers restart options by pressing a key //Helpful for presenting a sequence of graphics or print results step-by-step //Call: !XCLICK(), always witho

Re: [Scilab-users] xtitle seems to suppress plot

2016-11-28 Thread Jens Simon Strom
is proper without 'sleep'? Cheers Jens -- Am 28.11.2016 01:56, schrieb Rafael Guerra: Works alright every time on Scilab 5.5.2 64-bit Win7 but plot background is grey -----Original Message-

Re: [Scilab-users] xtitle seems to suppress plot

2016-11-27 Thread Jens Simon Strom
Am 27.11.2016 19:41, schrieb Jens Simon Strom: I use scilab-5.5.2. I just tried 5.4.0. There the script works. Cheers Jens -- Am 27.11.2016 19:00

Re: [Scilab-users] xtitle seems to suppress plot

2016-11-27 Thread Jens Simon Strom
I use scilab-5.5.2. I just tried 5.4.0. There the script works. Cheers Jens -- Am 27.11.2016 19:00, schrieb Tim Wescott: On Sun, 2016-11-27 at 18:06 +0100, Jens Simon Strom wrote: Hallo

[Scilab-users] xtitle seems to suppress plot

2016-11-27 Thread Jens Simon Strom
Hallo, Instead of drawlater/drawnow I prefer the below approach for starting a figure because no windows flicker temporarily on the screen. This works fine exept when 'xtitle' is used. Inspecting the figure's, axes', compound's and polyline's data I get no hint that the axes should be invis

Re: [Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread Jens Simon Strom
that Samuel is objecting to you starting a new topic by replying to an existing email and then changing its title and subject. When you do that, you end up with a bunch of different topics all in one thread. So -- for a new topic, start a new email. On Mon, 2016-11-21 at 23:10 +0100, Jens Simon

Re: [Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread Jens Simon Strom
under this subject and hope for pardon. Regards Jens - Am 21.11.2016 20:46, schrieb Samuel Gougeon: Le 21/11/2016 18:10, Jens Simon Strom a écrit : Hallo Samuel, This is refre

Re: [Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread Jens Simon Strom
() f.tag = "plot2d() example"; fc = copy(f); // Creates (and render) the copy fc.tag=="plot2d() example" HTH Samuel Gougeon - Mail original ----- De: "Jens Simon Strom" À: users@lists.scilab.org Envoyé: Lundi 21 Novembre 2016 14:32:42 Objet: [Scilab-users] Understandi

[Scilab-users] Understanding the graphic hierarchy. Copy a figure

2016-11-21 Thread Jens Simon Strom
Hallo, The script below is to make f2 a copy of f1. However f2 is/empty/ although its axes, compound, and polyline data look as expected. (Version 5.5.2) xdel();xdel(); f1=figure(1); plot(1:3,1:3) ca1=gca()//axes with one compound child // f2=figure(2); ca2=gca()//axes without children ca2_=c

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-19 Thread Jens Simon Strom
(x,y(:,1:i)); xend(); end / END OF CODE Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *Jens Simon Strom *Sent:* Saturday, November 19, 2016 2:23 PM *To:* Users mailing list for Scilab *Subject:* Re: [Scilab-users] Exporting graphics as non pink jp

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-19 Thread Jens Simon Strom
// START OF CODE driver("JPG"); xdel() y=[]; for i=1:3 str = "test" + string(i) + ".jpg"; xinit(str); x=[0 1]; y(i,:)= i*x; for j=1:i plot(x,y(j,:)); end xend(); end / END OF CODE Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On B

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-19 Thread Jens Simon Strom
reinstall of Scilab. /Claus On 18-11-2016 20:43, Jens Simon Strom wrote: Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs. Am 18.11.2016 20:30, schrieb Jens Simon Strom: Hi, In the following script I would like to

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-19 Thread Jens Simon Strom
str = "test" + string(i) + ".jpg"; xinit(str); x=[0 1]; plot(x,i*x) f = gcf(); xend(); winopen(str); halt() end // END OF CODE PS: all 3 files look good in IrfanView 64-bits. Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-18 Thread Jens Simon Strom
It is 5.5.2. Thanks for responding so fast! Jens -- Am 18.11.2016 21:42, schrieb Samuel Gougeon: Le 18/11/2016 20:43, Jens Simon Strom a écrit : Correction: The first phrase should read: In the following script I would like to save the sequential

Re: [Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-18 Thread Jens Simon Strom
Correction: The first phrase should read: In the following script I would like to save the sequential plots as (pinkless) JPGs. Am 18.11.2016 20:30, schrieb Jens Simon Strom: Hi, In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt

[Scilab-users] Exporting graphics as non pink jpg with xinit/xend

2016-11-18 Thread Jens Simon Strom
Hi, In the following script I would like to save the sequential plot result as a pinkless jpg. I found no way to adapt the xinit/xend workaround (for xs2jpg) to this case. After execution I would like to have three JPGs containing one, two and three lines . xdel() for i=1:3 x=[0 1]; p

Re: [Scilab-users] pinkification of xs2jpg exported images

2016-11-18 Thread Jens Simon Strom
It's not the trivial cause. xend and winopen test.jpg were in two separate lines in my test. I tried again today and Scilab 5.5.2 freezed again. The only way to get out is Ctrl+Alt+Del. However after deleting an already existing figure on the screen by xdel() the workaround works. I have sti

Re: [Scilab-users] pinkification of xs2jpg exported images

2016-11-17 Thread Jens Simon Strom
20:39, schrieb Samuel Gougeon: Le 17/11/2016 20:30, Jens Simon Strom a écrit : Hi , After exporting a figure (produced with plot3d and param3d) I find an ugly pink color behind the object when I open the image by Irfanview. On screen there is white as required. I am not talking about the fi

[Scilab-users] pinkification of xs2jpg exported images

2016-11-17 Thread Jens Simon Strom
Hi , After exporting a figure (produced with plot3d and param3d) I find an ugly pink color behind the object when I open the image by Irfanview. On screen there is white as required. I am not talking about the figure property 'background'. That is well contolled. How can I change pink (close

Re: [Scilab-users] Facet color in Vers. 5.5.2

2016-11-12 Thread Jens Simon Strom
lot3d (x and y monotonous with length n1 and n2, and z with size n1 x n2): clear;_clf_(); plot3d([01],[01],[00;00]) ce=_gce_(); ce.color_flag=0; ce.color_mode=5;/// 5 = red; 1 = black/ Regards, Rafael *From:*users [mailto:users-boun...@lists.scilab.org] *On Behalf Of *Jens Simon Strom *

  1   2   >