From sdr at durietz.se Wed Jan 1 17:55:13 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 01 Jan 2014 17:55:13 +0100 Subject: [Scilab-users] clock Message-ID: <52C44871.6030609@durietz.se> Hello developers, in Scilab 5.4.1, Windows 7 or Xubuntu: -->clock() ans = 2014. 1. 1. 17. 49. 40.000003 -->clock() ans = 2014. 1. 1. 17. 49. 42.999997 -->clock() ans = 2014. 1. 1. 17. 49. 44.000002 -->clock() ans = 2014. 1. 1. 17. 49. 44.999996 -->help clock c = clock returns a 6-element date vector containing the current date and time in decimal form: c = [year month day hour minute seconds] the first five elements are integers. The seconds element is accurate to several digits beyond the decimal point. Shall I report a bug? Regards /Stefan From sgougeon at free.fr Wed Jan 1 20:20:56 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 01 Jan 2014 20:20:56 +0100 Subject: [Scilab-users] clock In-Reply-To: <52C44871.6030609@durietz.se> References: <52C44871.6030609@durietz.se> Message-ID: <52C46A98.5050107@free.fr> Hello Stefan, It is already somewhat reported here: http://bugzilla.scilab.org/show_bug.cgi?id=10597 Regards Samuel Le 01/01/2014 17:55, Stefan Du Rietz a ?crit : > Hello developers, > in Scilab 5.4.1, Windows 7 or Xubuntu: > > -->clock() > ans = > 2014. 1. 1. 17. 49. 40.000003 > -->clock() > ans = > 2014. 1. 1. 17. 49. 42.999997 > -->clock() > ans = > 2014. 1. 1. 17. 49. 44.000002 > -->clock() > ans = > 2014. 1. 1. 17. 49. 44.999996 > > -->help clock > > c = clock returns a 6-element date vector containing the current date > and time in decimal form: > > c = [year month day hour minute seconds] > > the first five elements are integers. The seconds element is accurate > to several digits beyond the decimal point. > > Shall I report a bug? > > Regards /Stefan > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sdr at durietz.se Wed Jan 1 20:51:39 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 01 Jan 2014 20:51:39 +0100 Subject: [Scilab-users] clock In-Reply-To: <52C46A98.5050107@free.fr> References: <52C44871.6030609@durietz.se> <52C46A98.5050107@free.fr> Message-ID: <52C471CB.90402@durietz.se> Thank you, Samuel! Regards /Stefan On 2014-01-01 20:20, Samuel Gougeon wrote: -------------------- > Hello Stefan, > > It is already somewhat reported here: > http://bugzilla.scilab.org/show_bug.cgi?id=10597 > > Regards > Samuel > > Le 01/01/2014 17:55, Stefan Du Rietz a ?crit : >> Hello developers, >> in Scilab 5.4.1, Windows 7 or Xubuntu: >> >> -->clock() >> ans = >> 2014. 1. 1. 17. 49. 40.000003 >> -->clock() >> ans = >> 2014. 1. 1. 17. 49. 42.999997 >> -->clock() >> ans = >> 2014. 1. 1. 17. 49. 44.000002 >> -->clock() >> ans = >> 2014. 1. 1. 17. 49. 44.999996 >> >> -->help clock >> >> c = clock returns a 6-element date vector containing the current >> date and time in decimal form: >> >> c = [year month day hour minute seconds] >> >> the first five elements are integers. The seconds element is >> accurate to several digits beyond the decimal point. >> >> Shall I report a bug? >> >> Regards /Stefan >> _______________________________________________ >> 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 > From Christophe.Dang at sidel.com Thu Jan 2 08:45:46 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 2 Jan 2014 08:45:46 +0100 Subject: [Scilab-users] How to solve this modular inequality in scilab? In-Reply-To: <1387604985556-4028097.post@n3.nabble.com> References: <1387604985556-4028097.post@n3.nabble.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F325D2F671@301EX00100.sidel.com> Hello, > De : email1018 > Envoy? : samedi 21 d?cembre 2013 06:50 > > |x| <= 6 How do you solve this manually? This inequality defines two infinite domains, how do you expect Scilab to represent infinite sets? All you can do is plot the borders, fill the domains with colours, etc. -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From communication at scilab-enterprises.com Thu Jan 2 16:24:52 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Thu, 02 Jan 2014 16:24:52 +0100 Subject: [Scilab-users] 2014 Best Wishes Message-ID: <52C584C4.5080505@scilab-enterprises.com> Is this email not displaying correctly? View it in your browser Best Wishes Communication Department, Scilab Enterprises | communication at scilab-enterprises.com 143bis rue Yves Le Coz - 78000 Versailles | www.scilab-enterprises.com - www.scilab.org ------------------------------------------------------------------------ Unsubscribe 2014 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 273532 bytes Desc: not available URL: From paul.bignier at scilab-enterprises.com Fri Jan 3 10:31:17 2014 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Fri, 03 Jan 2014 10:31:17 +0100 Subject: [Scilab-users] Xcos RLC_Modelica electrical demo has faulty wiring In-Reply-To: References: Message-ID: <52C68365.2030708@scilab-enterprises.com> Dear Nobuo, Thank you for that correction. Here is the review for the fixing of RLC demo: https://codereview.scilab.org/#/c/13391/ Regards, Paul On 12/31/2013 05:46 AM, Nobuo Hizume wrote: > Dear Xcos electrical palette users: > Regarding above, I found the correct answer in the document below. > 'Modeling in Xcos using Modelica' ('Modeling an ODE: 3 different > approaches') pp.7 to 10 > which is at http://www.openeering.com/scilab_tutorials/. > Regards, > Nobuo Hizume > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From picubed at outlook.com Sat Jan 4 22:19:38 2014 From: picubed at outlook.com (Ryan M. Castle) Date: Sat, 4 Jan 2014 16:19:38 -0500 Subject: [Scilab-users] help a newbie out? Message-ID: Hello. I am new to scilab. I need to create a simple plot of the solution to the logistic equation and have been frustrated by scilab. The plot should be decaying, approaching 20 with an initial population of 300. Here is what I have (in .sce file): clc clear p = 300; m = 20; k = .1; t = [0:.01:5]; y = (m*p)/[p + (m - p)*exp(-k*m*t)]; plot(t, y, 'LineWidth',3) xlabel('t'),ylabel('y'); If I define just t=0 then I get correct result of 300. If I have t=5 I get (close to) 20. All good. But when I plot t=0:.01:5; I get a plot that is 1) increasing not decreasing and 2) the initial and limiting values are all wrong, just a fraction of correct values. What am I missing? Such a simple plot... Thank you. From omorr at uns.ac.rs Sat Jan 4 23:03:54 2014 From: omorr at uns.ac.rs (Radovan Omorjan) Date: Sat, 04 Jan 2014 23:03:54 +0100 Subject: [Scilab-users] help a newbie out? In-Reply-To: References: Message-ID: <52C8854A.3050206@uns.ac.rs> Hello, The point is in division, if you want do do everything elementwise (expression concerning every element of a vector t), pay attention the difference between / and ./ . These two are totally different operators. y = (m*p) ./ (p + (m - p)*exp(-k*m*t)); Moreover, it is not advisable to use [ ] where you need ( ) Regards, Radovan On 1/4/2014 10:19 PM, Ryan M. Castle wrote: > Hello. I am new to scilab. I need to create a simple plot of the solution to the logistic equation and have been frustrated by scilab. The plot should be decaying, approaching 20 with an initial population of 300. Here is what I have (in .sce file): > > clc > clear > p = 300; > m = 20; > k = .1; > t = [0:.01:5]; > > y = (m*p)/[p + (m - p)*exp(-k*m*t)]; > > plot(t, y, 'LineWidth',3) > xlabel('t'),ylabel('y'); > > > If I define just t=0 then I get correct result of 300. If I have t=5 I get (close to) 20. All good. > > But when I plot t=0:.01:5; I get a plot that is 1) increasing not decreasing and 2) the initial and limiting values are all wrong, just a fraction of correct values. > > What am I missing? Such a simple plot... > > Thank you. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > --- U ovoj e-po?ti nema virusa i zlonamjernih programa jer je aktivna avast! antivirusna za?tita. http://www.avast.com From step.schr19 at yahoo.de Sat Jan 4 23:31:28 2014 From: step.schr19 at yahoo.de (Stephan Schreckenbach) Date: Sat, 4 Jan 2014 22:31:28 +0000 (GMT) Subject: [Scilab-users] scilab memory usage Message-ID: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> Hi, I want to script a code that reads data from txt or csv files and does some calculations on them. In the future I might evaluate large data files, run calculation extensive parameter optimizations,? do some loops with a high number of onedimensional calculations. Therefore I worry about speed and memory usage. I run WinXp with 3GB RAM, Intel Core 2Duo. Since scilab processes all data as variant, how much memory is required for each constant or variable, being string, integer or double? I still wonder if I should script via Excel VBA or scilab. I will store my results in Excel anyway and it might be therefore easier to use VBA. As I have read, scilab can use up to 2 GB RAM, VBA only 500MB. But, in VBA data types can be declared, saving some memory. Scilab can do multithreading, but not on Windows, which is what I use. VBA can't do it eighter. VBA might have a larger user community and knowledge Base, Scilab might be easier to script. I would like to start out with eighter scilab or VBA and then to stick to one of them due to the large amount of code and subscripts to write . So-what is your suggestions? Thanks very much in advance for your help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From picubed at outlook.com Sun Jan 5 00:23:24 2014 From: picubed at outlook.com (Ryan M. Castle) Date: Sat, 4 Jan 2014 18:23:24 -0500 Subject: [Scilab-users] help a newbie out? In-Reply-To: <52C8854A.3050206@uns.ac.rs> References: , <52C8854A.3050206@uns.ac.rs> Message-ID: Doh. Thank you. ---------------------------------------- > Date: Sat, 4 Jan 2014 23:03:54 +0100 > From: omorr at uns.ac.rs > To: users at lists.scilab.org > Subject: Re: [Scilab-users] help a newbie out? > > Hello, > > The point is in division, if you want do do everything elementwise > (expression concerning every element of a vector t), pay attention the > difference between / and ./ . These two are totally different operators. > From paul.carrico at free.fr Sun Jan 5 10:45:29 2014 From: paul.carrico at free.fr (paul.carrico at free.fr) Date: Sun, 5 Jan 2014 10:45:29 +0100 (CET) Subject: [Scilab-users] scilab memory usage In-Reply-To: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> Message-ID: <535206642.571152862.1388915129457.JavaMail.root@zimbra5-e1.priv.proxad.net> Hi have a look to "csvread" functions to read (very fast) txt/csv files even for huge file including million(s) of lines ... .. but I've not figure out what you want to do exactly Paul ----- Mail original ----- De: "Stephan Schreckenbach" ?: users at lists.scilab.org Envoy?: Samedi 4 Janvier 2014 23:31:28 Objet: [Scilab-users] scilab memory usage Hi, I want to script a code that reads data from txt or csv files and does some calculations on them. In the future I might evaluate large data files, run calculation extensive parameter optimizations, do some loops with a high number of onedimensional calculations. Therefore I worry about speed and memory usage. I run WinXp with 3GB RAM, Intel Core 2Duo. Since scilab processes all data as variant, how much memory is required for each constant or variable, being string, integer or double? I still wonder if I should script via Excel VBA or scilab. I will store my results in Excel anyway and it might be therefore easier to use VBA. As I have read, scilab can use up to 2 GB RAM, VBA only 500MB. But, in VBA data types can be declared, saving some memory. Scilab can do multithreading, but not on Windows, which is what I use. VBA can't do it eighter. VBA might have a larger user community and knowledge Base, Scilab might be easier to script. I would like to start out with eighter scilab or VBA and then to stick to one of them due to the large amount of code and subscripts to write . So-what is your suggestions? Thanks very much in advance for your help! _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From sgougeon at free.fr Sun Jan 5 15:07:58 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 05 Jan 2014 15:07:58 +0100 Subject: [Scilab-users] scilab memory usage In-Reply-To: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> References: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> Message-ID: <52C9673E.5030207@free.fr> Le 04/01/2014 23:31, Stephan Schreckenbach a ?crit : > .../... > Since scilab processes all data as variant, how much memory is > required for each constant or variable, being string, integer or double? > .../... roughly: string : 4 bytes per character (UTF-8 encoded) integer: (u)int8 : 1 byte (u)int16 : 2 bytes (u)int32: 4 bytes double: 8 bytes boolean: 4 bytes + few other bytes to encode the format ( vector, matrix, hypermatrix...) -------------- next part -------------- An HTML attachment was scrubbed... URL: From step.schr19 at yahoo.de Sun Jan 5 18:07:02 2014 From: step.schr19 at yahoo.de (Stephan Schreckenbach) Date: Sun, 5 Jan 2014 17:07:02 +0000 (GMT) Subject: [Scilab-users] scilab memory usage In-Reply-To: <52C9673E.5030207@free.fr> References: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> <52C9673E.5030207@free.fr> Message-ID: <1388941622.68951.YahooMailNeo@web172502.mail.ir2.yahoo.com> Does scilab itself declare the variables to the type of lowest possible memory consumption? Or do I have to do that? How? Samuel Gougeon schrieb am 15:09 Sonntag, 5.Januar 2014: Le 04/01/2014 23:31, Stephan Schreckenbach a ?crit?: .../... >Since scilab processes all data as variant, how much memory is required for each constant or variable, being string, integer or double? >.../... > roughly: string : 4 bytes per character (UTF-8 encoded) integer: (u)int8 : 1 byte?? (u)int16 : 2 bytes??? (u)int32: 4 bytes double: 8 bytes boolean: 4 bytes + few other bytes to encode the format ( vector, matrix, hypermatrix...) _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy at voelkel.us Mon Jan 6 05:26:28 2014 From: andy at voelkel.us (Andrew Voelkel) Date: Sun, 5 Jan 2014 21:26:28 -0700 Subject: [Scilab-users] I can't get the call_scilab API working on recent Mac OS and Xcode 5 Message-ID: I posted the bug description below in Bugzilla, but have got no useful replies or acklowledgement. Has anyone here recently gotten the call_scilab stuff working on a Mac. It appears the instructions are pretty old, I'm guessing they aren't even referring to dylib libraries. - Andy BUG DESCRIPTION: ---------------- There appear to be many problems with the call_scilab example code and instructions for Mac OS. I'm using 10.9.1 and Xcode 5, but my guess is that these problems exist on earlier Mac OS versions. The first problem is that the instructions seem to be wrong. There are not two separate include folders "call_scilab" and "core" under the master include folder. Second, the library "scilab" does not exist. By searching for symbols in the .dylib files, I was able to get the project to build by including "libscicall_scilab.dylib" However, when I try to run the project, I get this error: dyld: Library not loaded: /Users/scilab/SuperCC/sci_binary/scilab-5.4.1.app/Contents/MacOS/lib/scilab/libscicall_scilab.5.dylib Referenced from: /Users/andrew_voelkel/Library/Developer/Xcode/DerivedData/Scilab_API_try-fdmekealfnosslhggzvcequhfnqg/Build/Products/Debug/Scilab API try Reason: image not found I have a modified my "scheme" so that it sets up the runtime environment to set LD_LIBRARY_PATH to /Applications/scilab-5.4.1.app/Contents/MacOS/lib/scilab and SCI to /Applications/scilab-5.4.1.app/Contents/MacOS/share/scilab, but this doesn't seem to help. It is conceivable that using gcc at the command line might yield different results, but given that the instructions are obviously out of date (see above), I doubt it. I would be happy to write up updated Mac OS instructions and submit them once I can get this problem resolved. ERROR LOG: ---------- HOW TO REPRODUCE THE BUG: Try to follow the instructions get the call_scilab example on scilab 5.4.1 and a recent version of MacOS, preferably using Xcode and even more preferably Xcode 5. The instructions I was following can be found here: -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Mon Jan 6 09:16:43 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 6 Jan 2014 09:16:43 +0100 Subject: [Scilab-users] help a newbie out? In-Reply-To: <52C8854A.3050206@uns.ac.rs> References: <52C8854A.3050206@uns.ac.rs> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F325D8DC21@301EX00100.sidel.com> Hello, > De la part de Radovan Omorjan > Envoy? : samedi 4 janvier 2014 23:04 > > pay attention the difference between / and ./ . > These two are totally different operators. To complete this acurate answer, / is the matrix division, see http://help.scilab.org/docs/5.4.1/en_US/slash.html To avoid similar surprises, you should consider everything in Scilab in the matrix point of view. Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From lhorodko at p.lodz.pl Sat Jan 4 23:39:52 2014 From: lhorodko at p.lodz.pl (Longin Horodko) Date: Sat, 4 Jan 2014 14:39:52 -0800 (PST) Subject: [Scilab-users] help a newbie out? In-Reply-To: References: Message-ID: <1388875192904-4028214.post@n3.nabble.com> Change computation of "y": y = (m*p)./(p + (m - p)*exp(-k*m*t)); The dot before "/" is very important here. Kind Regards, Longin Horodko -- View this message in context: http://mailinglists.scilab.org/Scilab-users-help-a-newbie-out-tp4028211p4028214.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From Christophe.Dang at sidel.com Mon Jan 6 09:25:41 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 6 Jan 2014 09:25:41 +0100 Subject: [Scilab-users] scilab memory usage In-Reply-To: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> References: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F325D8DC5D@301EX00100.sidel.com> Dear Stephan, > De la part de Stephan Schreckenbach > Envoy? : samedi 4 janvier 2014 23:31 > > I still wonder if I should script via Excel VBA or scilab. This is not specific to your problem, but in my company, we had a problem with VBA backward compatibility. We had some Excel scripts, and decided to switch to Matlab programs (unfortunately not Scilab (-;). This costed us a lot of effort because this was black box scripts, for people who do not know calculation, so with the need of a clear and robust interface. This might be less painfull if you are the only user. This kind of Microsoft surprise may only happen once every five or ten years, but yu should keep it in mind. Best regards. -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From clement.david at scilab-enterprises.com Mon Jan 6 11:58:31 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 06 Jan 2014 11:58:31 +0100 Subject: [Scilab-users] Lapack library error while using Xcos In-Reply-To: <1388481831622-4028182.post@n3.nabble.com> References: <1388481831622-4028182.post@n3.nabble.com> Message-ID: <1389005911.1724.14.camel@paros> Hello, This seems to be a diagram issue, can you post it please ? -- Cl?ment Le mardi 31 d?cembre 2013 ? 01:23 -0800, inderpreet a ?crit : > Hello, > > I am using Scilab-Xcos for Control systems applications. I am trying to > execute an Xcos diagram which has continuous and discrete time systems. > However, it gives an error: > xerbla: On entry to DGEMM parameter number 10 had an illegal value (lapack > library problem) > > I could execute the same diagram in Scilab 4.1. Could you please help me > find out the possible causes of this error? Thanks. > > Sincerely, > Inderpreet > > > > -- > View this message in context: http://mailinglists.scilab.org/Lapack-library-error-while-using-Xcos-tp4028182.html > Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From clement.david at scilab-enterprises.com Mon Jan 6 12:03:22 2014 From: clement.david at scilab-enterprises.com (=?ISO-8859-1?Q?Cl=E9ment?= David) Date: Mon, 06 Jan 2014 12:03:22 +0100 Subject: [Scilab-users] scilab memory usage In-Reply-To: <1388941622.68951.YahooMailNeo@web172502.mail.ir2.yahoo.com> References: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> <52C9673E.5030207@free.fr> <1388941622.68951.YahooMailNeo@web172502.mail.ir2.yahoo.com> Message-ID: <1389006202.1724.17.camel@paros> Hello, Of course no, in Scilab the default type is "double". You can construct any other datatype using type-functions [1]. [1]: http://help.scilab.org/docs/5.4.1/en_US/int8.html Le dimanche 05 janvier 2014 ? 17:07 +0000, Stephan Schreckenbach a ?crit : > Does scilab itself declare the variables to the type of lowest > possible > memory consumption? Or do I have to do that? How? > > > > Samuel Gougeon schrieb am 15:09 Sonntag, 5.Januar > 2014: > > Le 04/01/2014 23:31, Stephan Schreckenbach a ?crit : > > > > > .../... > > Since scilab processes all data as variant, how much memory is > > required for each constant or variable, being string, integer or > > double? > > > > .../... > > > roughly: > string : 4 bytes per character (UTF-8 encoded) > integer: (u)int8 : 1 byte (u)int16 : 2 bytes (u)int32: 4 bytes > double: 8 bytes > boolean: 4 bytes > + few other bytes to encode the format ( vector, matrix, > hypermatrix...) -- Cl?ment From Christophe.Dang at sidel.com Mon Jan 6 13:09:00 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Mon, 6 Jan 2014 13:09:00 +0100 Subject: [Scilab-users] scilab memory usage In-Reply-To: <1389006202.1724.17.camel@paros> References: <1388874688.59743.YahooMailNeo@web172504.mail.ir2.yahoo.com> <52C9673E.5030207@free.fr> <1388941622.68951.YahooMailNeo@web172502.mail.ir2.yahoo.com> <1389006202.1724.17.camel@paros> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F325DF48CA@301EX00100.sidel.com> Hello, > De la part de Cl?ment David > Envoy? : lundi 6 janvier 2014 12:03 > > Le dimanche 05 janvier 2014 ? 17:07 +0000, Stephan Schreckenbach a ?crit : > > > > Does scilab itself declare the variables to the type of lowest > > possible memory consumption? Or do I have to do that? How? > > Of course no, in Scilab the default type is "double". You can > construct any other datatype using type-functions [1]. > > [1]: http://help.scilab.org/docs/5.4.1/en_US/int8.html This reminds me the following discussion: http://mailinglists.scilab.org/Scilab-users-declaration-of-uint8-matrix-td4026230.html#a4026233 hope this helps -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From chuox.bece at gmail.com Mon Jan 6 20:22:18 2014 From: chuox.bece at gmail.com (Chuox) Date: Mon, 6 Jan 2014 11:22:18 -0800 (PST) Subject: [Scilab-users] uicontrol in a function In-Reply-To: <50E43647.2060305@inria.fr> References: <3B5FFC67498DFF49AE7271A584867D16F10604D652@301EX00100.sidel.com> <50E43647.2060305@inria.fr> Message-ID: <1389036138342-4028237.post@n3.nabble.com> I thinkg i have a similar problem building also my first GUI, when i exec the code for the second windows and click on close menu (cerrar) the windows close whit no problem, but, when i excet the second window form the first whit the button next (siguiete) the console give me this error: !--error 999 delete: The handle is not valid. at line 2 of function cerrar_ventana2 called by : t("-7b163dae:14368ed0266:-7efb");cerrar_ventana2();if exists("%oldgcbo") then gcbo = %oldgcbo; else while executing a callback This is the code: They are two windows: in the windows one i have this: //Boton Siguiente Siguiente1 = uicontrol(ventana1, "Position", [350 60 130 20], ... "Style", "pushbutton", ... "FontSize", 11, ... "String", gettext("Siguiente"), ... "callback", "Siguiente()"); function Siguiente() delete(ventana1); exec(UbicacionInst+'Ventana 2.sce'); endfunction in the windows two i have: function cerrar_ventana2() delete(ventana2); endfunction // Crea una ventana ventana2 = figure("figure_name", gettext("Ventana 2"),... "Position",[50 50 600 600],... "BackgroundColor",[0.9 0.9 0.9],... "Tag", "ventana2"); // Quitar los menus por defecto de SciLab delmenu(ventana2.figure_id, gettext("&File")); delmenu(ventana2.figure_id, gettext("&Tools")); delmenu(ventana2.figure_id, gettext("&Edit")); delmenu(ventana2.figure_id, gettext("&?")); // Desactivar barra de herramientas de graficos toolbar(ventana2.figure_id, "off"); // Menu h1 = uimenu("parent",ventana2, "label",gettext("Archivo")); h2 = uimenu("parent",ventana2, "label",gettext("Acerca")); // Menu Archivo uimenu("parent",h1,"label",gettext("Cerrar"), "callback", "cerrar_ventana2()", "tag","cerrar_programa"); uimenu("parent",h1,"label",gettext("Cerrar SciLab"), "callback", "cerrar_scilab();", "tag","cerrar_SciLab"); // Menu Acerca uimenu("parent",h2, "label",gettext("Acerca"), "callback","Acerca();"); -- View this message in context: http://mailinglists.scilab.org/Scilab-users-uicontrol-in-a-function-tp4025603p4028237.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From chuox.bece at gmail.com Tue Jan 7 16:34:46 2014 From: chuox.bece at gmail.com (Chuox) Date: Tue, 7 Jan 2014 07:34:46 -0800 (PST) Subject: [Scilab-users] uicontrol in a function In-Reply-To: <1389036138342-4028237.post@n3.nabble.com> References: <3B5FFC67498DFF49AE7271A584867D16F10604D652@301EX00100.sidel.com> <50E43647.2060305@inria.fr> <1389036138342-4028237.post@n3.nabble.com> Message-ID: <1389108886705-4028244.post@n3.nabble.com> i solve it this way, when using delete in the Siguiente function: function Siguiente() delete(findobj("Tag", "ventana1")); exec(UbicacionInst+'Ventana 2.sce'); endfunction -- View this message in context: http://mailinglists.scilab.org/Scilab-users-uicontrol-in-a-function-tp4025603p4028244.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From jrafaelbguerra at hotmail.com Thu Jan 9 16:14:21 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 9 Jan 2014 15:14:21 +0000 Subject: [Scilab-users] Scaled plot displays in Scilab? Message-ID: Hello, Does anyone know if it possible to generate scaled plots in Scilab? Say one wants to plot y=f(x), with x being a distance, at 1:1000 scale (i.e., 1 cm on the PC screen would correspond to 10 m along x-variable). Scroll bar may be needed, if for given scale plot is larger than physical screen. Thanks for any hints. Best regards Rafael G. -------------- next part -------------- An HTML attachment was scrubbed... URL: From krotersv at gmail.com Thu Jan 9 16:33:52 2014 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Thu, 09 Jan 2014 21:33:52 +0600 Subject: [Scilab-users] Scaled plot displays in Scilab? In-Reply-To: References: Message-ID: <52CEC160.30000@gmail.com> Hello. You may divide x-axis by 1000. For example: plot2d(x ./ 1000, y); Also you may use a logarithm scale of x-axis. Stanislav 09.01.2014 21:14, Rafael Guerra ?????: > > Hello, > > Does anyone know if it possible to generate scaled plots in Scilab? > > Say one wants to plot y=f(x), with x being a distance, at 1:1000 scale > (i.e., 1 cm on the PC screen would correspond to 10 m along > x-variable). Scroll bar may be needed, if for given scale plot is > larger than physical screen. > > Thanks for any hints. > > Best regards > > Rafael G. > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Thu Jan 9 16:46:04 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 9 Jan 2014 15:46:04 +0000 Subject: [Scilab-users] Scaled plot displays in Scilab? In-Reply-To: <52CEC160.30000@gmail.com> References: <52CEC160.30000@gmail.com> Message-ID: Hi Stanislav, Thanks but it does not guarantee that the interval [x0,x0+10] will be plotted over 1 cm of the screen... I think that one may have to use a function like xchange but, more info about the physical screen is still required. Regards Rafael G. From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of ????????? Sent: Thursday, January 09, 2014 3:34 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Scaled plot displays in Scilab? Hello. You may divide x-axis by 1000. For example: plot2d(x ./ 1000, y); Also you may use a logarithm scale of x-axis. Stanislav 09.01.2014 21:14, Rafael Guerra ?????: Hello, Does anyone know if it possible to generate scaled plots in Scilab? Say one wants to plot y=f(x), with x being a distance, at 1:1000 scale (i.e., 1 cm on the PC screen would correspond to 10 m along x-variable). Scroll bar may be needed, if for given scale plot is larger than physical screen. Thanks for any hints. Best regards Rafael G. _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From serge.steer at inria.fr Thu Jan 9 20:46:12 2014 From: serge.steer at inria.fr (Serge Steer) Date: Thu, 9 Jan 2014 20:46:12 +0100 (CET) Subject: [Scilab-users] Scaled plot displays in Scilab? In-Reply-To: Message-ID: <94529840.887348.1389296772308.JavaMail.root@inria.fr> You can proceed as follow. Note however that at least under windows it is not possible to create a window larger than the screen. Serge Steer clf;plot(linspace(0,100,10),linspace(0,150,10)) fig=gcf(); ax=gca(); ax.tight_limits="on"; //Dimensions of the axis in user coordinates ax_xu=ax.data_bounds(2,1)-ax.data_bounds(1,1); ax_yu=ax.data_bounds(2,2)-ax.data_bounds(1,2); //pixel size in mm to be determined according to screen size and resolution px=0.33;//conversion pixel to mm py=0.35;//conversion pixel to mm //Dimension of the axis in pixels ax_xp=ax_xu/px; ax_yp=ax_yu/py; //Dimension of the current portion of the canvas in pixels ax_Wp=ax_xp/(1-sum(ax.margins(1:2))); ax_Hp=ax_yp/(1-sum(ax.margins(3:4))); //Canvas dimensions in pixels fig_Wp=ax_Wp/ax.axes_bounds(3); fig_Hp=ax_Hp/ax.axes_bounds(4); //Set fig.axes_size property to have fig.axes_size=[fig_Wp,fig_Hp]; ----- Mail original ----- > De: "Rafael Guerra" > ?: "International users mailing list for Scilab." > > Envoy?: Jeudi 9 Janvier 2014 16:46:04 > Objet: Re: [Scilab-users] Scaled plot displays in Scilab? > Hi Stanislav, > Thanks but it does not guarantee that the interval [x0,x0+10] will be > plotted over 1 cm of the screen... > I think that one may have to use a function like xchange but, more > info about the physical screen is still required. > Regards > Rafael G. > From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of > ????????? > Sent: Thursday, January 09, 2014 3:34 PM > To: users at lists.scilab.org > Subject: Re: [Scilab-users] Scaled plot displays in Scilab? > Hello. > You may divide x-axis by 1000. For example: plot2d(x ./ 1000, y); > Also you may use a logarithm scale of x-axis. > Stanislav > 09.01.2014 21:14, Rafael Guerra ?????: > > Hello, > > > Does anyone know if it possible to generate scaled plots in Scilab? > > > Say one wants to plot y=f(x), with x being a distance, at 1:1000 > > scale (i.e., 1 cm on the PC screen would correspond to 10 m along > > x-variable). Scroll bar may be needed, if for given scale plot is > > larger than physical screen. > > > Thanks for any hints. > > > Best regards > > > Rafael G. > > > _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Thu Jan 9 22:54:06 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Thu, 9 Jan 2014 21:54:06 +0000 Subject: [Scilab-users] Scaled plot displays in Scilab? In-Reply-To: <94529840.887348.1389296772308.JavaMail.root@inria.fr> References: <94529840.887348.1389296772308.JavaMail.root@inria.fr> Message-ID: Serge, Thank you for the solution provided. It does the scaling job but the window size is limited to the screen size (whenever the scaled Window is bigger than the screen, my Scilab 5.4.1 on Win 7 crashes abruptly). It would be very useful to be able to display a scaled plot with scrolling bars, to be able to browse the plot details. Best regards Rafael From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Serge Steer Sent: Thursday, January 09, 2014 7:46 PM To: International users mailing list for Scilab. Subject: Re: [Scilab-users] Scaled plot displays in Scilab? You can proceed as follow. Note however that at least under windows it is not possible to create a window larger than the screen. Serge Steer clf;plot(linspace(0,100,10),linspace(0,150,10)) fig=gcf(); ax=gca(); ax.tight_limits="on"; //Dimensions of the axis in user coordinates ax_xu=ax.data_bounds(2,1)-ax.data_bounds(1,1); ax_yu=ax.data_bounds(2,2)-ax.data_bounds(1,2); //pixel size in mm to be determined according to screen size and resolution px=0.33;//conversion pixel to mm py=0.35;//conversion pixel to mm //Dimension of the axis in pixels ax_xp=ax_xu/px; ax_yp=ax_yu/py; //Dimension of the current portion of the canvas in pixels ax_Wp=ax_xp/(1-sum(ax.margins(1:2))); ax_Hp=ax_yp/(1-sum(ax.margins(3:4))); //Canvas dimensions in pixels fig_Wp=ax_Wp/ax.axes_bounds(3); fig_Hp=ax_Hp/ax.axes_bounds(4); //Set fig.axes_size property to have fig.axes_size=[fig_Wp,fig_Hp]; _____ De: "Rafael Guerra" ?: "International users mailing list for Scilab." Envoy?: Jeudi 9 Janvier 2014 16:46:04 Objet: Re: [Scilab-users] Scaled plot displays in Scilab? Hi Stanislav, Thanks but it does not guarantee that the interval [x0,x0+10] will be plotted over 1 cm of the screen... I think that one may have to use a function like xchange but, more info about the physical screen is still required. Regards Rafael G. From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of ????????? Sent: Thursday, January 09, 2014 3:34 PM To: users at lists.scilab.org Subject: Re: [Scilab-users] Scaled plot displays in Scilab? Hello. You may divide x-axis by 1000. For example: plot2d(x ./ 1000, y); Also you may use a logarithm scale of x-axis. Stanislav 09.01.2014 21:14, Rafael Guerra ?????: Hello, Does anyone know if it possible to generate scaled plots in Scilab? Say one wants to plot y=f(x), with x being a distance, at 1:1000 scale (i.e., 1 cm on the PC screen would correspond to 10 m along x-variable). Scroll bar may be needed, if for given scale plot is larger than physical screen. Thanks for any hints. Best regards Rafael G. _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From matteo.tiraferri at email.it Thu Jan 9 08:58:58 2014 From: matteo.tiraferri at email.it (Ueo) Date: Wed, 8 Jan 2014 23:58:58 -0800 (PST) Subject: [Scilab-users] Generic_block3 Message-ID: <1389254338490-4028271.post@n3.nabble.com> Hi to all, I need an help I'm using a Generic_block3 in order to realize a point to point interpolator. I don't understand how can I add the clock input in the block using it inside my code. The block code is written using C Can some one help me? Best Regards Matteo -- View this message in context: http://mailinglists.scilab.org/Generic-block3-tp4028271.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From communication at scilab-enterprises.com Fri Jan 10 10:00:24 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Fri, 10 Jan 2014 10:00:24 +0100 Subject: [Scilab-users] Only 7 days left for ScilabTEC Call for Papers Message-ID: <52CFB6A8.8080608@scilab-enterprises.com> ScilabTEC Dear all, There is still time to submit an abstract of 400 words on subject relevant to the objectives of the conference that is to say the use of Scilab/Xcos in the main scientific domains using numerical computation. ScilabTEC 2014 will be held in Paris, France, on 15-16 May, 2014. * **Abstracts should be submitted electronically at **scilabtec at scilab-enterprises.com** **Abstract submissions should be 400 words in length and are due on or January 17, 2014. * For more information, please visit the conference website http://scilabtec.com/ Best Regards Scilab Enterprises Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 12875 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 10290 bytes Desc: not available URL: From sgougeon at free.fr Fri Jan 10 14:24:45 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 10 Jan 2014 14:24:45 +0100 Subject: [Scilab-users] Scaled plot displays in Scilab? In-Reply-To: References: <94529840.887348.1389296772308.JavaMail.root@inria.fr> Message-ID: <52CFF49D.4040902@free.fr> Le 09/01/2014 22:54, Rafael Guerra a ?crit : > .../... > > It would be very useful to be able to display a scaled plot with > scrolling bars, to be able to browse the plot details. > Just do: fig.auto_resize = "off"; Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrafaelbguerra at hotmail.com Fri Jan 10 15:39:15 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Fri, 10 Jan 2014 14:39:15 +0000 Subject: [Scilab-users] RE(2): Scaled plot displays in Scilab? Message-ID: Hello Samuel, Thanks for the excellent "auto_resize off" tip and the great help you give to the Scilab community (idem for Serge Steer and some other contributors). We are now close to the solution.... but still have a crash problem for larger plot windows, despite the scroll bar is now included. Please run the code below with scale = 1/200 and then with scale=1/20, and let us know if your Scilab crashes too for scale= 1/20 (either immediately or when trying to slide the scroll bar). // Code adapted from Serge Steer's script: clf; plot(linspace(0,100,10),linspace(0,150,10)) fig= gcf(); ax= gca(); ax.tight_limits= "on"; //Dimensions of the axis in user coordinates ax_xu= ax.data_bounds(2,1)-ax.data_bounds(1,1); ax_yu= ax.data_bounds(2,2)-ax.data_bounds(1,2); //pixel size in mm to be determined according to screen size and resolution (dpi) dpi= 90; // dots per inch (depending on screen resolution) px= 2.54e-2/dpi;//conversion from pixel to meter //py= 2.54e-2/dpi;//conversion from pixel to meter printf("\nSetting scale=1/200 is fine but scale=1/20 crashes Scilab 5.4.1 in Win 7\n"); scale= input("ENTER scale = "); // scale= 1/200; // OK // scale= 1/20; // Scilab aborts (Win 7) as window is larger than screen! //Dimension of the axis in pixels ax_xp= ax_xu/px*scale; //ax_yp= ax_yu/py; //Dimension of the current portion of the canvas in pixels ax_Wp= ax_xp/(1-sum(ax.margins(1:2))); //ax_Hp= ax_yp/(1-sum(ax.margins(3:4))); //Canvas dimensions in pixels fig_Wp= ax_Wp/ax.axes_bounds(3); //fig_Hp=ax_Hp/ax.axes_bounds(4); fig_Hp=ax_yu; // Samuel Gougeon's tip: fig.auto_resize = "off"; //Set fig.axes_size property to have fig.axes_size=[fig_Wp,fig_Hp]; Kind regards Rafael G. From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon Sent: Friday, January 10, 2014 1:25 PM To: International users mailing list for Scilab. Subject: Re: [Scilab-users] Scaled plot displays in Scilab? Le 09/01/2014 22:54, Rafael Guerra a ?crit : .../... It would be very useful to be able to display a scaled plot with scrolling bars, to be able to browse the plot details. Just do: fig.auto_resize = "off"; Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Fri Jan 10 19:43:11 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Fri, 10 Jan 2014 19:43:11 +0100 Subject: [Scilab-users] grid lines Message-ID: <52D03F3F.7070907@durietz.se> Hi, is it possible to change the line_style of axes property "grid"? Regards /Stefan From sgougeon at free.fr Fri Jan 10 20:35:09 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 10 Jan 2014 20:35:09 +0100 Subject: [Scilab-users] Scaled plot displays in Scilab? In-Reply-To: References: Message-ID: <52D04B6D.9060809@free.fr> Le 10/01/2014 15:39, Rafael Guerra a ?crit : > > .../... > We are now close to the solution.... but still have a crash problem > for larger plot windows, despite the scroll bar is now included. > Please run the code below with scale = 1/200 and then with scale=1/20, > and let us know if your Scilab crashes too for scale= 1/20 (either > immediately or when trying to slide the scroll bar). > Many Java exceptions are thrown in the consolebox (-->consolbox on). They are likely due to unsufficient memory for the Java heap. To be confirmed. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Jan 10 20:37:24 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 10 Jan 2014 20:37:24 +0100 Subject: [Scilab-users] Scaled plot displays in Scilab? In-Reply-To: <52D04B6D.9060809@free.fr> References: <52D04B6D.9060809@free.fr> Message-ID: <52D04BF4.1000509@free.fr> Le 10/01/2014 20:35, Samuel Gougeon a ?crit : > Many Java exceptions are thrown in the consolebox (-->consolbox on). --> consolebox on // with a e will better work ;) Sorry for the typo -------------- next part -------------- An HTML attachment was scrubbed... URL: From krotersv at gmail.com Sat Jan 11 00:51:56 2014 From: krotersv at gmail.com (=?UTF-8?B?0KHRgtCw0L3QuNGB0LvQsNCy?=) Date: Sat, 11 Jan 2014 05:51:56 +0600 Subject: [Scilab-users] RE(2): Scaled plot displays in Scilab? In-Reply-To: References: Message-ID: <52D0879C.2070609@gmail.com> Hello. I use GNU/Linux. This code crashes not only Scilab but whole session of my operating system. I use RFRemix-18, 64-bit, KDE. Stanislav 10.01.2014 20:39, Rafael Guerra ?????: > > Hello Samuel, > > Thanks for the excellent "auto_resize off" tip and the great help you > give to the Scilab community (idem for Serge Steer and some other > contributors). > > We are now close to the solution.... but still have a crash problem > for larger plot windows, despite the scroll bar is now included. > > Please run the code below with scale = 1/200 and then with scale=1/20, > and let us know if your Scilab crashes too for scale= 1/20 (either > immediately or when trying to slide the scroll bar). > > /// Code adapted from Serge Steer's script:/ > > _clf_; > > _plot_(_linspace_(0,100,10),_linspace_(0,150,10)) > > fig=_gcf_(); > > ax=_gca_(); > > ax.tight_limits="on"; > > ///Dimensions of the axis in user coordinates/ > > ax_xu=ax.data_bounds(2,1)-ax.data_bounds(1,1); > > ax_yu=ax.data_bounds(2,2)-ax.data_bounds(1,2); > > ///pixel size in mm to be determined according to screen size and > resolution (dpi)/ > > dpi=90;/// dots per inch (depending on screen resolution)/ > > px=2.54e-2/dpi;///conversion from pixel to meter/ > > ///py= 2.54e-2/dpi;//conversion from pixel to meter/ > > printf("\nSetting scale=1/200 is fine but scale=1/20 crashes Scilab > 5.4.1 in Win 7\n"); > > scale=_input_("ENTER scale = "); > > /// scale= 1/200; // OK/ > > /// scale= 1/20; // Scilab aborts (Win 7) as window is larger than > screen!/ > > ///Dimension of the axis in pixels / > > ax_xp=ax_xu/px*scale; > > ///ax_yp= ax_yu/py;/ > > ///Dimension of the current portion of the canvas in pixels/ > > ax_Wp=ax_xp/(1-sum(ax.margins(1:2))); > > ///ax_Hp= ax_yp/(1-sum(ax.margins(3:4)));/ > > ///Canvas dimensions in pixels/ > > fig_Wp=ax_Wp/ax.axes_bounds(3); > > ///fig_Hp=ax_Hp/ax.axes_bounds(4);/ > > fig_Hp=ax_yu; > > /// Samuel Gougeon's tip:/ > > fig.auto_resize="off"; > > ///Set fig.axes_size property to have / > > fig.axes_size=[fig_Wp,fig_Hp]; > > Kind regards > > Rafael G. > > *From:*users [mailto:users-bounces at lists.scilab.org] *On Behalf Of > *Samuel Gougeon > *Sent:* Friday, January 10, 2014 1:25 PM > *To:* International users mailing list for Scilab. > *Subject:* Re: [Scilab-users] Scaled plot displays in Scilab? > > Le 09/01/2014 22:54, Rafael Guerra a ?crit : > > .../... > > It would be very useful to be able to display a scaled plot with > scrolling bars, to be able to browse the plot details. > > Just do: > fig.auto_resize = "off"; > > Samuel > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Sat Jan 11 13:20:07 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 11 Jan 2014 13:20:07 +0100 Subject: [Scilab-users] grid lines In-Reply-To: <52D03F3F.7070907@durietz.se> References: <52D03F3F.7070907@durietz.se> Message-ID: <52D136F7.2050602@free.fr> Hi, Le 10/01/2014 19:43, Stefan Du Rietz a ?crit : > is it possible to change the line_style of axes property "grid"? You may awake this thread: http://bugzilla.scilab.org/show_bug.cgi?id=10075 From jrafaelbguerra at hotmail.com Sun Jan 12 15:24:06 2014 From: jrafaelbguerra at hotmail.com (Rafael Guerra) Date: Sun, 12 Jan 2014 06:24:06 -0800 (PST) Subject: [Scilab-users] Scilab dynamic lists and correct use of null()? In-Reply-To: <520DE2E7.1010200@free.fr> References: <1376594802458-4027237.post@n3.nabble.com> <520DE2E7.1010200@free.fr> Message-ID: <1389536646361-4028296.post@n3.nabble.com> Samuel, Thanks for your message. There is something a bit confusing in all this... If one runs the Scilab code below an error occurs: test(1).parm1 = [ 1 2 3 4]; test(1).parm2 = ones(3,3); test(2) = test(1); test(2).parm3 = "hello"; test(2)=[]; // OK test(1)=[]; // Not OK !--error 10000 A null assignment can have only one non-colon index Is this a normal/expected behavior in Scilab? Do we have to delete single dynamic list elements with 'clear'; while for the remaining elements one should use []? PS: These complex data structures do not seem to be very well documented in Scilab. Is there a good reference explaining them in detail? Thanks and regards Rafael G. -- View this message in context: http://mailinglists.scilab.org/Scilab-dynamic-lists-and-correct-use-of-null-tp4027237p4028296.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From sdr at durietz.se Mon Jan 13 00:16:24 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 13 Jan 2014 00:16:24 +0100 Subject: [Scilab-users] grid lines In-Reply-To: <52D136F7.2050602@free.fr> References: <52D03F3F.7070907@durietz.se> <52D136F7.2050602@free.fr> Message-ID: <52D32248.5070302@durietz.se> Thank you, Samuel, I have now done that (and you can all judge my image yourselves). http://bugzilla.scilab.org/attachment.cgi?id=3788 There is a much earlier wish here: To have for the grid property of the Axes of a figure the same properties as a p Reported: 2008-04-10 15:57 CEST by Claude GOMEZ http://bugzilla.scilab.org/show_bug.cgi?id=6191 However, nobody has yet taken care of it ... /Stefan On 2014-01-11 13:20, Samuel Gougeon wrote: -------------------- > Hi, > Le 10/01/2014 19:43, Stefan Du Rietz a ?crit : >> is it possible to change the line_style of axes property "grid"? > You may awake this thread: > http://bugzilla.scilab.org/show_bug.cgi?id=10075 > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sdr at durietz.se Mon Jan 13 01:27:07 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 13 Jan 2014 01:27:07 +0100 Subject: [Scilab-users] Bitmap export Message-ID: <52D332DB.5030507@durietz.se> Hi, when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) from Xubuntu Linux, it has the y axis turned about 30 degrees clockwise and is divided in two parts. Has anybody else experienced that? Regards /Stefan From sdr at durietz.se Mon Jan 13 02:00:21 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 13 Jan 2014 02:00:21 +0100 Subject: [Scilab-users] grid lines In-Reply-To: <52D32248.5070302@durietz.se> References: <52D03F3F.7070907@durietz.se> <52D136F7.2050602@free.fr> <52D32248.5070302@durietz.se> Message-ID: <52D33AA5.5060503@durietz.se> This is the correct image: http://bugzilla.scilab.org/attachment.cgi?id=3790 Why is it not possible to CHANGE a faulty attachment in a bug report? /Stefan On 2014-01-13 00:16, Stefan Du Rietz wrote: > Thank you, Samuel, I have now done that (and you can all judge my image > yourselves). > http://bugzilla.scilab.org/attachment.cgi?id=3788 > > There is a much earlier wish here: > > To have for the grid property of the Axes of a figure the same > properties as a p > Reported: 2008-04-10 15:57 CEST by Claude GOMEZ > http://bugzilla.scilab.org/show_bug.cgi?id=6191 > > However, nobody has yet taken care of it ... > > /Stefan > > > On 2014-01-11 13:20, Samuel Gougeon wrote: > -------------------- >> Hi, >> Le 10/01/2014 19:43, Stefan Du Rietz a ?crit : >>> is it possible to change the line_style of axes property "grid"? >> You may awake this thread: >> http://bugzilla.scilab.org/show_bug.cgi?id=10075 >> _______________________________________________ >> 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 From antoine.monmayrant at laas.fr Mon Jan 13 09:16:52 2014 From: antoine.monmayrant at laas.fr (Antoine Monmayrant) Date: Mon, 13 Jan 2014 09:16:52 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D332DB.5030507@durietz.se> References: <52D332DB.5030507@durietz.se> Message-ID: <52D3A0F4.4080400@laas.fr> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: > Hi, > when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) from > Xubuntu Linux, it has the y axis turned about 30 degrees clockwise and > is divided in two parts. Has anybody else experienced that? > > Regards /Stefan > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Hi Stefan, Could you send us a small test script that produces the bogus plot, so we can give it a try? Do you have a huge scaling factor between x and y? Like mean(y) From sdr at durietz.se Mon Jan 13 10:37:40 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 13 Jan 2014 10:37:40 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D3A0F4.4080400@laas.fr> References: <52D332DB.5030507@durietz.se> <52D3A0F4.4080400@laas.fr> Message-ID: <52D3B3E4.6010703@durietz.se> On 2014-01-13 09:16, Antoine Monmayrant wrote: -------------------- > On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: >> Hi, >> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) >> from Xubuntu Linux, it has the y axis turned about 30 degrees >> clockwise and is divided in two parts. Has anybody else experienced >> that? >> >> Regards /Stefan >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > Hi Stefan, > > Could you send us a small test script that produces the bogus plot, so > we can give it a try? > Do you have a huge scaling factor between x and y? > Like mean(y) If it is the case, try plot(x,y*10^4) (replacing 10^4 be the inverse > of the y/x ratio). > There use to be a bug that produces this slant, but it is corrected > now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . > > Hope it helps, > > Antoine > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > Hi Antoine, there is nothing wrong with the plot, only with the exported file! And even that is OK when exported from Windows 7. x = [0:0.05*%pi:2*%pi]'; f = scf(); plot2d(x, sin(x)) xgrid() Now, from the figure menu: File > Export to ... > PNG (or any other) File > Vectorial export ... works OK. Regards /Stefan From calixte.denizet at scilab-enterprises.com Mon Jan 13 10:43:06 2014 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Mon, 13 Jan 2014 10:43:06 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D3B3E4.6010703@durietz.se> References: <52D332DB.5030507@durietz.se> <52D3A0F4.4080400@laas.fr> <52D3B3E4.6010703@durietz.se> Message-ID: <52D3B52A.9080201@scilab-enterprises.com> Hi Stefan, Could you attach the guilty picture please ? Regards Calixte On 13/01/2014 10:37, Stefan Du Rietz wrote: > On 2014-01-13 09:16, Antoine Monmayrant wrote: > -------------------- >> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: >>> Hi, >>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) >>> from Xubuntu Linux, it has the y axis turned about 30 degrees >>> clockwise and is divided in two parts. Has anybody else experienced >>> that? >>> >>> Regards /Stefan >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >> Hi Stefan, >> >> Could you send us a small test script that produces the bogus plot, so >> we can give it a try? >> Do you have a huge scaling factor between x and y? >> Like mean(y)> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the inverse >> of the y/x ratio). >> There use to be a bug that produces this slant, but it is corrected >> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . >> >> Hope it helps, >> >> Antoine >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > Hi Antoine, > there is nothing wrong with the plot, only with the exported file! And > even that is OK when exported from Windows 7. > > x = [0:0.05*%pi:2*%pi]'; > f = scf(); > plot2d(x, sin(x)) > xgrid() > > Now, from the figure menu: File > Export to ... > PNG (or any other) > > File > Vectorial export ... works OK. > > Regards /Stefan > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From sdr at durietz.se Mon Jan 13 10:50:11 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 13 Jan 2014 10:50:11 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D3B52A.9080201@scilab-enterprises.com> References: <52D332DB.5030507@durietz.se> <52D3A0F4.4080400@laas.fr> <52D3B3E4.6010703@durietz.se> <52D3B52A.9080201@scilab-enterprises.com> Message-ID: <52D3B6D3.9060506@durietz.se> Hi Calixte, here you are! Regards /Stefan On 2014-01-13 10:43, Calixte Denizet wrote: -------------------- > Hi Stefan, > > Could you attach the guilty picture please ? > > Regards > > Calixte > > On 13/01/2014 10:37, Stefan Du Rietz wrote: >> On 2014-01-13 09:16, Antoine Monmayrant wrote: >> -------------------- >>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: >>>> Hi, >>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) >>>> from Xubuntu Linux, it has the y axis turned about 30 degrees >>>> clockwise and is divided in two parts. Has anybody else experienced >>>> that? >>>> >>>> Regards /Stefan >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>> Hi Stefan, >>> >>> Could you send us a small test script that produces the bogus plot, so >>> we can give it a try? >>> Do you have a huge scaling factor between x and y? >>> Like mean(y)>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the inverse >>> of the y/x ratio). >>> There use to be a bug that produces this slant, but it is corrected >>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . >>> >>> Hope it helps, >>> >>> Antoine >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> Hi Antoine, >> there is nothing wrong with the plot, only with the exported file! >> And even that is OK when exported from Windows 7. >> >> x = [0:0.05*%pi:2*%pi]'; >> f = scf(); >> plot2d(x, sin(x)) >> xgrid() >> >> Now, from the figure menu: File > Export to ... > PNG (or any other) >> >> File > Vectorial export ... works OK. >> >> Regards /Stefan >> >> >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users > > -------------- next part -------------- A non-text attachment was scrubbed... Name: gridtest.png Type: image/png Size: 11089 bytes Desc: not available URL: From calixte.denizet at scilab-enterprises.com Mon Jan 13 10:52:53 2014 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Mon, 13 Jan 2014 10:52:53 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D3B6D3.9060506@durietz.se> References: <52D332DB.5030507@durietz.se> <52D3A0F4.4080400@laas.fr> <52D3B3E4.6010703@durietz.se> <52D3B52A.9080201@scilab-enterprises.com> <52D3B6D3.9060506@durietz.se> Message-ID: <52D3B775.6000705@scilab-enterprises.com> Weird... imho it is a problem with the driver of your GC. Could you try to install proprietary driver please ? Regards Calixte On 13/01/2014 10:50, Stefan Du Rietz wrote: > Hi Calixte, > here you are! > > Regards /Stefan > > On 2014-01-13 10:43, Calixte Denizet wrote: > -------------------- >> Hi Stefan, >> >> Could you attach the guilty picture please ? >> >> Regards >> >> Calixte >> >> On 13/01/2014 10:37, Stefan Du Rietz wrote: >>> On 2014-01-13 09:16, Antoine Monmayrant wrote: >>> -------------------- >>>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: >>>>> Hi, >>>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) >>>>> from Xubuntu Linux, it has the y axis turned about 30 degrees >>>>> clockwise and is divided in two parts. Has anybody else experienced >>>>> that? >>>>> >>>>> Regards /Stefan >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>> Hi Stefan, >>>> >>>> Could you send us a small test script that produces the bogus plot, so >>>> we can give it a try? >>>> Do you have a huge scaling factor between x and y? >>>> Like mean(y)>>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the inverse >>>> of the y/x ratio). >>>> There use to be a bug that produces this slant, but it is corrected >>>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . >>>> >>>> Hope it helps, >>>> >>>> Antoine >>>> _______________________________________________ >>>> users mailing list >>>> users at lists.scilab.org >>>> http://lists.scilab.org/mailman/listinfo/users >>>> >>> Hi Antoine, >>> there is nothing wrong with the plot, only with the exported file! >>> And even that is OK when exported from Windows 7. >>> >>> x = [0:0.05*%pi:2*%pi]'; >>> f = scf(); >>> plot2d(x, sin(x)) >>> xgrid() >>> >>> Now, from the figure menu: File > Export to ... > PNG (or any other) >>> >>> File > Vectorial export ... works OK. >>> >>> Regards /Stefan >>> >>> >>> _______________________________________________ >>> 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 -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at esterline.com Tue Jan 14 16:32:33 2014 From: paul.carrico at esterline.com (Carrico, Paul) Date: Tue, 14 Jan 2014 15:32:33 +0000 Subject: [Scilab-users] Scilab RainFlow macro Message-ID: <3A6B7233274DB449A2A0053A47684F950423F0C4@BGS-EX01.auxitrol.ad> Hi Does somebody has a copy of the Scilab Rainflow Macro ? Indeed the Sourceforge website is empty ... Thanks Paul -------------------------------------------------------------------------------- Le pr?sent mail et ses pi?ces jointes sont confidentiels et destin?s ? la personne ou aux personnes vis?e(s) ci-dessus. Si vous avez re?u cet e-mail par erreur, veuillez contacter imm?diatement l'exp?diteur et effacer le message de votre syst?me. Toute divulgation, copie ou distribution de cet e-mail est strictement interdite. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please contact the sender and delete the email from your system. If you are not the named addressee you should not disseminate, distribute or copy this email. -------------- next part -------------- An HTML attachment was scrubbed... URL: From inderpreet_arora at rediffmail.com Tue Jan 14 18:13:56 2014 From: inderpreet_arora at rediffmail.com (Inderpreet) Date: Tue, 14 Jan 2014 09:13:56 -0800 (PST) Subject: [Scilab-users] Lapack library error while using Xcos In-Reply-To: <1389005911.1724.14.camel@paros> References: <1388481831622-4028182.post@n3.nabble.com> <1389005911.1724.14.camel@paros> Message-ID: <1389719636357-4028321.post@n3.nabble.com> Hello, Sorry for the delayed response. PFA the Scicos diagram. Usually, we keep the block parameters as variables and run a Scilab script before the diagram simulation. However, here, I have hard coded the values for ease. Thanks. Sincerely, Inderpreet c_ss_cl_411.cos -- View this message in context: http://mailinglists.scilab.org/Lapack-library-error-while-using-Xcos-tp4028182p4028321.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From bagofbasura2 at gmail.com Tue Jan 14 22:52:05 2014 From: bagofbasura2 at gmail.com (RobertCrowley) Date: Tue, 14 Jan 2014 13:52:05 -0800 (PST) Subject: [Scilab-users] Slight problem with mprintf() command Message-ID: <1389736325441-4028323.post@n3.nabble.com> Hi all, This question might reveal my ignorance, but here I go anyway. I've been using the mprintf() command to output to the console, but when I use a command like this: mprintf("\n%5s,%16s,%17s\n","i","of x","%") I get an output like this: i, of x, % and the commas are throwing off my groove. Is there any way to get rid of the commas? Sometimes I need to output strings, like above, but sometimes I also need to output variables in a loop. Any ideas? Thanks. -- View this message in context: http://mailinglists.scilab.org/Slight-problem-with-mprintf-command-tp4028323.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ogemgm at gmail.com Tue Jan 14 23:05:46 2014 From: ogemgm at gmail.com (oscar.espejo) Date: Tue, 14 Jan 2014 14:05:46 -0800 (PST) Subject: [Scilab-users] Slight problem with mprintf() command In-Reply-To: <1389736325441-4028323.post@n3.nabble.com> References: <1389736325441-4028323.post@n3.nabble.com> Message-ID: <1389737146732-4028324.post@n3.nabble.com> Hi, in the form: mprintf("\n%5s %16s %17s\n","i","of x","%") Don't will print the commas (note that in the formatting sentences there are not any comma), In other hand, if you have for example: --> y = "hi" and then --> mprintf("\n%5s %16s %17s\n","i","of x",y) the result will be: i of x hi I hope the information be usefull to you -- View this message in context: http://mailinglists.scilab.org/Slight-problem-with-mprintf-command-tp4028323p4028324.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From eduardo.torrecillas at gmail.com Wed Jan 15 21:01:08 2014 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Wed, 15 Jan 2014 18:01:08 -0200 Subject: [Scilab-users] scilab-fortran issues Message-ID: Hello all, I am very used to dynamic linking scilab and Fortran, and call the external function by the "call" function in SciLab. Although, this is the first time I try to send string matrices as fortran arguments, and I can't get it working. Maybe any of you can please help? I want to pass a column-vector where each row contains a 4-char string. Example: ident=['STR1';'STR2';'STR3';...] Now the F90 code I'm trying: subroutine fhdg_dist(napt,ident,ret_val) implicit none INTEGER,INTENT(IN)::napt character(len=4),intent(in),dimension(napt,1)::ident integer,intent(out)::ret_val ret_val=0 end subroutine fhdg_dist the call statement: [ret_val]=call('fhdg_dist',napt,1,'i',ident,2,'c','out',[1,1],3,'i') So, even if I'm not trying to use the matrix data, when calling the external function with this call, I get "incompatible dimensions" message. Any clues, please? Regards. -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Thu Jan 16 21:35:33 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Thu, 16 Jan 2014 21:35:33 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D3B775.6000705@scilab-enterprises.com> References: <52D332DB.5030507@durietz.se> <52D3A0F4.4080400@laas.fr> <52D3B3E4.6010703@durietz.se> <52D3B52A.9080201@scilab-enterprises.com> <52D3B6D3.9060506@durietz.se> <52D3B775.6000705@scilab-enterprises.com> Message-ID: <52D84295.50707@durietz.se> Hi Calixte, I would rather not, because there is no other problem with the Linux driver and I remember other problems with the proprietary driver (besides that it is proprietary ...). And why is the figure OK if there is an error in the driver? It is only after the export that the error shows up! /Stefan On 2014-01-13 10:52, Calixte Denizet wrote: -------------------- > Weird... imho it is a problem with the driver of your GC. > Could you try to install proprietary driver please ? > > Regards > > Calixte > > On 13/01/2014 10:50, Stefan Du Rietz wrote: >> Hi Calixte, >> here you are! >> >> Regards /Stefan >> >> On 2014-01-13 10:43, Calixte Denizet wrote: >> -------------------- >>> Hi Stefan, >>> >>> Could you attach the guilty picture please ? >>> >>> Regards >>> >>> Calixte >>> >>> On 13/01/2014 10:37, Stefan Du Rietz wrote: >>>> On 2014-01-13 09:16, Antoine Monmayrant wrote: >>>> -------------------- >>>>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: >>>>>> Hi, >>>>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) >>>>>> from Xubuntu Linux, it has the y axis turned about 30 degrees >>>>>> clockwise and is divided in two parts. Has anybody else experienced >>>>>> that? >>>>>> >>>>>> Regards /Stefan >>>>>> _______________________________________________ >>>>>> users mailing list >>>>>> users at lists.scilab.org >>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>> Hi Stefan, >>>>> >>>>> Could you send us a small test script that produces the bogus >>>>> plot, so >>>>> we can give it a try? >>>>> Do you have a huge scaling factor between x and y? >>>>> Like mean(y)>>>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the inverse >>>>> of the y/x ratio). >>>>> There use to be a bug that produces this slant, but it is corrected >>>>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . >>>>> >>>>> Hope it helps, >>>>> >>>>> Antoine >>>>> _______________________________________________ >>>>> users mailing list >>>>> users at lists.scilab.org >>>>> http://lists.scilab.org/mailman/listinfo/users >>>>> >>>> Hi Antoine, >>>> there is nothing wrong with the plot, only with the exported file! >>>> And even that is OK when exported from Windows 7. >>>> >>>> x = [0:0.05*%pi:2*%pi]'; >>>> f = scf(); >>>> plot2d(x, sin(x)) >>>> xgrid() >>>> >>>> Now, from the figure menu: File > Export to ... > PNG (or any other) >>>> >>>> File > Vectorial export ... works OK. >>>> >>>> Regards /Stefan >>>> >>>> >>>> _______________________________________________ >>>> 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 > > > -- > Calixte Denizet > Software Development Engineer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > http://www.scilab-enterprises.com > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From amonmayr at laas.fr Thu Jan 16 23:13:45 2014 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Thu, 16 Jan 2014 23:13:45 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D84295.50707@durietz.se> Message-ID: <4172-52d85980-6f-244bca40@100765588> Le Jeudi 16 Janvier 2014 21.35 CET, Stefan Du Rietz a ?crit: > Hi Calixte, > I would rather not, because there is no other problem with the Linux > driver and I remember other problems with the proprietary driver > (besides that it is proprietary ...). And why is the figure OK if > there is an error in the driver? It is only after the export that the > error shows up! Hi Stefan, Random idea again (previous one was not helping you much): did you try to directly write your bitmap without plotting in a figure: driver('PNG'); xinit('mypngfile.png'); plot3d(); xend(); driver('X11'); Is the problem still there? Antoine > > /Stefan > > > On 2014-01-13 10:52, Calixte Denizet wrote: > -------------------- > > Weird... imho it is a problem with the driver of your GC. > > Could you try to install proprietary driver please ? > > > > Regards > > > > Calixte > > > > On 13/01/2014 10:50, Stefan Du Rietz wrote: > >> Hi Calixte, > >> here you are! > >> > >> Regards /Stefan > >> > >> On 2014-01-13 10:43, Calixte Denizet wrote: > >> -------------------- > >>> Hi Stefan, > >>> > >>> Could you attach the guilty picture please ? > >>> > >>> Regards > >>> > >>> Calixte > >>> > >>> On 13/01/2014 10:37, Stefan Du Rietz wrote: > >>>> On 2014-01-13 09:16, Antoine Monmayrant wrote: > >>>> -------------------- > >>>>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: > >>>>>> Hi, > >>>>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) > >>>>>> from Xubuntu Linux, it has the y axis turned about 30 degrees > >>>>>> clockwise and is divided in two parts. Has anybody else experienced > >>>>>> that? > >>>>>> > >>>>>> Regards /Stefan > >>>>>> _______________________________________________ > >>>>>> users mailing list > >>>>>> users at lists.scilab.org > >>>>>> http://lists.scilab.org/mailman/listinfo/users > >>>>> Hi Stefan, > >>>>> > >>>>> Could you send us a small test script that produces the bogus > >>>>> plot, so > >>>>> we can give it a try? > >>>>> Do you have a huge scaling factor between x and y? > >>>>> Like mean(y) >>>>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the inverse > >>>>> of the y/x ratio). > >>>>> There use to be a bug that produces this slant, but it is corrected > >>>>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . > >>>>> > >>>>> Hope it helps, > >>>>> > >>>>> Antoine > >>>>> _______________________________________________ > >>>>> users mailing list > >>>>> users at lists.scilab.org > >>>>> http://lists.scilab.org/mailman/listinfo/users > >>>>> > >>>> Hi Antoine, > >>>> there is nothing wrong with the plot, only with the exported file! > >>>> And even that is OK when exported from Windows 7. > >>>> > >>>> x = [0:0.05*%pi:2*%pi]'; > >>>> f = scf(); > >>>> plot2d(x, sin(x)) > >>>> xgrid() > >>>> > >>>> Now, from the figure menu: File > Export to ... > PNG (or any other) > >>>> > >>>> File > Vectorial export ... works OK. > >>>> > >>>> Regards /Stefan > >>>> > >>>> > >>>> _______________________________________________ > >>>> 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 > > > > > > -- > > Calixte Denizet > > Software Development Engineer > > ----------------------------------------------------------- > > Scilab Enterprises > > 143bis rue Yves Le Coz - 78000 Versailles, France > > http://www.scilab-enterprises.com > > > > > > > > _______________________________________________ > > 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 From sdr at durietz.se Fri Jan 17 00:20:35 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Fri, 17 Jan 2014 00:20:35 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <4172-52d85980-6f-244bca40@100765588> References: <4172-52d85980-6f-244bca40@100765588> Message-ID: <52D86943.1020501@durietz.se> On 2014-01-16 23:13, Antoine Monmayrant wrote: -------------------- > > Le Jeudi 16 Janvier 2014 21.35 CET, Stefan Du Rietz a ?crit: > >> Hi Calixte, >> I would rather not, because there is no other problem with the Linux >> driver and I remember other problems with the proprietary driver >> (besides that it is proprietary ...). And why is the figure OK if >> there is an error in the driver? It is only after the export that the >> error shows up! > > Hi Stefan, > > Random idea again (previous one was not helping you much): did you try to directly write your bitmap without plotting in a figure: > > driver('PNG'); > xinit('mypngfile.png'); > plot3d(); > xend(); > driver('X11'); > > Is the problem still there? > > Antoine >> >> /Stefan >> >> Hi Antoine, are we supposed to reply above as earlier or not ;-( When I did as you proposed: x = [0:0.05*%pi:2*%pi]'; f = scf(1); driver('PNG'); xinit('gridtest.png'); plot2d(x, sin(x)) xgrid() xend(); driver('X11'); it was OK! Regards /Stefan >> On 2014-01-13 10:52, Calixte Denizet wrote: >> -------------------- >>> Weird... imho it is a problem with the driver of your GC. >>> Could you try to install proprietary driver please ? >>> >>> Regards >>> >>> Calixte >>> >>> On 13/01/2014 10:50, Stefan Du Rietz wrote: >>>> Hi Calixte, >>>> here you are! >>>> >>>> Regards /Stefan >>>> >>>> On 2014-01-13 10:43, Calixte Denizet wrote: >>>> -------------------- >>>>> Hi Stefan, >>>>> >>>>> Could you attach the guilty picture please ? >>>>> >>>>> Regards >>>>> >>>>> Calixte >>>>> >>>>> On 13/01/2014 10:37, Stefan Du Rietz wrote: >>>>>> On 2014-01-13 09:16, Antoine Monmayrant wrote: >>>>>> -------------------- >>>>>>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: >>>>>>>> Hi, >>>>>>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, BMP) >>>>>>>> from Xubuntu Linux, it has the y axis turned about 30 degrees >>>>>>>> clockwise and is divided in two parts. Has anybody else experienced >>>>>>>> that? >>>>>>>> >>>>>>>> Regards /Stefan >>>>>>>> _______________________________________________ >>>>>>>> users mailing list >>>>>>>> users at lists.scilab.org >>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>> Hi Stefan, >>>>>>> >>>>>>> Could you send us a small test script that produces the bogus >>>>>>> plot, so >>>>>>> we can give it a try? >>>>>>> Do you have a huge scaling factor between x and y? >>>>>>> Like mean(y)>>>>>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the inverse >>>>>>> of the y/x ratio). >>>>>>> There use to be a bug that produces this slant, but it is corrected >>>>>>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . >>>>>>> >>>>>>> Hope it helps, >>>>>>> >>>>>>> Antoine >>>>>>> _______________________________________________ >>>>>>> users mailing list >>>>>>> users at lists.scilab.org >>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>> >>>>>> Hi Antoine, >>>>>> there is nothing wrong with the plot, only with the exported file! >>>>>> And even that is OK when exported from Windows 7. >>>>>> >>>>>> x = [0:0.05*%pi:2*%pi]'; >>>>>> f = scf(); >>>>>> plot2d(x, sin(x)) >>>>>> xgrid() >>>>>> >>>>>> Now, from the figure menu: File > Export to ... > PNG (or any other) >>>>>> >>>>>> File > Vectorial export ... works OK. >>>>>> >>>>>> Regards /Stefan >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>> >>> >>> -- >>> Calixte Denizet >>> Software Development Engineer >>> ----------------------------------------------------------- >>> Scilab Enterprises >>> 143bis rue Yves Le Coz - 78000 Versailles, France >>> http://www.scilab-enterprises.com >>> >>> >>> >>> _______________________________________________ >>> 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 > From sdr at durietz.se Fri Jan 17 00:33:24 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Fri, 17 Jan 2014 00:33:24 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D86943.1020501@durietz.se> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> Message-ID: <52D86C44.4050801@durietz.se> On 2014-01-17 00:20, Stefan Du Rietz wrote: -------------------- > On 2014-01-16 23:13, Antoine Monmayrant wrote: > -------------------- >> >> Le Jeudi 16 Janvier 2014 21.35 CET, Stefan Du Rietz >> a ?crit: >> >>> Hi Calixte, >>> I would rather not, because there is no other problem with the Linux >>> driver and I remember other problems with the proprietary driver >>> (besides that it is proprietary ...). And why is the figure OK if >>> there is an error in the driver? It is only after the export that the >>> error shows up! >> >> Hi Stefan, >> >> Random idea again (previous one was not helping you much): did you >> try to directly write your bitmap without plotting in a figure: >> >> driver('PNG'); >> xinit('mypngfile.png'); >> plot3d(); >> xend(); >> driver('X11'); >> >> Is the problem still there? >> >> Antoine >>> >>> /Stefan >>> >>> > Hi Antoine, > are we supposed to reply above as earlier or not ;-( > > When I did as you proposed: > > x = [0:0.05*%pi:2*%pi]'; > f = scf(1); > driver('PNG'); > xinit('gridtest.png'); > plot2d(x, sin(x)) > xgrid() > xend(); > driver('X11'); > > it was OK! > > Regards /Stefan > And, of course, thank you! Regards /Stefan > >>> On 2014-01-13 10:52, Calixte Denizet wrote: >>> -------------------- >>>> Weird... imho it is a problem with the driver of your GC. >>>> Could you try to install proprietary driver please ? >>>> >>>> Regards >>>> >>>> Calixte >>>> >>>> On 13/01/2014 10:50, Stefan Du Rietz wrote: >>>>> Hi Calixte, >>>>> here you are! >>>>> >>>>> Regards /Stefan >>>>> >>>>> On 2014-01-13 10:43, Calixte Denizet wrote: >>>>> -------------------- >>>>>> Hi Stefan, >>>>>> >>>>>> Could you attach the guilty picture please ? >>>>>> >>>>>> Regards >>>>>> >>>>>> Calixte >>>>>> >>>>>> On 13/01/2014 10:37, Stefan Du Rietz wrote: >>>>>>> On 2014-01-13 09:16, Antoine Monmayrant wrote: >>>>>>> -------------------- >>>>>>>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: >>>>>>>>> Hi, >>>>>>>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, >>>>>>>>> BMP) >>>>>>>>> from Xubuntu Linux, it has the y axis turned about 30 degrees >>>>>>>>> clockwise and is divided in two parts. Has anybody else >>>>>>>>> experienced >>>>>>>>> that? >>>>>>>>> >>>>>>>>> Regards /Stefan >>>>>>>>> _______________________________________________ >>>>>>>>> users mailing list >>>>>>>>> users at lists.scilab.org >>>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>>> Hi Stefan, >>>>>>>> >>>>>>>> Could you send us a small test script that produces the bogus >>>>>>>> plot, so >>>>>>>> we can give it a try? >>>>>>>> Do you have a huge scaling factor between x and y? >>>>>>>> Like mean(y)>>>>>>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the >>>>>>>> inverse >>>>>>>> of the y/x ratio). >>>>>>>> There use to be a bug that produces this slant, but it is >>>>>>>> corrected >>>>>>>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . >>>>>>>> >>>>>>>> Hope it helps, >>>>>>>> >>>>>>>> Antoine >>>>>>>> _______________________________________________ >>>>>>>> users mailing list >>>>>>>> users at lists.scilab.org >>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>>> >>>>>>> Hi Antoine, >>>>>>> there is nothing wrong with the plot, only with the exported file! >>>>>>> And even that is OK when exported from Windows 7. >>>>>>> >>>>>>> x = [0:0.05*%pi:2*%pi]'; >>>>>>> f = scf(); >>>>>>> plot2d(x, sin(x)) >>>>>>> xgrid() >>>>>>> >>>>>>> Now, from the figure menu: File > Export to ... > PNG (or any >>>>>>> other) >>>>>>> >>>>>>> File > Vectorial export ... works OK. >>>>>>> >>>>>>> Regards /Stefan >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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 >>>> >>>> >>>> -- >>>> Calixte Denizet >>>> Software Development Engineer >>>> ----------------------------------------------------------- >>>> Scilab Enterprises >>>> 143bis rue Yves Le Coz - 78000 Versailles, France >>>> http://www.scilab-enterprises.com >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 > From sdr at durietz.se Fri Jan 17 00:42:39 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Fri, 17 Jan 2014 00:42:39 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D86C44.4050801@durietz.se> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> <52D86C44.4050801@durietz.se> Message-ID: <52D86E6F.70008@durietz.se> On 2014-01-17 00:33, Stefan Du Rietz wrote: -------------------- > On 2014-01-17 00:20, Stefan Du Rietz wrote: > -------------------- >> On 2014-01-16 23:13, Antoine Monmayrant wrote: >> -------------------- >>> >>> Le Jeudi 16 Janvier 2014 21.35 CET, Stefan Du Rietz >>> a ?crit: >>> >>>> Hi Calixte, >>>> I would rather not, because there is no other problem with the Linux >>>> driver and I remember other problems with the proprietary driver >>>> (besides that it is proprietary ...). And why is the figure OK if >>>> there is an error in the driver? It is only after the export that the >>>> error shows up! >>> >>> Hi Stefan, >>> >>> Random idea again (previous one was not helping you much): did you >>> try to directly write your bitmap without plotting in a figure: >>> >>> driver('PNG'); >>> xinit('mypngfile.png'); >>> plot3d(); >>> xend(); >>> driver('X11'); >>> >>> Is the problem still there? >>> >>> Antoine >>>> >>>> /Stefan >>>> >>>> >> Hi Antoine, >> are we supposed to reply above as earlier or not ;-( >> >> When I did as you proposed: >> >> x = [0:0.05*%pi:2*%pi]'; >> f = scf(1); >> driver('PNG'); >> xinit('gridtest.png'); >> plot2d(x, sin(x)) >> xgrid() >> xend(); >> driver('X11'); >> >> it was OK! >> >> Regards /Stefan >> > And, of course, thank you! > > Regards /Stefan > So, Calixte, it was not the graphics driver, was it? Shall I report a bug? Regards /Stefan >> >>>> On 2014-01-13 10:52, Calixte Denizet wrote: >>>> -------------------- >>>>> Weird... imho it is a problem with the driver of your GC. >>>>> Could you try to install proprietary driver please ? >>>>> >>>>> Regards >>>>> >>>>> Calixte >>>>> >>>>> On 13/01/2014 10:50, Stefan Du Rietz wrote: >>>>>> Hi Calixte, >>>>>> here you are! >>>>>> >>>>>> Regards /Stefan >>>>>> >>>>>> On 2014-01-13 10:43, Calixte Denizet wrote: >>>>>> -------------------- >>>>>>> Hi Stefan, >>>>>>> >>>>>>> Could you attach the guilty picture please ? >>>>>>> >>>>>>> Regards >>>>>>> >>>>>>> Calixte >>>>>>> >>>>>>> On 13/01/2014 10:37, Stefan Du Rietz wrote: >>>>>>>> On 2014-01-13 09:16, Antoine Monmayrant wrote: >>>>>>>> -------------------- >>>>>>>>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: >>>>>>>>>> Hi, >>>>>>>>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, >>>>>>>>>> BMP) >>>>>>>>>> from Xubuntu Linux, it has the y axis turned about 30 degrees >>>>>>>>>> clockwise and is divided in two parts. Has anybody else >>>>>>>>>> experienced >>>>>>>>>> that? >>>>>>>>>> >>>>>>>>>> Regards /Stefan >>>>>>>>>> _______________________________________________ >>>>>>>>>> users mailing list >>>>>>>>>> users at lists.scilab.org >>>>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>>>> Hi Stefan, >>>>>>>>> >>>>>>>>> Could you send us a small test script that produces the bogus >>>>>>>>> plot, so >>>>>>>>> we can give it a try? >>>>>>>>> Do you have a huge scaling factor between x and y? >>>>>>>>> Like mean(y)>>>>>>>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the >>>>>>>>> inverse >>>>>>>>> of the y/x ratio). >>>>>>>>> There use to be a bug that produces this slant, but it is >>>>>>>>> corrected >>>>>>>>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . >>>>>>>>> >>>>>>>>> Hope it helps, >>>>>>>>> >>>>>>>>> Antoine >>>>>>>>> _______________________________________________ >>>>>>>>> users mailing list >>>>>>>>> users at lists.scilab.org >>>>>>>>> http://lists.scilab.org/mailman/listinfo/users >>>>>>>>> >>>>>>>> Hi Antoine, >>>>>>>> there is nothing wrong with the plot, only with the exported >>>>>>>> file! >>>>>>>> And even that is OK when exported from Windows 7. >>>>>>>> >>>>>>>> x = [0:0.05*%pi:2*%pi]'; >>>>>>>> f = scf(); >>>>>>>> plot2d(x, sin(x)) >>>>>>>> xgrid() >>>>>>>> >>>>>>>> Now, from the figure menu: File > Export to ... > PNG (or any >>>>>>>> other) >>>>>>>> >>>>>>>> File > Vectorial export ... works OK. >>>>>>>> >>>>>>>> Regards /Stefan >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> 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 >>>>> >>>>> >>>>> -- >>>>> Calixte Denizet >>>>> Software Development Engineer >>>>> ----------------------------------------------------------- >>>>> Scilab Enterprises >>>>> 143bis rue Yves Le Coz - 78000 Versailles, France >>>>> http://www.scilab-enterprises.com >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >> > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From amonmayr at laas.fr Fri Jan 17 09:16:57 2014 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Fri, 17 Jan 2014 09:16:57 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D86E6F.70008@durietz.se> Message-ID: <5503-52d8e700-ad-72b94d80@25863488> Le Vendredi 17 Janvier 2014 00.42 CET, Stefan Du Rietz a ?crit: > On 2014-01-17 00:33, Stefan Du Rietz wrote: > -------------------- > > On 2014-01-17 00:20, Stefan Du Rietz wrote: > > -------------------- > >> On 2014-01-16 23:13, Antoine Monmayrant wrote: > >> -------------------- > >>> > >>> Le Jeudi 16 Janvier 2014 21.35 CET, Stefan Du Rietz > >>> a ?crit: > >>> > >>>> Hi Calixte, > >>>> I would rather not, because there is no other problem with the Linux > >>>> driver and I remember other problems with the proprietary driver > >>>> (besides that it is proprietary ...). And why is the figure OK if > >>>> there is an error in the driver? It is only after the export that the > >>>> error shows up! > >>> > >>> Hi Stefan, > >>> > >>> Random idea again (previous one was not helping you much): did you > >>> try to directly write your bitmap without plotting in a figure: > >>> > >>> driver('PNG'); > >>> xinit('mypngfile.png'); > >>> plot3d(); > >>> xend(); > >>> driver('X11'); > >>> > >>> Is the problem still there? > >>> > >>> Antoine > >>>> > >>>> /Stefan > >>>> > >>>> > >> Hi Antoine, > >> are we supposed to reply above as earlier or not ;-( > >> > >> When I did as you proposed: > >> > >> x = [0:0.05*%pi:2*%pi]'; > >> f = scf(1); > >> driver('PNG'); > >> xinit('gridtest.png'); > >> plot2d(x, sin(x)) > >> xgrid() > >> xend(); > >> driver('X11'); > >> > >> it was OK! > >> > >> Regards /Stefan > >> > > And, of course, thank you! > > > > Regards /Stefan > > > So, Calixte, it was not the graphics driver, was it? Shall I report a bug? Well, I think this is a graphics driver issue (but I am clearly not as knowledgeable as Calixte when it comes to Scilab internal stuff). Last time we used this approach (issue with plots in figure / everything fine when plotted to file directly) to determine the bug was in the graphic driver, not really in Scilab. Cheers, Antoine > > Regards /Stefan > > >> > >>>> On 2014-01-13 10:52, Calixte Denizet wrote: > >>>> -------------------- > >>>>> Weird... imho it is a problem with the driver of your GC. > >>>>> Could you try to install proprietary driver please ? > >>>>> > >>>>> Regards > >>>>> > >>>>> Calixte > >>>>> > >>>>> On 13/01/2014 10:50, Stefan Du Rietz wrote: > >>>>>> Hi Calixte, > >>>>>> here you are! > >>>>>> > >>>>>> Regards /Stefan > >>>>>> > >>>>>> On 2014-01-13 10:43, Calixte Denizet wrote: > >>>>>> -------------------- > >>>>>>> Hi Stefan, > >>>>>>> > >>>>>>> Could you attach the guilty picture please ? > >>>>>>> > >>>>>>> Regards > >>>>>>> > >>>>>>> Calixte > >>>>>>> > >>>>>>> On 13/01/2014 10:37, Stefan Du Rietz wrote: > >>>>>>>> On 2014-01-13 09:16, Antoine Monmayrant wrote: > >>>>>>>> -------------------- > >>>>>>>>> On 01/13/2014 01:27 AM, Stefan Du Rietz wrote: > >>>>>>>>>> Hi, > >>>>>>>>>> when I export a figure to a bitmap file (PNG, JPG, GIF, PPM, > >>>>>>>>>> BMP) > >>>>>>>>>> from Xubuntu Linux, it has the y axis turned about 30 degrees > >>>>>>>>>> clockwise and is divided in two parts. Has anybody else > >>>>>>>>>> experienced > >>>>>>>>>> that? > >>>>>>>>>> > >>>>>>>>>> Regards /Stefan > >>>>>>>>>> _______________________________________________ > >>>>>>>>>> users mailing list > >>>>>>>>>> users at lists.scilab.org > >>>>>>>>>> http://lists.scilab.org/mailman/listinfo/users > >>>>>>>>> Hi Stefan, > >>>>>>>>> > >>>>>>>>> Could you send us a small test script that produces the bogus > >>>>>>>>> plot, so > >>>>>>>>> we can give it a try? > >>>>>>>>> Do you have a huge scaling factor between x and y? > >>>>>>>>> Like mean(y) >>>>>>>>> If it is the case, try plot(x,y*10^4) (replacing 10^4 be the > >>>>>>>>> inverse > >>>>>>>>> of the y/x ratio). > >>>>>>>>> There use to be a bug that produces this slant, but it is > >>>>>>>>> corrected > >>>>>>>>> now: see http://bugzilla.scilab.org/show_bug.cgi?id=11399 . > >>>>>>>>> > >>>>>>>>> Hope it helps, > >>>>>>>>> > >>>>>>>>> Antoine > >>>>>>>>> _______________________________________________ > >>>>>>>>> users mailing list > >>>>>>>>> users at lists.scilab.org > >>>>>>>>> http://lists.scilab.org/mailman/listinfo/users > >>>>>>>>> > >>>>>>>> Hi Antoine, > >>>>>>>> there is nothing wrong with the plot, only with the exported > >>>>>>>> file! > >>>>>>>> And even that is OK when exported from Windows 7. > >>>>>>>> > >>>>>>>> x = [0:0.05*%pi:2*%pi]'; > >>>>>>>> f = scf(); > >>>>>>>> plot2d(x, sin(x)) > >>>>>>>> xgrid() > >>>>>>>> > >>>>>>>> Now, from the figure menu: File > Export to ... > PNG (or any > >>>>>>>> other) > >>>>>>>> > >>>>>>>> File > Vectorial export ... works OK. > >>>>>>>> > >>>>>>>> Regards /Stefan > >>>>>>>> > >>>>>>>> > >>>>>>>> _______________________________________________ > >>>>>>>> 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 > >>>>> > >>>>> > >>>>> -- > >>>>> Calixte Denizet > >>>>> Software Development Engineer > >>>>> ----------------------------------------------------------- > >>>>> Scilab Enterprises > >>>>> 143bis rue Yves Le Coz - 78000 Versailles, France > >>>>> http://www.scilab-enterprises.com > >>>>> > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> 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 > >> > > > > > > _______________________________________________ > > 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 > From Christophe.Dang at sidel.com Fri Jan 17 09:29:45 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 17 Jan 2014 09:29:45 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <5503-52d8e700-ad-72b94d80@25863488> References: <52D86E6F.70008@durietz.se> <5503-52d8e700-ad-72b94d80@25863488> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F32607E833@301EX00100.sidel.com> Hello, > De la part de Antoine Monmayrant > Envoy? : vendredi 17 janvier 2014 09:17 > > Last time we used this approach (issue with plots in figure / > everything fine when plotted to file directly) to determine the bug > was in the graphic driver, not really in Scilab. I used to work with the development team of a small software editor, and we also had such surprises, even sometimes with the printer driver (the "print preview" was OK and not the printing, whereas the "print preview" is also generated by the driver). Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From kushwah.2020 at gmail.com Wed Jan 15 18:26:34 2014 From: kushwah.2020 at gmail.com (himanshu kushwah) Date: Wed, 15 Jan 2014 22:56:34 +0530 Subject: [Scilab-users] Basic practical using scilab. Message-ID: Hello all, I hereby want to inform you that i am very new to scilab operation.I want to solve following problems using scilab,can anybody help me out to do these practical using scilab. Lab. Practical:-- 1. Find the convergence of a given series. 2. Find the divergence of a given series. 3. Solve the given matrix using Gauss Elimination method. 4. Solve the given matrix using Gauss ? Seidel method. 5. Solve the given matrix using L-U decomposition method. 6. Solve the double integral using numerical methods. 7. Find curl of a given vector. 8. Find divergence of a given vector. 9. Find surface area of a plane using Stoke?s theorem. 10. Solve problems using Gauss divergence theorem. Regards, Himanshu Kushwah -------------- next part -------------- An HTML attachment was scrubbed... URL: From dominiek.goemaere at student.vives.be Thu Jan 16 15:11:10 2014 From: dominiek.goemaere at student.vives.be (Dominiek Goemaere) Date: Thu, 16 Jan 2014 14:11:10 +0000 Subject: [Scilab-users] i have a problem with scilab. Message-ID: Hello, I?m from belguim and we need scilab for school but I have a problem with scilab when I start it up. I have already reset my computer and reinstall Scilab but there is no change. This is the error: Startup execution: loading initial environment %val=[?000sinternalslib; !--error 2 Invalid factor. in execstr instruction called by : at line 35 of function evstr called by : at line 908 of function %_sodload called by : at line 6 of function atomsSystemInit called by : atomsSystemInit(); at line 113 of exec file called by : exec('SCI/etc/scilab.start',-1);; What can I do to make that scilab run again on my computer Thanks that you will help me En hopely I hear you soon Dominiek Goemaere Belguim -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Jan 17 13:11:34 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Fri, 17 Jan 2014 13:11:34 +0100 Subject: [Scilab-users] Basic practical using scilab. In-Reply-To: References: Message-ID: <3B5FFC67498DFF49AE7271A584867D16F32607ED62@301EX00100.sidel.com> Hello, for a few thingss, you should look at the following help topics: > De la part de himanshu kushwah > Envoy? : mercredi 15 janvier 2014 18:27 > > 3. Solve the given matrix using Gauss Elimination method. > 4. Solve the given matrix using Gauss - Seidel method. > 5. Solve the given matrix using L-U decomposition method. "linear equations" http://help.scilab.org/docs/5.4.1/en_US/section_3c7b90d9c6de8327dcd78c9f2184ec51.html e.g. inv(), lu() also look at the linalg ATOMS package http://atoms.scilab.org/toolboxes/linalg > 6. Solve the double integral using numerical methods. "Differential calculus, Integration" http://help.scilab.org/docs/5.4.1/en_US/section_647d3aa8a35d1f0c755bed6b756f36c0.html e.g. int2d() For some others, you might have to program it yourself or find a dedicated package. Hope this helps, regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From communication at scilab-enterprises.com Fri Jan 17 15:29:06 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Fri, 17 Jan 2014 15:29:06 +0100 Subject: [Scilab-users] ScilabTEC 2014 Call for papers EXTENDED Message-ID: <52D93E32.1060604@scilab-enterprises.com> Dear Scilab Users, The closing date for submissions to the call for papers for ScilabTEC 2014 conference is extended until January 31, 2014. As a reminder, ScilabTEC 2014 will take place on May 15 and 16, 2014 in Paris, France. Abstracts of 400 words should be sent by email to scilabtec at scilab-enterprises.com before January 31, 2014, on a topic related to the objectives of the conference, ie the use of Scilab or Xcos in the key scientific domains of numerical computation and simulation. For more information, visit the conference website http://scilabtec.com/ Wishing you a good weekend Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Fri Jan 17 16:31:45 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 17 Jan 2014 16:31:45 +0100 Subject: [Scilab-users] Export Scilab matrices to latex In-Reply-To: <52D9479E.7050802@centre-cired.fr> References: <52D9479E.7050802@centre-cired.fr> Message-ID: <52D94CE1.4020407@centre-cired.fr> Dear all, I just contributed some (quite undocumented) functions to export matrices to latex. http://fileexchange.scilab.org/toolboxes/297000 Let me know whether they work/are useful for you. Feel free to expand them/document them, contribute your own better functions. Cheers Adrien -- Adrien Vogt-Schilb PhD Student (Cired) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: m2latex_thumb.png Type: image/png Size: 7981 bytes Desc: not available URL: From sdr at durietz.se Sun Jan 19 20:12:27 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Sun, 19 Jan 2014 20:12:27 +0100 Subject: [Scilab-users] Transparent rectangle? Message-ID: <52DC239B.6090507@durietz.se> Hi all, is it possible to draw a filled coloured rectangle after lines so that those lines can still be seen trough it? Regards Stefan From amonmayr at laas.fr Sun Jan 19 21:15:46 2014 From: amonmayr at laas.fr (Antoine Monmayrant) Date: Sun, 19 Jan 2014 21:15:46 +0100 Subject: [Scilab-users] =?utf-8?q?Transparent_rectangle=3F?= In-Reply-To: <52DC239B.6090507@durietz.se> Message-ID: <278b-52dc3280-81-18cab280@33511217> Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz a ?crit: > Hi all, > is it possible to draw a filled coloured rectangle after lines so that > those lines can still be seen trough it? Hi Stefan, I am not sure what you are asking for: - do you ask for transparency? (if yes, bad luck, no transparency for the moment, but things could change, hein Calixte?) - do you want to get the lines atop the rectangle? Why not plotting them afterwards or rearrange the order later on. If you can elaborate a bit more, we might get a better idea of what you want to do. Antoine > > Regards > Stefan > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From sdr at durietz.se Sun Jan 19 21:28:24 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Sun, 19 Jan 2014 21:28:24 +0100 Subject: [Scilab-users] Transparent rectangle? In-Reply-To: <278b-52dc3280-81-18cab280@33511217> References: <278b-52dc3280-81-18cab280@33511217> Message-ID: <52DC3568.60405@durietz.se> On 2014-01-19 21:15, Antoine Monmayrant wrote: -------------------- > > Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz a ?crit: > >> Hi all, >> is it possible to draw a filled coloured rectangle after lines so that >> those lines can still be seen trough it? > > Hi Stefan, > > I am not sure what you are asking for: > - do you ask for transparency? (if yes, bad luck, no transparency for the moment, but things could change, hein Calixte?) > - do you want to get the lines atop the rectangle? Why not plotting them afterwards or rearrange the order later on. > > If you can elaborate a bit more, we might get a better idea of what you want to do. > Hi Antoine, I understand that I could draw the lines after the coloured rectangle to get them visible, but I cannot do that. So, I need the rectangle to be transparent. Stefan > Antoine > >> >> Regards >> Stefan >> _______________________________________________ >> 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 > From sdr at durietz.se Sun Jan 19 21:31:42 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Sun, 19 Jan 2014 21:31:42 +0100 Subject: [Scilab-users] Transparent rectangle? In-Reply-To: <52DC3568.60405@durietz.se> References: <278b-52dc3280-81-18cab280@33511217> <52DC3568.60405@durietz.se> Message-ID: <52DC362E.5090306@durietz.se> On 2014-01-19 21:28, Stefan Du Rietz wrote: -------------------- > On 2014-01-19 21:15, Antoine Monmayrant wrote: > -------------------- >> >> Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz >> a ?crit: >> >>> Hi all, >>> is it possible to draw a filled coloured rectangle after lines so that >>> those lines can still be seen trough it? >> >> Hi Stefan, >> >> I am not sure what you are asking for: >> - do you ask for transparency? (if yes, bad luck, no transparency >> for the moment, but things could change, hein Calixte?) >> - do you want to get the lines atop the rectangle? Why not plotting >> them afterwards or rearrange the order later on. >> >> If you can elaborate a bit more, we might get a better idea of what >> you want to do. >> > Hi Antoine, > I understand that I could draw the lines after the coloured rectangle > to get them visible, but I cannot do that. So, I need the rectangle to > be transparent. > What do you mean by "rearrange the order"? > Stefan > >> Antoine >> >>> >>> Regards >>> Stefan >>> _______________________________________________ >>> 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 > From cfuttrup at gmail.com Mon Jan 20 01:56:06 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Mon, 20 Jan 2014 01:56:06 +0100 Subject: [Scilab-users] Transparent rectangle? In-Reply-To: <52DC362E.5090306@durietz.se> References: <278b-52dc3280-81-18cab280@33511217> <52DC3568.60405@durietz.se> <52DC362E.5090306@durietz.se> Message-ID: <52DC7426.3020501@gmail.com> On 1/19/2014 21:31, Stefan Du Rietz wrote: > On 2014-01-19 21:28, Stefan Du Rietz wrote: > -------------------- >> On 2014-01-19 21:15, Antoine Monmayrant wrote: >> -------------------- >>> >>> Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz >>> a ?crit: >>> >>>> Hi all, >>>> is it possible to draw a filled coloured rectangle after lines so that >>>> those lines can still be seen trough it? >>> >>> Hi Stefan, >>> >>> I am not sure what you are asking for: >>> - do you ask for transparency? (if yes, bad luck, no transparency >>> for the moment, but things could change, hein Calixte?) >>> - do you want to get the lines atop the rectangle? Why not plotting >>> them afterwards or rearrange the order later on. >>> >>> If you can elaborate a bit more, we might get a better idea of what >>> you want to do. >>> >> Hi Antoine, >> I understand that I could draw the lines after the coloured rectangle >> to get them visible, but I cannot do that. So, I need the rectangle to >> be transparent. >> > What do you mean by "rearrange the order"? Pardon, but today you you print the line first. Later you print the rectangle (box). Since colors are solid, box color covers the line. If you somehow can find a way to rearrange your source-code so that you print the box first, then later print the line, then line will be visible. Alternatively if you print line, then print box, then print the line again - second line print will be visible through the box area. /Claus > >> Stefan >> >>> Antoine >>> >>>> >>>> Regards >>>> Stefan >>>> _______________________________________________ >>>> 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 > --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From vogt at centre-cired.fr Fri Jan 17 16:09:18 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Fri, 17 Jan 2014 16:09:18 +0100 Subject: [Scilab-users] Export Scilab matrices to latex Message-ID: <52D9479E.7050802@centre-cired.fr> Dear all, I just contributed some (quite undocumented) functions to export matrices to latex. http://fileexchange.scilab.org/toolboxes/297000 Let me know whether they work/are usefull for you. Feel free to expand them/document them, contribute your own better functions. Cheers Adrien http://fileexchange.scilab.org/images/toolboxes/0004125/m2latex.png -- Adrien Vogt-Schilb PhD Student (Cired) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: m2latex.png Type: image/png Size: 172823 bytes Desc: not available URL: From Serge.Steer at inria.fr Mon Jan 20 11:04:33 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 20 Jan 2014 11:04:33 +0100 Subject: [Scilab-users] Transparent rectangle? In-Reply-To: <52DC362E.5090306@durietz.se> References: <278b-52dc3280-81-18cab280@33511217> <52DC3568.60405@durietz.se> <52DC362E.5090306@durietz.se> Message-ID: <52DCF4B1.3050208@inria.fr> Hi Antoine, >> I understand that I could draw the lines after the coloured rectangle >> to get them visible, but I cannot do that. So, I need the rectangle to >> be transparent. >> > What do you mean by "rearrange the order"? > Here is an example clf; xpoly([0 1],[0,1]);p=gce(); xfrect([0.2 0.3 0.2 0.2]);r=gce();r.background=5; swap_handles(p,r) Serge From paul.bignier at scilab-enterprises.com Mon Jan 20 11:23:53 2014 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Mon, 20 Jan 2014 11:23:53 +0100 Subject: [Scilab-users] scilab-fortran issues In-Reply-To: References: Message-ID: <52DCF939.2060702@scilab-enterprises.com> Hello Eduardo, The call() primitive is not (yet?) suited for string matrices, because there is a confusion about the "size" of it: right now, the gateway detects the size of a scalar string, but when it is a matrix, each element can have a proper size (buffer) and there is also the matrix size itself. To avoid this confusion, the gateway only allows scalar strings, so the "size" of the argument actually represents its length (for instance, ident="STR1" will be detected as having a 4x1 size). This is documented in the help page , the arguments can be "real matrices" or [scalar] "strings". So my only suggestion at the moment is to pass ident as the concatenation of its elements, and to split it (or iterate on its length) in the Fortran routine. ident = "STR1"+"STR2"+"STR3"+... Hope this helps, otherwise feel free to report a bug on http://bugzilla.scilab.org/ Regards, Paul On 01/15/2014 09:01 PM, Eduardo Torrecillas wrote: > Hello all, > > I am very used to dynamic linking scilab and Fortran, and call the > external function by the "call" function in SciLab. > > Although, this is the first time I try to send string matrices as > fortran arguments, and I can't get it working. Maybe any of you can > please help? > > I want to pass a column-vector where each row contains a 4-char > string. Example: > > ident=['STR1';'STR2';'STR3';...] > > Now the F90 code I'm trying: > > subroutine fhdg_dist(napt,ident,ret_val) > implicit none > INTEGER,INTENT(IN)::napt > character(len=4),intent(in),dimension(napt,1)::ident > integer,intent(out)::ret_val > > ret_val=0 > > end subroutine fhdg_dist > > > the call statement: > > [ret_val]=call('fhdg_dist',napt,1,'i',ident,2,'c','out',[1,1],3,'i') > > So, even if I'm not trying to use the matrix data, when calling the > external function with this call, I get "incompatible dimensions" message. > > Any clues, please? > > Regards. > > > -- > Eduardo Torrecillas > AER-09 > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at scilab-enterprises.com Mon Jan 20 12:00:45 2014 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Mon, 20 Jan 2014 12:00:45 +0100 Subject: [Scilab-users] Transparent rectangle? In-Reply-To: <52DC239B.6090507@durietz.se> References: <52DC239B.6090507@durietz.se> Message-ID: <52DD01DD.8010104@scilab-enterprises.com> Hi Stefan, Yes it is possible: plot([1:2],[3:4;5:6;7:8;9:10]); Matplot1(uint32(65408), [1 3 2 10]) 65408=255*256+128, in hex notation 65408 is x0000FF80 (so it's a semi-transparent blue) When Matplot first argument is uint32, data are considered to be in format RGBA, there are more information at image_type entry: http://help.scilab.org/docs/5.5.0-beta-1/en_US/Matplot_properties.html Best regards Calixte On 19/01/2014 20:12, Stefan Du Rietz wrote: > Hi all, > is it possible to draw a filled coloured rectangle after lines so that > those lines can still be seen trough it? > > Regards > Stefan > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at scilab-enterprises.com Mon Jan 20 16:15:37 2014 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Mon, 20 Jan 2014 16:15:37 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52D86E6F.70008@durietz.se> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> <52D86C44.4050801@durietz.se> <52D86E6F.70008@durietz.se> Message-ID: <52DD3D99.8010805@scilab-enterprises.com> Hi Stefan, Few comments: i) driver(...);xinit(...);...xend(); implies a vectorial export: all the scene is completly drawn vectorialy (so the graphic card driver is not implied in the draw) ii) xs2png(0,...): a memory dump is done and the bitmap is converted into PNG. The GC driver is called to retrieve the data and it seems that this kind of bug is typical to Ubuntu with free driver... the only workaround I know (for the moment ;)) is to switch to the proprietary driver. Calixte On 17/01/2014 00:42, Stefan Du Rietz wrote: >>> Hi Antoine, >>> are we supposed to reply above as earlier or not ;-( >>> >>> When I did as you proposed: >>> >>> x = [0:0.05*%pi:2*%pi]'; >>> f = scf(1); >>> driver('PNG'); >>> xinit('gridtest.png'); >>> plot2d(x, sin(x)) >>> xgrid() >>> xend(); >>> driver('X11'); >>> >>> it was OK! >>> >>> Regards /Stefan >>> >> And, of course, thank you! >> >> Regards /Stefan >> > So, Calixte, it was not the graphics driver, was it? Shall I report a > bug? > > Regards /Stefan -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From calixte.denizet at scilab-enterprises.com Mon Jan 20 16:19:25 2014 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Mon, 20 Jan 2014 16:19:25 +0100 Subject: [Scilab-users] Transparent rectangle? In-Reply-To: <278b-52dc3280-81-18cab280@33511217> References: <278b-52dc3280-81-18cab280@33511217> Message-ID: <52DD3E7D.1040804@scilab-enterprises.com> Hi Antoine, yes it is planned to handle transparency... but it is not easy since it will probably break the compatibility (every function which directly use the colormap is expecting three color components... not four). As said previously, it is possible to workaround in using Matplot1 or Matplot which now (since 5.5 beta 1) is able to handle RGBA colors directly (without using the colormap). Calixte On 19/01/2014 21:15, Antoine Monmayrant wrote: > > Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz a ?crit: > >> Hi all, >> is it possible to draw a filled coloured rectangle after lines so that >> those lines can still be seen trough it? > Hi Stefan, > > I am not sure what you are asking for: > - do you ask for transparency? (if yes, bad luck, no transparency for the moment, but things could change, hein Calixte?) > - do you want to get the lines atop the rectangle? Why not plotting them afterwards or rearrange the order later on. > > If you can elaborate a bit more, we might get a better idea of what you want to do. > > Antoine > >> Regards >> Stefan >> _______________________________________________ >> 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 -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From eduardo.torrecillas at gmail.com Mon Jan 20 18:14:19 2014 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Mon, 20 Jan 2014 15:14:19 -0200 Subject: [Scilab-users] scilab-fortran issues In-Reply-To: <52DCF939.2060702@scilab-enterprises.com> References: <52DCF939.2060702@scilab-enterprises.com> Message-ID: Hi Paul, Thank you for the reply and for the suggestion! Regards, On Mon, Jan 20, 2014 at 8:23 AM, Paul Bignier < paul.bignier at scilab-enterprises.com> wrote: > > Hello Eduardo, > > The call() primitive is not (yet?) suited for string matrices, because > there is a confusion about the "size" of it: right now, the gateway detects > the size of a scalar string, but when it is a matrix, each element can have > a proper size (buffer) and there is also the matrix size itself. > To avoid this confusion, the gateway only allows scalar strings, so the > "size" of the argument actually represents its length (for instance, > ident="STR1" will be detected as having a 4x1 size). > > This is documented in the help page, > the arguments can be "real matrices" or [scalar] "strings". > > So my only suggestion at the moment is to pass ident as the concatenation > of its elements, and to split it (or iterate on its length) in the Fortran > routine. ident = "STR1"+"STR2"+"STR3"+... > > Hope this helps, otherwise feel free to report a bug on > http://bugzilla.scilab.org/ > Regards, > Paul > > > > On 01/15/2014 09:01 PM, Eduardo Torrecillas wrote: > > Hello all, > > I am very used to dynamic linking scilab and Fortran, and call the > external function by the "call" function in SciLab. > > Although, this is the first time I try to send string matrices as fortran > arguments, and I can't get it working. Maybe any of you can please help? > > I want to pass a column-vector where each row contains a 4-char string. > Example: > > ident=['STR1';'STR2';'STR3';...] > > Now the F90 code I'm trying: > > subroutine fhdg_dist(napt,ident,ret_val) > implicit none > INTEGER,INTENT(IN)::napt > character(len=4),intent(in),dimension(napt,1)::ident > integer,intent(out)::ret_val > > ret_val=0 > > end subroutine fhdg_dist > > > the call statement: > > [ret_val]=call('fhdg_dist',napt,1,'i',ident,2,'c','out',[1,1],3,'i') > > So, even if I'm not trying to use the matrix data, when calling the > external function with this call, I get "incompatible dimensions" message. > > Any clues, please? > > Regards. > > > -- > Eduardo Torrecillas > AER-09 > > > _______________________________________________ > users mailing listusers at lists.scilab.orghttp://lists.scilab.org/mailman/listinfo/users > > > -- > Paul BIGNIER > Scilab Engineer & Xcos Developer > ----------------------------------------------------------- > Scilab Enterprises > 143bis rue Yves Le Coz - 78000 Versailles, France > Phone: +33.1.80.77.04.69http://www.scilab-enterprises.com > > -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Mon Jan 20 19:19:34 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 20 Jan 2014 19:19:34 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52DD3D99.8010805@scilab-enterprises.com> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> <52D86C44.4050801@durietz.se> <52D86E6F.70008@durietz.se> <52DD3D99.8010805@scilab-enterprises.com> Message-ID: <52DD68B6.7010300@durietz.se> Hi Calixte, thank you very much for your comprehensive reply! Now I understand why I must either install the proprietary driver (beware!) or use the vectorial export. I will probably choose the latter when I want to export a figure to be able to use it at my web site. Best regards Stefan On 2014-01-20 16:15, Calixte Denizet wrote: -------------------- > Hi Stefan, > > Few comments: > i) driver(...);xinit(...);...xend(); implies a vectorial export: all > the scene is completly drawn vectorialy (so the graphic card driver is > not implied in the draw) > ii) xs2png(0,...): a memory dump is done and the bitmap is converted > into PNG. The GC driver is called to retrieve the data and it seems > that this kind of bug is typical to Ubuntu with free driver... the > only workaround I know (for the moment ;)) is to switch to the > proprietary driver. > > Calixte > > On 17/01/2014 00:42, Stefan Du Rietz wrote: >>>> Hi Antoine, >>>> are we supposed to reply above as earlier or not ;-( >>>> >>>> When I did as you proposed: >>>> >>>> x = [0:0.05*%pi:2*%pi]'; >>>> f = scf(1); >>>> driver('PNG'); >>>> xinit('gridtest.png'); >>>> plot2d(x, sin(x)) >>>> xgrid() >>>> xend(); >>>> driver('X11'); >>>> >>>> it was OK! >>>> >>>> Regards /Stefan >>>> >>> And, of course, thank you! >>> >>> Regards /Stefan >>> >> So, Calixte, it was not the graphics driver, was it? Shall I report >> a bug? >> >> Regards /Stefan > > From sdr at durietz.se Mon Jan 20 19:26:07 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 20 Jan 2014 19:26:07 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52DD68B6.7010300@durietz.se> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> <52D86C44.4050801@durietz.se> <52D86E6F.70008@durietz.se> <52DD3D99.8010805@scilab-enterprises.com> <52DD68B6.7010300@durietz.se> Message-ID: <52DD6A3F.8020506@durietz.se> On 2014-01-20 19:19, Stefan Du Rietz wrote: -------------------- > Hi Calixte, > thank you very much for your comprehensive reply! Now I understand why > I must either install the proprietary driver (beware!) or use the > vectorial export. I will probably choose the latter when I want to > export a figure to be able to use it at my web site. > I just want to correct my code lines below: f = scf(1); should NOT be there, before driver('PNG'); because then it didn't work! > Best regards > Stefan > > > On 2014-01-20 16:15, Calixte Denizet wrote: > -------------------- >> Hi Stefan, >> >> Few comments: >> i) driver(...);xinit(...);...xend(); implies a vectorial export: all >> the scene is completly drawn vectorialy (so the graphic card driver is >> not implied in the draw) >> ii) xs2png(0,...): a memory dump is done and the bitmap is converted >> into PNG. The GC driver is called to retrieve the data and it seems >> that this kind of bug is typical to Ubuntu with free driver... the >> only workaround I know (for the moment ;)) is to switch to the >> proprietary driver. >> >> Calixte >> >> On 17/01/2014 00:42, Stefan Du Rietz wrote: >>>>> Hi Antoine, >>>>> are we supposed to reply above as earlier or not ;-( >>>>> >>>>> When I did as you proposed: >>>>> >>>>> x = [0:0.05*%pi:2*%pi]'; >>>>> f = scf(1); >>>>> driver('PNG'); >>>>> xinit('gridtest.png'); >>>>> plot2d(x, sin(x)) >>>>> xgrid() >>>>> xend(); >>>>> driver('X11'); >>>>> >>>>> it was OK! >>>>> >>>>> Regards /Stefan >>>>> >>>> And, of course, thank you! >>>> >>>> Regards /Stefan >>>> >>> So, Calixte, it was not the graphics driver, was it? Shall I report >>> a bug? >>> >>> Regards /Stefan >> >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From calixte.denizet at scilab-enterprises.com Mon Jan 20 19:28:44 2014 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Mon, 20 Jan 2014 19:28:44 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52DD6A3F.8020506@durietz.se> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> <52D86C44.4050801@durietz.se> <52D86E6F.70008@durietz.se> <52DD3D99.8010805@scilab-enterprises.com> <52DD68B6.7010300@durietz.se> <52DD6A3F.8020506@durietz.se> Message-ID: <52DD6ADC.105@scilab-enterprises.com> And take care: vectorial export of a 3D scene can be slow. C On 20/01/2014 19:26, Stefan Du Rietz wrote: > On 2014-01-20 19:19, Stefan Du Rietz wrote: > -------------------- >> Hi Calixte, >> thank you very much for your comprehensive reply! Now I understand why >> I must either install the proprietary driver (beware!) or use the >> vectorial export. I will probably choose the latter when I want to >> export a figure to be able to use it at my web site. >> > I just want to correct my code lines below: > f = scf(1); > should NOT be there, before > driver('PNG'); > because then it didn't work! > >> Best regards >> Stefan >> >> >> On 2014-01-20 16:15, Calixte Denizet wrote: >> -------------------- >>> Hi Stefan, >>> >>> Few comments: >>> i) driver(...);xinit(...);...xend(); implies a vectorial export: all >>> the scene is completly drawn vectorialy (so the graphic card driver is >>> not implied in the draw) >>> ii) xs2png(0,...): a memory dump is done and the bitmap is converted >>> into PNG. The GC driver is called to retrieve the data and it seems >>> that this kind of bug is typical to Ubuntu with free driver... the >>> only workaround I know (for the moment ;)) is to switch to the >>> proprietary driver. >>> >>> Calixte >>> >>> On 17/01/2014 00:42, Stefan Du Rietz wrote: >>>>>> Hi Antoine, >>>>>> are we supposed to reply above as earlier or not ;-( >>>>>> >>>>>> When I did as you proposed: >>>>>> >>>>>> x = [0:0.05*%pi:2*%pi]'; >>>>>> f = scf(1); >>>>>> driver('PNG'); >>>>>> xinit('gridtest.png'); >>>>>> plot2d(x, sin(x)) >>>>>> xgrid() >>>>>> xend(); >>>>>> driver('X11'); >>>>>> >>>>>> it was OK! >>>>>> >>>>>> Regards /Stefan >>>>>> >>>>> And, of course, thank you! >>>>> >>>>> Regards /Stefan >>>>> >>>> So, Calixte, it was not the graphics driver, was it? Shall I report >>>> a bug? >>>> >>>> Regards /Stefan >>> >>> >> >> _______________________________________________ >> 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 -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From sgougeon at free.fr Mon Jan 20 21:09:32 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 20 Jan 2014 21:09:32 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52DD3D99.8010805@scilab-enterprises.com> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> <52D86C44.4050801@durietz.se> <52D86E6F.70008@durietz.se> <52DD3D99.8010805@scilab-enterprises.com> Message-ID: <52DD827C.5080702@free.fr> Hi Calixte, Le 20/01/2014 16:15, Calixte Denizet a ?crit : > Hi Stefan, > Few comments: > i) driver(...);xinit(...);...xend(); implies a vectorial export: all > the scene is completly drawn vectorialy (so the graphic card driver is > not implied in the draw) What about driver("GIF") and other bitmap drivers called through driver() instead of xs2###()? From sdr at durietz.se Mon Jan 20 22:07:25 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 20 Jan 2014 22:07:25 +0100 Subject: [Scilab-users] Transparent rectangle? In-Reply-To: <52DCF4B1.3050208@inria.fr> References: <278b-52dc3280-81-18cab280@33511217> <52DC3568.60405@durietz.se> <52DC362E.5090306@durietz.se> <52DCF4B1.3050208@inria.fr> Message-ID: <52DD900D.90808@durietz.se> On 2014-01-20 11:04, Serge Steer wrote: -------------------- > Hi Antoine, >>> I understand that I could draw the lines after the coloured rectangle >>> to get them visible, but I cannot do that. So, I need the rectangle to >>> be transparent. >>> >> What do you mean by "rearrange the order"? >> > Here is an example > clf; > xpoly([0 1],[0,1]);p=gce(); > xfrect([0.2 0.3 0.2 0.2]);r=gce();r.background=5; > swap_handles(p,r) > Hi Serge, I thank you for this reply to *me*. Your suggestion showed up to be the best solution for me. My problem was that I had two different axes with the same rectangle. I had to draw two different rectangles in the two axes to make it work. Stefan > Serge > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From akhorshidi at live.com Tue Jan 21 13:38:33 2014 From: akhorshidi at live.com (A Khorshidi) Date: Tue, 21 Jan 2014 16:08:33 +0330 Subject: [Scilab-users] null space and nullity of a matrix Message-ID: Hi; Is there an equivalent for the Matlab function "null" in Scilab? Thank you Mehran _ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Tue Jan 21 13:50:55 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 21 Jan 2014 13:50:55 +0100 Subject: [Scilab-users] null space and nullity of a matrix In-Reply-To: References: Message-ID: <52DE6D2F.3050008@centre-cired.fr> On 21/01/2014 13:38, A Khorshidi wrote: > Hi; > > Is there an equivalent for the Matlab function "null" in Scilab? > > Thank you > Mehran Hi Yes. It's called "null" For instance: foo = list(23,"a") foo(2) = null() Note that for matrices you can delete elements using empty matrices [] foo= 2*(1:3); foo(2) = [] foo = 2. 6. -- Adrien Vogt-Schilb PhD Student (Cired) -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Tue Jan 21 13:53:39 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 21 Jan 2014 13:53:39 +0100 Subject: [Scilab-users] null space and nullity of a matrix In-Reply-To: References: Message-ID: <52DE6DD3.3080702@centre-cired.fr> On 21/01/2014 13:38, A Khorshidi wrote: > Hi; > > Is there an equivalent for the Matlab function "null" in Scilab? > > Thank you > Mehran > _ > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users Reading the title of your messgae,I guess you might want ot have a look at the function isempty A=[]; if isempty(A) disp("kowabunga") end -- Adrien Vogt-Schilb PhD Student (Cired) -------------- next part -------------- An HTML attachment was scrubbed... URL: From jasper at amsterchem.com Tue Jan 21 13:50:40 2014 From: jasper at amsterchem.com (jasper van baten) Date: Tue, 21 Jan 2014 13:50:40 +0100 Subject: [Scilab-users] null space and nullity of a matrix In-Reply-To: References: Message-ID: <52DE6D20.4050902@amsterchem.com> The null space is returned by the function kernel, Best wishes, Jasper. On 1/21/2014 13:38, A Khorshidi wrote: > Hi; > > Is there an equivalent for the Matlab function "null" in Scilab? > > Thank you > Mehran > _ > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From Serge.Steer at inria.fr Tue Jan 21 22:03:32 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 21 Jan 2014 22:03:32 +0100 Subject: [Scilab-users] null space and nullity of a matrix In-Reply-To: References: Message-ID: <52DEE0A4.5060407@inria.fr> Le 21/01/2014 13:38, A Khorshidi a ?crit : > Hi; > > Is there an equivalent for the Matlab function "null" in Scilab? > Yes, look at the kernel function Serge Steer > Thank you > Mehran > _ > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- An HTML attachment was scrubbed... URL: From calixte.denizet at scilab-enterprises.com Wed Jan 22 10:50:46 2014 From: calixte.denizet at scilab-enterprises.com (Calixte Denizet) Date: Wed, 22 Jan 2014 10:50:46 +0100 Subject: [Scilab-users] Bitmap export In-Reply-To: <52DD827C.5080702@free.fr> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> <52D86C44.4050801@durietz.se> <52D86E6F.70008@durietz.se> <52DD3D99.8010805@scilab-enterprises.com> <52DD827C.5080702@free.fr> Message-ID: <52DF9476.9080300@scilab-enterprises.com> On 20/01/2014 21:09, Samuel Gougeon wrote: > Hi Calixte, > Le 20/01/2014 16:15, Calixte Denizet a ?crit : >> Hi Stefan, >> Few comments: >> i) driver(...);xinit(...);...xend(); implies a vectorial export: all >> the scene is completly drawn vectorialy (so the graphic card driver >> is not implied in the draw) > What about driver("GIF") and other bitmap drivers called through > driver() instead of xs2###()? Hi Samuel, driver("foo") implies a vectorial export and can be used in headless mode. Calixte > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Calixte Denizet Software Development Engineer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France http://www.scilab-enterprises.com From akhorshidi at live.com Wed Jan 22 11:27:19 2014 From: akhorshidi at live.com (A Khorshidi) Date: Wed, 22 Jan 2014 02:27:19 -0800 (PST) Subject: [Scilab-users] null space and nullity of a matrix In-Reply-To: <52DEE0A4.5060407@inria.fr> References: <52DEE0A4.5060407@inria.fr> Message-ID: <1390386439794-4028413.post@n3.nabble.com> Thank you all. The function "kernel" does the same task. Before positing this topic, I searched a bit for the following keywords on the help, but I didn't found any related results. "null space" and "nullity" So, I modify a little the "kernel" help and write a new help page for the chapter Scilab-Matlab equivalents. https://bugzilla.scilab.org/show_bug.cgi?id=13202 Regards, Mehran _ -- View this message in context: http://mailinglists.scilab.org/Scilab-users-null-space-and-nullity-of-a-matrix-tp4028398p4028413.html Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com. From ian.h.bell at gmail.com Wed Jan 22 18:11:41 2014 From: ian.h.bell at gmail.com (Ian Bell) Date: Wed, 22 Jan 2014 18:11:41 +0100 Subject: [Scilab-users] Calling a function returning a double from DLL Message-ID: I am trying to call a function in a DLL that has the prototype double K2F(double) I can load the DLL: -->link('CoolProp_x64.dll',['PropsSI','K2F'],'c') Shared archive loaded. Link done. ans = 2. I tried to do something like: -->call('K2F',200.0,1,'d','out',[1,1],0,'d') ans = 1.08D-312 but that's not the right way to do it. So far I see no way to call a function that returns a double. Am I missing something or is this just an oversight in the development? If this is not possible, where can I file an issue? There are many DLL functions that return values, including all the functions in the library I am trying to wrap. Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: From ian.h.bell at gmail.com Wed Jan 22 18:16:25 2014 From: ian.h.bell at gmail.com (Ian Bell) Date: Wed, 22 Jan 2014 18:16:25 +0100 Subject: [Scilab-users] sciscipy doesn't compile Message-ID: I can't get sciscipy to compile. Below is the error log. Using scilab an exercise in frustration... FYI, Windows 7 64-bit, python 2.7.x, scilab 5.4.0 64-bit Happy to help debug if I can. I'd REALLY like to use 3D plotting of Scilab in python. Pythons 3D plotting options aren't too impressive. C:\Users\Belli\Downloads\sciscipy-1.0.1>python setup.py install running install running build running build_py running build_ext No module named msvccompiler in numpy.distutils; trying from distutils building 'sciscipy' extension c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSCI="/usr\local\share\scilab" -DSCIDEBUG=0 -DNUMPY=1 -I"C:\Program Files\scilab-5.4.0\modules\core\includes" -I"C:\Program Files\scilab-5.4.0\modules\call_scilab\includes" -I"C:\Program File s\scilab-5.4.0\modules\api_scilab\includes" -Ic:\Python27\lib\site-packages\numpy\core\include -Ic:\Python27\include -Ic:\Python27\PC /Tcsciscipy.c /Fobuild\temp.win32-2.7\Release\sciscipy.obj Found executable c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSCI="/usr\local\share\scilab" -DSCIDEBUG=0 -DNUMPY=1 -I"C:\Program Files\scilab-5.4.0\modules\core\includes" -I"C:\Program Files\scilab-5.4.0\modules\call_scilab\includes" -I"C:\Program File s\scilab-5.4.0\modules\api_scilab\includes" -Ic:\Python27\lib\site-packages\numpy\core\include -Ic:\Python27\include -Ic:\Python27\PC /Tcsciconv_read.c /Fobuild\temp.win32-2.7\Release\sciconv_read.obj sciconv_read.c sciconv_read.c(346) : error C2143: syntax error : missing ';' before 'type' sciconv_read.c(348) : error C2275: 'PyObject' : illegal use of this type as an expression c:\python27\include\object.h(108) : see declaration of 'PyObject' sciconv_read.c(348) : error C2065: 'new_list' : undeclared identifier sciconv_read.c(349) : error C2065: 'piLen' : undeclared identifier sciconv_read.c(349) : warning C4047: 'function' : 'int *' differs in levels of indirection from 'int' sciconv_read.c(349) : warning C4024: 'getMatrixOfString' : different types for formal and actual parameter 5 sciconv_read.c(360) : error C2065: 'piLen' : undeclared identifier sciconv_read.c(360) : error C2109: subscript requires array or pointer type sciconv_read.c(360) : error C2198: 'malloc' : too few arguments for call sciconv_read.c(364) : error C2065: 'new_list' : undeclared identifier sciconv_read.c(364) : warning C4047: '=' : 'int' differs in levels of indirection from 'PyObject *' sciconv_read.c(365) : error C2065: 'piLen' : undeclared identifier sciconv_read.c(365) : warning C4047: 'function' : 'int *' differs in levels of indirection from 'int' sciconv_read.c(365) : warning C4024: 'getMatrixOfString' : different types for formal and actual parameter 5 sciconv_read.c(377) : error C2065: 'new_list' : undeclared identifier sciconv_read.c(383) : error C2065: 'new_list' : undeclared identifier sciconv_read.c(383) : warning C4047: 'return' : 'PyObject *' differs in levels of indirection from 'int' sciconv_read.c(399) : error C2143: syntax error : missing '{' before '*' sciconv_read.c(457) : warning C4133: 'return' : incompatible types - from 'PyObject *' to 'int *' sciconv_read.c(475) : warning C4028: formal parameter 1 different from declaration sciconv_read.c(495) : warning C4028: formal parameter 1 different from declaration sciconv_read.c(495) : warning C4133: 'function' : incompatible types - from 'int *(__cdecl *)(int *)' to 'PyObject *(__cdecl *)(char *)' sciconv_read.c(496) : warning C4028: formal parameter 1 different from declaration sciconv_read.c(497) : warning C4028: formal parameter 1 different from declaration error: Command "c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DSCI="/usr\local\share\scilab" -DSCIDEBUG=0 -DNUMPY=1 -I"C:\Program Files\scilab-5.4.0\modules\core\includes" -I"C:\Program Files\scilab-5.4.0\modules\call_scilab\includes" -I "C:\Program Files\scilab-5.4.0\modules\api_scilab\includes" -Ic:\Python27\lib\site-packages\numpy\core\include -Ic:\Python27\include -Ic:\Python27\PC /Tcsciconv_read.c /Fobuild\temp.win32-2.7\Release\sciconv_read.obj" failed with exit status 2 C:\Users\Belli\Downloads\sciscipy-1.0.1> -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Wed Jan 22 22:30:20 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Wed, 22 Jan 2014 22:30:20 +0100 Subject: [Scilab-users] null space and nullity of a matrix In-Reply-To: <52DE6D20.4050902@amsterchem.com> References: <52DE6D20.4050902@amsterchem.com> Message-ID: <52E0386C.1090009@centre-cired.fr> oops On 21/01/2014 13:50, jasper van baten wrote: > The null space is returned by the function kernel, > > Best wishes, > > Jasper. > > On 1/21/2014 13:38, A Khorshidi wrote: >> Hi; >> >> Is there an equivalent for the Matlab function "null" in Scilab? >> >> Thank you >> Mehran >> _ >> >> >> _______________________________________________ >> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.torrecillas at gmail.com Thu Jan 23 04:31:52 2014 From: eduardo.torrecillas at gmail.com (Eduardo Torrecillas) Date: Thu, 23 Jan 2014 01:31:52 -0200 Subject: [Scilab-users] Bitmap export In-Reply-To: <52DD68B6.7010300@durietz.se> References: <4172-52d85980-6f-244bca40@100765588> <52D86943.1020501@durietz.se> <52D86C44.4050801@durietz.se> <52D86E6F.70008@durietz.se> <52DD3D99.8010805@scilab-enterprises.com> <52DD68B6.7010300@durietz.se> Message-ID: Hi Stefan, I am experiencing pretty good results exporting pictures from Scilab as EPS, using xs2eps(). After that, you can convert the pictures using the linux command convert (if ImageMagick package is installed). If you have a large number of pics, you can write a simple shell script to do that too. Best regards, On Mon, Jan 20, 2014 at 4:19 PM, Stefan Du Rietz wrote: > Hi Calixte, > thank you very much for your comprehensive reply! Now I understand why I > must either install the proprietary driver (beware!) or use the vectorial > export. I will probably choose the latter when I want to export a figure to > be able to use it at my web site. > > Best regards > Stefan > > > On 2014-01-20 16:15, Calixte Denizet wrote: > -------------------- > > Hi Stefan, >> >> Few comments: >> i) driver(...);xinit(...);...xend(); implies a vectorial export: all >> the scene is completly drawn vectorialy (so the graphic card driver is >> not implied in the draw) >> ii) xs2png(0,...): a memory dump is done and the bitmap is converted >> into PNG. The GC driver is called to retrieve the data and it seems >> that this kind of bug is typical to Ubuntu with free driver... the >> only workaround I know (for the moment ;)) is to switch to the >> proprietary driver. >> >> Calixte >> >> On 17/01/2014 00:42, Stefan Du Rietz wrote: >> >>> Hi Antoine, >>>>> are we supposed to reply above as earlier or not ;-( >>>>> >>>>> When I did as you proposed: >>>>> >>>>> x = [0:0.05*%pi:2*%pi]'; >>>>> f = scf(1); >>>>> driver('PNG'); >>>>> xinit('gridtest.png'); >>>>> plot2d(x, sin(x)) >>>>> xgrid() >>>>> xend(); >>>>> driver('X11'); >>>>> >>>>> it was OK! >>>>> >>>>> Regards /Stefan >>>>> >>>>> And, of course, thank you! >>>> >>>> Regards /Stefan >>>> >>>> So, Calixte, it was not the graphics driver, was it? Shall I report >>> a bug? >>> >>> Regards /Stefan >>> >> >> >> > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -- Eduardo Torrecillas AER-09 -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Thu Jan 23 11:32:49 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 23 Jan 2014 11:32:49 +0100 Subject: [Scilab-users] Bar graphs in Scilab Message-ID: <52E0EFD1.7030905@centre-cired.fr> Hi Do you know how to mak bar grahps in scilab ? Like this one. Does anybody have a function ready, maybe based on rectangles or something? Best regards -- Adrien Vogt-Schilb PhD Student (Cired) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bar-graph-fruit.gif Type: image/gif Size: 4464 bytes Desc: not available URL: From vogt at centre-cired.fr Thu Jan 23 11:36:18 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Thu, 23 Jan 2014 11:36:18 +0100 Subject: [Scilab-users] Bar graphs in Scilab In-Reply-To: <52E0EFD1.7030905@centre-cired.fr> References: <52E0EFD1.7030905@centre-cired.fr> Message-ID: <52E0F0A2.4040100@centre-cired.fr> OK, for the record, the bar function does that... more info here: http://mailinglists.scilab.org/fine-bar-graph-formatting-td3787340.html On 23/01/2014 11:32, Adrien Vogt-Schilb wrote: > Hi > Do you know how to mak bar grahps in scilab ? > > > Like this one. > > Does anybody have a function ready, maybe based on rectangles or > something? > > Best regards > -- > Adrien Vogt-Schilb > PhD Student (Cired) > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb PhD Student (Cired) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4464 bytes Desc: not available URL: From paul.bignier at scilab-enterprises.com Thu Jan 23 11:36:50 2014 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Thu, 23 Jan 2014 11:36:50 +0100 Subject: [Scilab-users] Bar graphs in Scilab In-Reply-To: <52E0EFD1.7030905@centre-cired.fr> References: <52E0EFD1.7030905@centre-cired.fr> Message-ID: <52E0F0C2.5010002@scilab-enterprises.com> Hello Adrien, Try bar() or histoplot()? Regards, Paul On 01/23/2014 11:32 AM, Adrien Vogt-Schilb wrote: > Hi > Do you know how to mak bar grahps in scilab ? > > > Like this one. > > Does anybody have a function ready, maybe based on rectangles or > something? > > Best regards > -- > Adrien Vogt-Schilb > PhD Student (Cired) > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 4464 bytes Desc: not available URL: From akhorshidi at live.com Fri Jan 24 18:33:54 2014 From: akhorshidi at live.com (A Khorshidi) Date: Fri, 24 Jan 2014 21:03:54 +0330 Subject: [Scilab-users] Bond graph modeling using Scilab Message-ID: Hi; Is there an Xcos toolbox to simulate bond-graph models? In fact, the only thing you can find on the web is for 6 years ago . Please see: http://comp.soft-sys.math.scilab.narkive.com/eakq8oYm/project-proposal-scicos-bondgraph-toolbox Any thoughts? Regards, Mehran _ -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Jan 24 18:32:56 2014 From: stephane.mottelet at utc.fr (=?ISO-8859-1?Q?St=E9phane_Mottelet?=) Date: Fri, 24 Jan 2014 18:32:56 +0100 Subject: [Scilab-users] XMLlab 1.7.6 is out ! Message-ID: <52E2A3C8.7060701@utc.fr> Dear Scilab users, A new version of XMLlab (1.7.6) has just been released ! For those who never heard about XMLlab, the official site http://xmllab.org which is up again after a fatal server crash just before Christmas, will give you some piece of information about it. Basically, XMLlab can be used in several ways. It allows to: 1-build some small "Scilab applets", where the equations, parameter and graphics, are described in XML files, which can be used from within Scilab or from a distant web browser. 2-encapsulate more heavy applications, where only the parameter and the graphics are described in XML, also run from within Scilab or from a web browser. You can browse the examples at the following url in the xmllab.org site : http://xmllab.org/~xmllab/cgi-bin/XMLlabServer.cgi?list=examples.xml&lang=english http://xmllab.org/~xmllab/cgi-bin/XMLlabServer.cgi?list=examples.xml&lang=french http://xmllab.org/~xmllab/cgi-bin/XMLlabServer.cgi?list=examples.xml&lang=spanish http://xmllab.org/~xmllab/cgi-bin/XMLlabServer.cgi?list=examples.xml&lang=german This new version works with Scilab 5.4.1 on Windows and Linux and is easy to install. Don't hesitate to mail me if you are interested in XMLlab and need some help. Best regards, S. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mottelet at utc.fr Fri Jan 24 18:34:50 2014 From: mottelet at utc.fr (mottelet at utc.fr) Date: Fri, 24 Jan 2014 18:34:50 +0100 Subject: [Scilab-users] XMLlab 1.7.6 is out ! Message-ID: <20140124183450.Horde.gM_yLdI6Vik5ZjIoZ8yjvQ1@webmail2.utc.fr> Dear Scilab users, A new version of XMLlab (1.7.6) has just been released ! For those who never heard about XMLlab, the official site http://xmllab.org which is up again after a fatal server crash just before Christmas, will give you some piece of information about it. Basically, XMLlab can be used in several ways. It allows to: 1-build some small "Scilab applets", where the equations, parameter and graphics, are described in XML files, which can be used from within Scilab or from a distant web browser. 2-encapsulate more heavy applications, where only the parameter and the graphics are described in XML, also run from within Scilab or from a web browser. You can browse the examples at the following url in the xmllab.org site : http://xmllab.org/~xmllab/cgi-bin/XMLlabServer.cgi?list=examples.xml&lang=english http://xmllab.org/~xmllab/cgi-bin/XMLlabServer.cgi?list=examples.xml&lang=french http://xmllab.org/~xmllab/cgi-bin/XMLlabServer.cgi?list=examples.xml&lang=spanish http://xmllab.org/~xmllab/cgi-bin/XMLlabServer.cgi?list=examples.xml&lang=german This new version works with Scilab 5.4.1 on Windows and Linux and is easy to install. Don't hesitate to mail me if you are interested in XMLlab and need some help. Best regards, S. From sdr at durietz.se Sat Jan 25 18:32:47 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Sat, 25 Jan 2014 18:32:47 +0100 Subject: [Scilab-users] Strange list error Message-ID: <52E3F53F.5030001@durietz.se> Hi all, one of my functions suddenly stopped working. During my effort to find the error by running the commands from the command window, I experienced this: -1->args(1) = null(); args(1) = null(); !--error 44 Wrong argument #2. and when I checked: -1->typeof(args) ans = list Can anybody explain that? Regards Stefan From picubed at outlook.com Sat Jan 25 20:12:50 2014 From: picubed at outlook.com (Ryan M. Castle) Date: Sat, 25 Jan 2014 14:12:50 -0500 Subject: [Scilab-users] higher resolution In-Reply-To: References: Message-ID: Hello. I am writing a textbook and trying to create some of the needed plots in Scilab. Is it possible to increase the resolution from the default? TIA From sdr at durietz.se Sat Jan 25 21:07:12 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Sat, 25 Jan 2014 21:07:12 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E3F53F.5030001@durietz.se> References: <52E3F53F.5030001@durietz.se> Message-ID: <52E41970.8020203@durietz.se> I found out what the error was: I had a line if exists("bolus") then that became true when I had this variable in the workspace, which I never had before. I changed it to if exists("bolus", "l") then and it worked again. But I still wonder: why the error 44? Stefan On 2014-01-25 18:32, Stefan Du Rietz wrote: -------------------- > Hi all, > one of my functions suddenly stopped working. During my effort to find > the error by running the commands from the command window, I > experienced this: > > -1->args(1) = null(); > args(1) = null(); > !--error 44 > Wrong argument #2. > > and when I checked: > -1->typeof(args) > ans = > list > > Can anybody explain that? > > Regards > Stefan > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From vogt at centre-cired.fr Sat Jan 25 23:32:03 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Sat, 25 Jan 2014 23:32:03 +0100 Subject: [Scilab-users] higher resolution In-Reply-To: References: Message-ID: <52E43B63.8020509@centre-cired.fr> On 25/01/2014 20:12, Ryan M. Castle wrote: > Hello. I am writing a textbook and trying to create some of the needed plots in Scilab. Is it possible to increase the resolution from the default? > > TIA > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users have you tried exporting the plots in a vectorial format? you can use driver or xs2pdf, xs2eps and other functions. You can also resize your plots before exporting them in png. Hope this helps -- Adrien Vogt-Schilb PhD Student (Cired) From cfuttrup at gmail.com Sun Jan 26 07:53:38 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 26 Jan 2014 07:53:38 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E41970.8020203@durietz.se> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> Message-ID: <52E4B0F2.2000401@gmail.com> Hi Stefan See error codes here: http://help.scilab.org/docs/5.4.1/en_US/error_table.html /Claus On 1/25/2014 21:07, Stefan Du Rietz wrote: > I found out what the error was: I had a line > > if exists("bolus") then > > that became true when I had this variable in the workspace, which I > never had before. > > I changed it to > > if exists("bolus", "l") then > > and it worked again. > > But I still wonder: why the error 44? > > Stefan > > On 2014-01-25 18:32, Stefan Du Rietz wrote: > -------------------- >> Hi all, >> one of my functions suddenly stopped working. During my effort to find >> the error by running the commands from the command window, I >> experienced this: >> >> -1->args(1) = null(); >> args(1) = null(); >> !--error 44 >> Wrong argument #2. >> >> and when I checked: >> -1->typeof(args) >> ans = >> list >> >> Can anybody explain that? >> >> Regards >> Stefan >> _______________________________________________ >> 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 > --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From cfuttrup at gmail.com Sun Jan 26 07:55:18 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Sun, 26 Jan 2014 07:55:18 +0100 Subject: [Scilab-users] higher resolution In-Reply-To: References: Message-ID: <52E4B156.5070305@gmail.com> Hi Ryan I have successfully created graphics in Scilab, saved as SVG, edited with InkScape (which is an SVG Editor). /Claus On 1/25/2014 20:12, Ryan M. Castle wrote: > Hello. I am writing a textbook and trying to create some of the needed plots in Scilab. Is it possible to increase the resolution from the default? > > TIA > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > . > --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From picubed at outlook.com Sun Jan 26 18:44:38 2014 From: picubed at outlook.com (Ryan M. Castle) Date: Sun, 26 Jan 2014 12:44:38 -0500 Subject: [Scilab-users] higher resolution In-Reply-To: <52E4B156.5070305@gmail.com> References: , , <52E4B156.5070305@gmail.com> Message-ID: Thanks to you and Adrien for the tips. RMC ---------------------------------------- > Date: Sun, 26 Jan 2014 07:55:18 +0100 > From: cfuttrup at gmail.com > To: users at lists.scilab.org > Subject: Re: [Scilab-users] higher resolution > > Hi Ryan > > I have successfully created graphics in Scilab, saved as SVG, edited > with InkScape (which is an SVG Editor). > > /Claus > > On 1/25/2014 20:12, Ryan M. Castle wrote: >> Hello. I am writing a textbook and trying to create some of the needed plots in Scilab. Is it possible to increase the resolution from the default? >> >> TIA >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> . >> > > > --- > This email is free from viruses and malware because avast! Antivirus protection is active. > http://www.avast.com > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From paul.bignier at scilab-enterprises.com Mon Jan 27 08:47:24 2014 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Mon, 27 Jan 2014 08:47:24 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E41970.8020203@durietz.se> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> Message-ID: <52E60F0C.4090201@scilab-enterprises.com> Hello Stefan, What do you mean by "suddenly stopped working"? Did you switch Scilab versions? Could you provide us the failing test case? When I type args = list(); args(1)=null() it runs smooth. Regards, Paul On 01/25/2014 09:07 PM, Stefan Du Rietz wrote: > I found out what the error was: I had a line > > if exists("bolus") then > > that became true when I had this variable in the workspace, which I > never had before. > > I changed it to > > if exists("bolus", "l") then > > and it worked again. > > But I still wonder: why the error 44? > > Stefan > > On 2014-01-25 18:32, Stefan Du Rietz wrote: > -------------------- >> Hi all, >> one of my functions suddenly stopped working. During my effort to find >> the error by running the commands from the command window, I >> experienced this: >> >> -1->args(1) = null(); >> args(1) = null(); >> !--error 44 >> Wrong argument #2. >> >> and when I checked: >> -1->typeof(args) >> ans = >> list >> >> Can anybody explain that? >> >> Regards >> Stefan >> _______________________________________________ >> 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 -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com From sdr at durietz.se Mon Jan 27 19:05:54 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 27 Jan 2014 19:05:54 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E60F0C.4090201@scilab-enterprises.com> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> <52E60F0C.4090201@scilab-enterprises.com> Message-ID: <52E6A002.5070400@durietz.se> Hello Paul, after trying like a maniac ;-) I finally managed to reproduce it! The error shows up only when you run the command from the command window after a pause in the attached function testlisterror.sci. -->testlisterror("pnonfast","nonfast") -1->args(1) = null() args(1) = null() !--error 44 Wrong argument #2. Without the pause it works OK. Regards Stefan On 2014-01-27 08:47, Paul Bignier wrote: -------------------- > > Hello Stefan, > > What do you mean by "suddenly stopped working"? Did you switch Scilab > versions? > > Could you provide us the failing test case? > When I type > args = list(); args(1)=null() > it runs smooth. > > Regards, > Paul > > > On 01/25/2014 09:07 PM, Stefan Du Rietz wrote: >> I found out what the error was: I had a line >> >> if exists("bolus") then >> >> that became true when I had this variable in the workspace, which I >> never had before. >> >> I changed it to >> >> if exists("bolus", "l") then >> >> and it worked again. >> >> But I still wonder: why the error 44? >> >> Stefan >> >> On 2014-01-25 18:32, Stefan Du Rietz wrote: >> -------------------- >>> Hi all, >>> one of my functions suddenly stopped working. During my effort to find >>> the error by running the commands from the command window, I >>> experienced this: >>> >>> -1->args(1) = null(); >>> args(1) = null(); >>> !--error 44 >>> Wrong argument #2. >>> >>> and when I checked: >>> -1->typeof(args) >>> ans = >>> list >>> >>> Can anybody explain that? >>> >>> Regards >>> Stefan >>> _______________________________________________ >>> 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 > -------------- next part -------------- A non-text attachment was scrubbed... Name: testlisterror.sci Type: application/x-scilab Size: 308 bytes Desc: not available URL: From sdr at durietz.se Mon Jan 27 19:21:31 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Mon, 27 Jan 2014 19:21:31 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E6A002.5070400@durietz.se> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> <52E60F0C.4090201@scilab-enterprises.com> <52E6A002.5070400@durietz.se> Message-ID: <52E6A3AB.2060402@durietz.se> PS -->testlisterror("pnonfast","nonfast") works OK also after resume twice. /Stefan On 2014-01-27 19:05, Stefan Du Rietz wrote: -------------------- > Hello Paul, > after trying like a maniac ;-) I finally managed to reproduce it! > > The error shows up only when you run the command from the command > window after a pause in the attached function testlisterror.sci. > > -->testlisterror("pnonfast","nonfast") > -1->args(1) = null() > args(1) = null() > !--error 44 > Wrong argument #2. > > Without the pause it works OK. > > Regards > Stefan > > > On 2014-01-27 08:47, Paul Bignier wrote: > -------------------- >> >> Hello Stefan, >> >> What do you mean by "suddenly stopped working"? Did you switch Scilab >> versions? >> >> Could you provide us the failing test case? >> When I type >> args = list(); args(1)=null() >> it runs smooth. >> >> Regards, >> Paul >> >> >> On 01/25/2014 09:07 PM, Stefan Du Rietz wrote: >>> I found out what the error was: I had a line >>> >>> if exists("bolus") then >>> >>> that became true when I had this variable in the workspace, which I >>> never had before. >>> >>> I changed it to >>> >>> if exists("bolus", "l") then >>> >>> and it worked again. >>> >>> But I still wonder: why the error 44? >>> >>> Stefan >>> >>> On 2014-01-25 18:32, Stefan Du Rietz wrote: >>> -------------------- >>>> Hi all, >>>> one of my functions suddenly stopped working. During my effort to >>>> find >>>> the error by running the commands from the command window, I >>>> experienced this: >>>> >>>> -1->args(1) = null(); >>>> args(1) = null(); >>>> !--error 44 >>>> Wrong argument #2. >>>> >>>> and when I checked: >>>> -1->typeof(args) >>>> ans = >>>> list >>>> >>>> Can anybody explain that? >>>> >>>> Regards >>>> Stefan >>>> _______________________________________________ >>>> 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 > From Serge.Steer at inria.fr Mon Jan 27 22:43:34 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Mon, 27 Jan 2014 22:43:34 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E6A002.5070400@durietz.se> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> <52E60F0C.4090201@scilab-enterprises.com> <52E6A002.5070400@durietz.se> Message-ID: <52E6D306.4040603@inria.fr> Le 27/01/2014 19:05, Stefan Du Rietz a ?crit : > Hello Paul, > after trying like a maniac ;-) I finally managed to reproduce it! > > The error shows up only when you run the command from the command > window after a pause in the attached function testlisterror.sci. > > -->testlisterror("pnonfast","nonfast") > -1->args(1) = null() > args(1) = null() > !--error 44 > Wrong argument #2. > > Without the pause it works OK. > > Regards > Stefan Under pause, you cannot modify a variable which is defined in the calling context so in such a context args is not a list as you expect but an empty array which is implicitely created To make it work you must do -1-> args; //makes a local copy of args -1->args(1) = null() Serge From sdr at durietz.se Tue Jan 28 09:41:16 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 28 Jan 2014 09:41:16 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E6D306.4040603@inria.fr> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> <52E60F0C.4090201@scilab-enterprises.com> <52E6A002.5070400@durietz.se> <52E6D306.4040603@inria.fr> Message-ID: <52E76D2C.1040000@durietz.se> On 2014-01-27 22:43, Serge Steer wrote: -------------------- > Le 27/01/2014 19:05, Stefan Du Rietz a ?crit : >> Hello Paul, >> after trying like a maniac ;-) I finally managed to reproduce it! >> >> The error shows up only when you run the command from the command >> window after a pause in the attached function testlisterror.sci. >> >> -->testlisterror("pnonfast","nonfast") >> -1->args(1) = null() >> args(1) = null() >> !--error 44 >> Wrong argument #2. >> >> Without the pause it works OK. >> >> Regards >> Stefan > Under pause, you cannot modify a variable which is defined in the > calling context > so in such a context args is not a list as you expect but an empty > array which is implicitely created > > To make it work > you must do > -1-> args; //makes a local copy of args > -1->args(1) = null() > > Serge What do you mean by "defined in the calling context"? I can modify this: -1->isfast isfast = 0. 0. -1->isfast(1) = 1 isfast = 1. 0. Stefan From vogt at centre-cired.fr Tue Jan 28 09:54:18 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 28 Jan 2014 09:54:18 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E76D2C.1040000@durietz.se> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> <52E60F0C.4090201@scilab-enterprises.com> <52E6A002.5070400@durietz.se> <52E6D306.4040603@inria.fr> <52E76D2C.1040000@durietz.se> Message-ID: <52E7703A.8000805@centre-cired.fr> On 28/01/2014 09:41, Stefan Du Rietz wrote: > On 2014-01-27 22:43, Serge Steer wrote: > -------------------- >> Le 27/01/2014 19:05, Stefan Du Rietz a ?crit : >>> Hello Paul, >>> after trying like a maniac ;-) I finally managed to reproduce it! >>> >>> The error shows up only when you run the command from the command >>> window after a pause in the attached function testlisterror.sci. >>> >>> -->testlisterror("pnonfast","nonfast") >>> -1->args(1) = null() >>> args(1) = null() >>> !--error 44 >>> Wrong argument #2. >>> >>> Without the pause it works OK. >>> >>> Regards >>> Stefan >> Under pause, you cannot modify a variable which is defined in the >> calling context >> so in such a context args is not a list as you expect but an empty >> array which is implicitely created >> >> To make it work >> you must do >> -1-> args; //makes a local copy of args >> -1->args(1) = null() >> >> Serge > > What do you mean by "defined in the calling context"? > I can modify this: > > -1->isfast > isfast = > 0. 0. > -1->isfast(1) = 1 > isfast = > 1. 0. > > Stefan > > Stefan, you may want to have a look at http://wiki.scilab.org/howto/global%20and%20local%20variables This page explains what Serge means i believe. Adrien > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Adrien Vogt-Schilb PhD Student (Cired) From sdr at durietz.se Tue Jan 28 16:43:21 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 28 Jan 2014 16:43:21 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E7703A.8000805@centre-cired.fr> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> <52E60F0C.4090201@scilab-enterprises.com> <52E6A002.5070400@durietz.se> <52E6D306.4040603@inria.fr> <52E76D2C.1040000@durietz.se> <52E7703A.8000805@centre-cired.fr> Message-ID: <52E7D019.6030708@durietz.se> On 2014-01-28 09:54, Adrien Vogt-Schilb wrote: -------------------- > On 28/01/2014 09:41, Stefan Du Rietz wrote: >> On 2014-01-27 22:43, Serge Steer wrote: >> -------------------- >>> Le 27/01/2014 19:05, Stefan Du Rietz a ?crit : >>>> Hello Paul, >>>> after trying like a maniac ;-) I finally managed to reproduce it! >>>> >>>> The error shows up only when you run the command from the command >>>> window after a pause in the attached function testlisterror.sci. >>>> >>>> -->testlisterror("pnonfast","nonfast") >>>> -1->args(1) = null() >>>> args(1) = null() >>>> !--error 44 >>>> Wrong argument #2. >>>> >>>> Without the pause it works OK. >>>> >>>> Regards >>>> Stefan >>> Under pause, you cannot modify a variable which is defined in the >>> calling context >>> so in such a context args is not a list as you expect but an empty >>> array which is implicitely created >>> >>> To make it work >>> you must do >>> -1-> args; //makes a local copy of args >>> -1->args(1) = null() >>> >>> Serge >> >> What do you mean by "defined in the calling context"? >> I can modify this: >> >> -1->isfast >> isfast = >> 0. 0. >> -1->isfast(1) = 1 >> isfast = >> 1. 0. >> >> Stefan >> >> > > Stefan, you may want to have a look at > http://wiki.scilab.org/howto/global%20and%20local%20variables > This page explains what Serge means i believe. > > Adrien > Thank you Adrien, but I have had many looks at it ;-) I still don't understand the difference between my variables args and isfast. They are both defined in the function. args: input values of the function are assigned to the corresponding local variables of the function (local variables and scoping 5.) isfast: local variables defined at level_N remain local at that level. (local variables and scoping 2.). What am I missing? Am I just stupid? Stefan From vogt at centre-cired.fr Tue Jan 28 17:13:10 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 28 Jan 2014 17:13:10 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E7D019.6030708@durietz.se> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> <52E60F0C.4090201@scilab-enterprises.com> <52E6A002.5070400@durietz.se> <52E6D306.4040603@inria.fr> <52E76D2C.1040000@durietz.se> <52E7703A.8000805@centre-cired.fr> <52E7D019.6030708@durietz.se> Message-ID: <52E7D716.1060705@centre-cired.fr> On 28/01/2014 16:43, Stefan Du Rietz wrote: > On 2014-01-28 09:54, Adrien Vogt-Schilb wrote: > -------------------- >> On 28/01/2014 09:41, Stefan Du Rietz wrote: >>> On 2014-01-27 22:43, Serge Steer wrote: >>> -------------------- >>>> Le 27/01/2014 19:05, Stefan Du Rietz a ?crit : >>>>> >>>> Under pause, you cannot modify a variable which is defined in the >>>> calling context >>>> so in such a context args is not a list as you expect but an empty >>>> array which is implicitely created >>>> >>>> To make it work >>>> you must do >>>> -1-> args; //makes a local copy of args >>>> -1->args(1) = null() >>>> >>>> Serge >>> >>> What do you mean by "defined in the calling context"? >>> I can modify this: >>> >>> -1->isfast >>> isfast = >>> 0. 0. >>> -1->isfast(1) = 1 >>> isfast = >>> 1. 0. >>> >>> Stefan >>> >>> >> >> Stefan, you may want to have a look at >> http://wiki.scilab.org/howto/global%20and%20local%20variables >> This page explains what Serge means i believe. >> >> Adrien >> > Thank you Adrien, but I have had many looks at it ;-) > > I still don't understand the difference between my variables args and > isfast. They are both defined in the function. > > args: input values of the function are assigned to the corresponding > local variables of the function (local variables and scoping 5.) > > isfast: local variables defined at level_N remain local at that level. > (local variables and scoping 2.). > > What am I missing? Am I just stupid? > > Stefan I believe the local and global variable stuff explains why you are able to reproduce your bug only under pause, as documented here http://wiki.scilab.org/howto/global%20and%20local%20variables (gosh, the page does not explain that pause and functions behave the same way... this is probably our problem here) This means that there is not "strange list error", only a confusing behaviour of scilab under pause. If i am correct, none of your functions suddenly stopped working. Coming back to the original post: -1->args(1) = null(); args(1) = null(); !--error 44 Wrong argument #2. and when I checked: -1->typeof(args) ans = list Can anybody explain that? The explanation is that you just created a new pause environment, where args do no exist yet. The line -1->args(1) = null(); (witten just after entering in pause) then behaves exactly the same way as if you open a new scilab consoloe and write args(1) = null() In other words, you cannot debug your function using pause like that. In the precise case of your function, one thing that would work is to pause the function just after entering (before the line args = varargin;), or to use the solution Serge gave you, that is replace the lines 8 and 9 pause args(1) = null(); with pause args; //makes a local copy of args in the new pause environment args(1) = null(); Please make sure you understand that nothing discussed here as nothing to do with your function, (which i did not read and i bet serge did not read). The bug comes from how you use pause to try to debug your function (and yes, this is very annoying as it prevents to use pause to debug scilab seamlessly.). I'm confused whether this answer your original question, and whether you have more questions Adrien -------------- next part -------------- An HTML attachment was scrubbed... URL: From vogt at centre-cired.fr Tue Jan 28 17:14:12 2014 From: vogt at centre-cired.fr (Adrien Vogt-Schilb) Date: Tue, 28 Jan 2014 17:14:12 +0100 Subject: [Scilab-users] bug report on http://wiki.scilab.org/howto/global%20and%20local%20variables Message-ID: <52E7D754.1080905@centre-cired.fr> The page does not mention "pause" http://wiki.scilab.org/howto/global%20and%20local%20variables sorry, o busy to file a bug -- Adrien Vogt-Schilb PhD Student (Cired) From sdr at durietz.se Tue Jan 28 18:38:06 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Tue, 28 Jan 2014 18:38:06 +0100 Subject: [Scilab-users] Strange list error In-Reply-To: <52E7D716.1060705@centre-cired.fr> References: <52E3F53F.5030001@durietz.se> <52E41970.8020203@durietz.se> <52E60F0C.4090201@scilab-enterprises.com> <52E6A002.5070400@durietz.se> <52E6D306.4040603@inria.fr> <52E76D2C.1040000@durietz.se> <52E7703A.8000805@centre-cired.fr> <52E7D019.6030708@durietz.se> <52E7D716.1060705@centre-cired.fr> Message-ID: <52E7EAFE.10006@durietz.se> On 2014-01-28 17:13, Adrien Vogt-Schilb wrote: -------------------- > On 28/01/2014 16:43, Stefan Du Rietz wrote: >> On 2014-01-28 09:54, Adrien Vogt-Schilb wrote: >> -------------------- >>> On 28/01/2014 09:41, Stefan Du Rietz wrote: >>>> On 2014-01-27 22:43, Serge Steer wrote: >>>> -------------------- >>>>> Le 27/01/2014 19:05, Stefan Du Rietz a ?crit : >>>>>> >>>>> Under pause, you cannot modify a variable which is defined in the >>>>> calling context >>>>> so in such a context args is not a list as you expect but an empty >>>>> array which is implicitely created >>>>> >>>>> To make it work >>>>> you must do >>>>> -1-> args; //makes a local copy of args >>>>> -1->args(1) = null() >>>>> >>>>> Serge >>>> >>>> What do you mean by "defined in the calling context"? >>>> I can modify this: >>>> >>>> -1->isfast >>>> isfast = >>>> 0. 0. >>>> -1->isfast(1) = 1 >>>> isfast = >>>> 1. 0. >>>> >>>> Stefan >>>> >>>> >>> >>> Stefan, you may want to have a look at >>> http://wiki.scilab.org/howto/global%20and%20local%20variables >>> This page explains what Serge means i believe. >>> >>> Adrien >>> >> Thank you Adrien, but I have had many looks at it ;-) >> >> I still don't understand the difference between my variables args >> and isfast. They are both defined in the function. >> >> args: input values of the function are assigned to the corresponding >> local variables of the function (local variables and scoping 5.) >> >> isfast: local variables defined at level_N remain local at that >> level. (local variables and scoping 2.). >> >> What am I missing? Am I just stupid? >> >> Stefan > > I believe the local and global variable stuff explains why you are > able to reproduce your bug only under pause, as documented here > http://wiki.scilab.org/howto/global%20and%20local%20variables (gosh, > the page does not explain that pause and functions behave the same > way... this is probably our problem here) > This means that there is not "strange list error", only a confusing > behaviour of scilab under pause. If i am correct, none of your > functions suddenly stopped working. The function suddenly stopped working because of an error by me, which I reported 2014-01-25 21:07. It was when I debugged my function that this *pause* problem showed up. > Coming back to the original post: > > -1->args(1) = null(); > args(1) = null(); > !--error 44 > Wrong argument #2. > > and when I checked: > -1->typeof(args) > ans = > list > > Can anybody explain that? > > The explanation is that you just created a new pause environment, > where args do no exist yet. But why only args (from varargin)? isfast does exist. And if I add a variable *a* before varargin, I can change that after *pause*. Changed in testlisterror.sci: function isfast = testlisterror(a, varargin) > The line -1->args(1) = null(); (witten just after entering in pause) > then behaves exactly the same way as if you open a new scilab consoloe > and write args(1) = null() > > In other words, you cannot debug your function using pause like that. I have long ago understood pause as a means to be able to be in the environment of the function and manipulate things from the command line, and I have mostly been successful in doing that. Here, you cannot do that and there is nowhere a comment on it. > In the precise case of your function, one thing that would work is to > pause the function just after entering (before the line args = > varargin;), or to use the solution Serge gave you, that is replace the > lines 8 and 9 > pause > args(1) = null(); > with > pause > args; //makes a local copy of args in the new pause environment > args(1) = null(); > And how do I know which variables need that? See above about *a*. > Please make sure you understand that nothing discussed here as nothing > to do with your function, (which i did not read and i bet serge did > not read). > The bug comes from how you use pause to try to debug your function > (and yes, this is very annoying as it prevents to use pause to debug > scilab seamlessly.). > > I'm confused whether this answer your original question, and whether > you have more questions > > Adrien > If it is so annoying, should we not report a bug? Stefan From Serge.Steer at inria.fr Tue Jan 28 18:42:24 2014 From: Serge.Steer at inria.fr (Serge Steer) Date: Tue, 28 Jan 2014 18:42:24 +0100 Subject: [Scilab-users] bug report on http://wiki.scilab.org/howto/global%20and%20local%20variables In-Reply-To: <52E7D754.1080905@centre-cired.fr> References: <52E7D754.1080905@centre-cired.fr> Message-ID: <52E7EC00.6080405@inria.fr> Le 28/01/2014 17:14, Adrien Vogt-Schilb a ?crit : > The page does not mention "pause" > Just because pause behave similarily to functions with respect to calling context > http://wiki.scilab.org/howto/global%20and%20local%20variables > > sorry, o busy to file a bug > From Christophe.Dang at sidel.com Wed Jan 29 16:56:36 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Wed, 29 Jan 2014 16:56:36 +0100 Subject: [Scilab-users] Intersection of wavy surfaces Message-ID: <3B5FFC67498DFF49AE7271A584867D16F3262F6C20@301EX00100.sidel.com> Hello, I'm trying to plot two perpendicular wavy surfaces (sine or cosine) and their intersection, to illustrate that an edge cumulates the defaults of both surfaces (the waves represent the grooves from a milling process). So, for each surface, I define three mxm matrices X, Y and Z and plot with surf(). To fit the surface with the other one, I place some %nan. It's OK except that : * if I have too few points, I get some scale effect; * if I have too many points, it's too dark (too many grid lines); see the attached PNG (top: 101x101, bottom: 201x201), and the Scilab script (maybe not too clean...). Apart from this, It seems I can't export vector graphhics: the SVG and PDF files have a size of 0, and it seems to freeze Scilab (scilab-master-1380896469). So: does anyone have any suggestion to improve the rendering? Does anyone have a guess about the bug of vector graphic export? Best regards. -- Christophe Dang Ngoc Chan Mechanical calculation engineer Sidel Group Sidel Blowing & Services CS 60627, 76059 Le Havre cedex, France Avenue de la Patrouille de France Tel: 33(0)2 32 85 89 32 Fax: 33(0)2 32 85 91 17 ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: intersection_wave_surfaces.png Type: image/png Size: 34388 bytes Desc: intersection_wave_surfaces.png URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: defauts_arete.sce Type: application/octet-stream Size: 767 bytes Desc: defauts_arete.sce URL: From sdr at durietz.se Wed Jan 29 20:03:15 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 29 Jan 2014 20:03:15 +0100 Subject: [Scilab-users] bug report on http://wiki.scilab.org/howto/global%20and%20local%20variables In-Reply-To: <52E7EC00.6080405@inria.fr> References: <52E7D754.1080905@centre-cired.fr> <52E7EC00.6080405@inria.fr> Message-ID: <52E95073.4020904@durietz.se> On 2014-01-28 18:42, Serge Steer wrote: -------------------- > Le 28/01/2014 17:14, Adrien Vogt-Schilb a ?crit : >> The page does not mention "pause" >> > Just because pause behave similarily to functions with respect to > calling context And you think the fact that it behaves equal to (not similar to) functions is self-evident? Of course, I have read help *pause*: "Switch to the pause mode; inserted in the code of a function, pause interrupts the execution of the function: one receives a prompt symbol which indicates the level of the pause (e.g. -1->). The user is then in a new workspace in which all the lower-level variables (and in particular all the variable of the function) are available." I have therefore always thought that the given prompt symbol -1-> was the level of the function (see the link below), and that I still was at that level! Stefan >> http://wiki.scilab.org/howto/global%20and%20local%20variables >> >> sorry, o busy to file a bug >> > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sgougeon at free.fr Wed Jan 29 20:14:40 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 29 Jan 2014 20:14:40 +0100 Subject: [Scilab-users] Intersection of wavy surfaces In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F3262F6C20@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F3262F6C20@301EX00100.sidel.com> Message-ID: <52E95320.2090802@free.fr> Hello Christophe, Le 29/01/2014 16:56, Dang, Christophe a ?crit : > .../.. > > So: > > does anyone have any suggestion to improve the rendering? after surf(), you may use: s = gce(); s.thickness = 0; // removing the mesh > Does anyone have a guess about the bug of vector graphic export? It is reported there: http://bugzilla.scilab.org/show_bug.cgi?id=13150 It behaves like a serious memory leak. Samuel From cfuttrup at gmail.com Wed Jan 29 20:24:38 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 29 Jan 2014 20:24:38 +0100 Subject: [Scilab-users] New ATOMS toolbox - what now? Message-ID: <52E95576.9010504@gmail.com> Hi there I created an ATOMS toolbox for the CMA-ES optimization algorithm. You can find it here: https://atoms.scilab.org/toolboxes/CMA-ES Question 1: Status "This module is being packaged" ... How long shall I wait? I have waited 9 days so far. During creation of this ATOMS toolbox I could not test in Scilab because Scilab will not load ATOMS (zip) package because of a missing DESCRIPTION file. Very irritating, and without much help, so I made one - but it still didn't work. I uploaded the ATOMS toolbox even though strictly speaking I could not load it into Scilab. I was unable to test ... I wrote this bug report: http://bugzilla.scilab.org/show_bug.cgi?id=13209 As far as I can see this bug report has gotten nowhere. Someone please help me. Most importantly, please help me finish "packing" the CMA-ES ATOMS package, so that I can load it into Scilab and test it (and then improve the package - e.g. with much better documentation). I would like to add a good example to the help file (fully executable), explain the difference between functional and object-oriented execution, and I'd like to add some nice demos, e.g. of the entire BBOB test suite - that would be cool... but there's no point in doing this if the package is not up to Scilab code and/or cannot work 100%. I need help. /Claus --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com From sgougeon at free.fr Wed Jan 29 20:54:34 2014 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 29 Jan 2014 20:54:34 +0100 Subject: [Scilab-users] New ATOMS toolbox - what now? In-Reply-To: <52E95576.9010504@gmail.com> References: <52E95576.9010504@gmail.com> Message-ID: <52E95C7A.3070004@free.fr> Hi Claus, Before being available in automatic mode through ATOMS, you may - either use ATOMS functions to manage the package as downloaded by hand - or unzip it into the contrib directory, as an external package. Then, it should appear in the /Modules/ menu of the console (for forthcoming sessions), and be loadable by hand by clicking on it in the menu. HTH Samuel Le 29/01/2014 20:24, Claus Futtrup a ?crit : > .../... > > Someone please help me. > > Most importantly, please help me finish "packing" the CMA-ES ATOMS > package, so that I can load it into Scilab and test it (and then > improve the package - e.g. with much better documentation). > > I would like to add a good example to the help file (fully > executable), explain the difference between functional and > object-oriented execution, and I'd like to add some nice demos, e.g. > of the entire BBOB test suite - that would be cool... but there's no > point in doing this if the package is not up to Scilab code and/or > cannot work 100%. > > I need help. > > /Claus -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdr at durietz.se Wed Jan 29 21:35:35 2014 From: sdr at durietz.se (Stefan Du Rietz) Date: Wed, 29 Jan 2014 21:35:35 +0100 Subject: [Scilab-users] bug report on http://wiki.scilab.org/howto/global%20and%20local%20variables In-Reply-To: <52E95073.4020904@durietz.se> References: <52E7D754.1080905@centre-cired.fr> <52E7EC00.6080405@inria.fr> <52E95073.4020904@durietz.se> Message-ID: <52E96617.6070205@durietz.se> On 2014-01-29 20:03, Stefan Du Rietz wrote: -------------------- > On 2014-01-28 18:42, Serge Steer wrote: > -------------------- >> Le 28/01/2014 17:14, Adrien Vogt-Schilb a ?crit : >>> The page does not mention "pause" >>> >> Just because pause behave similarily to functions with respect to >> calling context > > And you think the fact that it behaves equal to (not similar to) > functions is self-evident? > > Of course, I have read help *pause*: > > "Switch to the pause mode; inserted in the code of a function, pause > interrupts the execution of the function: one receives a prompt symbol > which indicates the level of the pause (e.g. -1->). The user is then > in a new workspace in which all the lower-level variables (and in > particular all the variable of the function) are available." > > I have therefore always thought that the given prompt symbol -1-> was > the level of the function (see the link below), and that I still was > at that level! > And, as I have earlier worked with Matlab, I therefore believed that *pause* worked like its *keyboard*: http://www.mathworks.se/help/matlab/ref/keyboard.html keyboard , when placed in a program .m file, stops execution of the file and gives control to the keyboard. The special status is indicated by a K appearing before the prompt. You can examine or change variables; all MATLAB? commands are valid. This keyboard mode is useful for debugging your functions. > Stefan > >>> http://wiki.scilab.org/howto/global%20and%20local%20variables >>> >>> sorry, o busy to file a bug >>> >> >> _______________________________________________ >> 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 > From cfuttrup at gmail.com Wed Jan 29 21:56:33 2014 From: cfuttrup at gmail.com (Claus Futtrup) Date: Wed, 29 Jan 2014 21:56:33 +0100 Subject: [Scilab-users] New ATOMS toolbox - what now? In-Reply-To: <52E95C7A.3070004@free.fr> References: <52E95576.9010504@gmail.com> <52E95C7A.3070004@free.fr> Message-ID: <52E96B01.1070708@gmail.com> Dear Samuel I have adapted the original source code from Nikolaus Hansen. His source for Scilab 5 works perfectly fine. I have all the reason to believe that downloading the ZIP file and manually extracting it into a work directory will work just fine. This is how I have used the source from Nikolaus Hansen for 2-3 years now. I have also had my friend S?bastien Salmon (author of the PSO toolbox) download the zip file from below link to the CMA-ES ATOMS package. He confirms it install manually just fine. What I need is a package where I can write "atomsInstall(package)" and it will install. Unfortunately, as can be seen from the bugzilla report, I cannot do this. I get this error: !--error 10000 atomsDESCRIPTIONread: The file 'C:\Users\Claus\AppData\Local\SCILAB~1.1\.atoms\tmp_1390641250\CMA-ES\DESCRIPTION' is not well formated at line 25 at line 224 of function atomsDESCRIPTIONread called by : at line 160 of function atomsInstall called by : ilab54/Archives/CMA-ES.zip" Please help me setup the ATOMS zip file, so that this error goes away and the package can be installed + used as intended. Send the good zip file to me. The rest I can take care of (run some development loops to make the package perfect). Best regards, Claus On 1/29/2014 20:54, Samuel Gougeon wrote: > Hi Claus, > > Before being available in automatic mode through ATOMS, you may > - either use ATOMS functions to manage the package as downloaded by hand > - or unzip it into the contrib directory, as an external package. > Then, it should appear > in the /Modules/ menu of the console (for forthcoming sessions), and > be loadable by hand > by clicking on it in the menu. > > HTH > Samuel > > Le 29/01/2014 20:24, Claus Futtrup a ?crit : >> .../... >> >> Someone please help me. >> >> Most importantly, please help me finish "packing" the CMA-ES ATOMS >> package, so that I can load it into Scilab and test it (and then >> improve the package - e.g. with much better documentation). >> >> I would like to add a good example to the help file (fully >> executable), explain the difference between functional and >> object-oriented execution, and I'd like to add some nice demos, e.g. >> of the entire BBOB test suite - that would be cool... but there's no >> point in doing this if the package is not up to Scilab code and/or >> cannot work 100%. >> >> I need help. >> >> /Claus > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matiasb at gmail.com Thu Jan 30 03:58:49 2014 From: matiasb at gmail.com (Matias Bonaventura) Date: Thu, 30 Jan 2014 00:58:49 -0200 Subject: [Scilab-users] Fwd: Crush using plot in ubuntu + virtual box In-Reply-To: References: Message-ID: Hi, I have an ubuntu 12 running in a VirtualBox. Scilab is unable to plot any simple graph (Im testing with "plot(1,1)"). The graph window appears completly black and it stops responding. I found some posts about this problem, and I already tried several things but nothing fixed my installation. It would be awsome if some can give me a hint to try to solve the issue as Im stuck now. Below you can find all the details of the environment and the things I already tried. Thanks!! *Environment* The host OS is a windows 8, with a VirtualBox 4.3.6. Im running Ubuntu 12 and Scilab 5.3.3 (I can not use another version of Scilab as it is linked to another software). I already reinstall the lastest VirtualMachine Additions and enabled 3D acceleration. Without 3D acceleration scilab is able to graph but Ubuntu run really sloooooowww. *The problem * *1) *plot (1,1) When I execute "plot(1, 1)" I get the following error and a black graphic window (debug info at the end): !--error 999 A native error occurred during the drawing of the figure. Description: Illegally formatted version identifier: "null" ...... *2)* I tried using "system_setproperty("jogl.gljpanel.nohw","");" But I get exacly the same problem *3) *With usecanvas(%f) I get a different error (debug info also at the end): ->plot(1,1) Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Unable to select one of the provided GLCapabilities at javax.media.opengl.DefaultGLCapabilitiesChooser.chooseCapabilities(DefaultGLCapabilitiesChooser.java:218) at com.sun.opengl.impl.x11.X11GLDrawable.chooseVisual(X11GLDrawable.java:142) ......... 4) Disabling 3D Aceleration from virtualBox solves the issue but makes ubuntu run too slow. *debug info with usecanvas(%t)* -->[a,b]=getdebuginfo() b = !Compilation date: Jun 14 2012 ! ! ! !Compilation time: 03:41:20 ! ! ! !XML version: 2.7.8 ! ! ! !Compiler Architecture: X86 ! a = !Total memory: 5109284 ! ! ! !Used memory: 1605504 ! ! ! !Free memory: 3503780 ! ! ! !Shared memory: 0 ! ! ! !Buffers memory: 130640 ! ! ! !Cached memory: 668376 ! ! ! !Used -/+ buffers/cache: 806488 ! ! ! !Free -/+ buffers/cache: 4302796 ! ! ! !Total swap: 5174268 ! ! ! !Used swap: 0 ! ! ! !Free swap: 5174268 ! ! ! !SCI: /usr/share/scilab/ ! ! ! !SCIHOME: /home/matias/.Scilab/scilab-5.3.3 ! *debug info with usecanvas(%f)* -->[a,b]=getdebuginfo() b = !Compilation date: Jun 14 2012 ! ! ! !Compilation time: 03:41:20 ! ! ! !XML version: 2.7.8 ! ! ! !Compiler Architecture: X86 ! a = !Total memory: 5109284 ! ! ! !Used memory: 1589628 ! ! ! !Free memory: 3519656 ! ! ! !Shared memory: 0 ! ! ! !Buffers memory: 141296 ! ! ! !Cached memory: 661748 ! ! ! !Used -/+ buffers/cache: 786584 ! ! ! !Free -/+ buffers/cache: 4322700 ! ! ! !Total swap: 5174268 ! ! ! !Used swap: 0 ! ! ! !Free swap: 5174268 ! ! ! !SCI: /usr/share/scilab/ ! ! ! !SCIHOME: /home/matias/.Scilab/scilab-5.3.3 ! -- :-) M.A.T.I.A.S. :-) -- :-) M.A.T.I.A.S. :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Thu Jan 30 10:00:52 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 30 Jan 2014 10:00:52 +0100 Subject: [Scilab-users] Intersection of wavy surfaces In-Reply-To: <52E95320.2090802@free.fr> References: <3B5FFC67498DFF49AE7271A584867D16F3262F6C20@301EX00100.sidel.com> <52E95320.2090802@free.fr> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F326346A0F@301EX00100.sidel.com> Hello, De la part de Samuel Gougeon Envoy? : mercredi 29 janvier 2014 20:15 > > does anyone have any suggestion to improve the rendering? > after surf(), you may use: > s = gce(); > s.thickness = 0; // removing the mesh Thanks a lot, I was a little messed up with all the possible parameters, tried param3d, param3d1, surf, mesh, ... with a thickness of 0 and a grey scale in z, its quite nice (see attached file). Maybe I'll add some loose grid to have it somewhat clearer: I noticed that whereas the mesh() creates a rester etfect, the param3d() creates lines that go ,to the other surface, but only in one direction... BTW, is there a way to have a grey scale in x or y? > > Does anyone have a guess about the bug of vector graphic export? > It is reported there: http://bugzilla.scilab.org/show_bug.cgi?id=13150 > It behaves like a serious memory leak. In my case, the PNG export is OK. ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: intersection_wave_surfaces_greyscale.png Type: image/png Size: 13156 bytes Desc: intersection_wave_surfaces_greyscale.png URL: From Christophe.Dang at sidel.com Thu Jan 30 11:11:30 2014 From: Christophe.Dang at sidel.com (Dang, Christophe) Date: Thu, 30 Jan 2014 11:11:30 +0100 Subject: [Scilab-users] Intersection of wavy surfaces In-Reply-To: <3B5FFC67498DFF49AE7271A584867D16F326346A0F@301EX00100.sidel.com> References: <3B5FFC67498DFF49AE7271A584867D16F3262F6C20@301EX00100.sidel.com> <52E95320.2090802@free.fr> <3B5FFC67498DFF49AE7271A584867D16F326346A0F@301EX00100.sidel.com> Message-ID: <3B5FFC67498DFF49AE7271A584867D16F326346C56@301EX00100.sidel.com> Sorry for the typing errors in my previous message: please read "I noticed that whereas the mesh() creates a raster effect, the param3d() creates lines that go to the other surface, but only in one direction..." You can see the final images and source code here: https://commons.wikimedia.org/wiki/File:Defaut_de_surface_cumules_sur_arete.png https://commons.wikimedia.org/wiki/File:Defaut_de_surface_cumules_sur_arete_autre_direction.png So, I still have this question: is it possible to have a grey scale in x or y? Best regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer ______________________________________________________________________ This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. ______________________________________________________________________ From vrsitaramanietflists at gmail.com Thu Jan 30 11:48:18 2014 From: vrsitaramanietflists at gmail.com (Sitaraman Vilayannur) Date: Thu, 30 Jan 2014 16:18:18 +0530 Subject: [Scilab-users] Javasci noclassDefFoundError when run in Spring framework Message-ID: Hi I am attelmpting to use Javasci. I am able to run javasci as a standalone program in eclipse, however when i run it as a part of a sptring servelet i get the following exception though the jars are included in the classpath. I have tried configuring the build path pointing to the two jars and also tried adding maven external jars dependency via system scope. This happens only when run as a spring application. Thanks Sitaraman org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: org/scilab/modules/javasci/Scilab org.springframework.web.servlet.DispatcherServlet.triggerAfterCompletionWithError(DispatcherServlet.java:1259) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) *root cause* java.lang.NoClassDefFoundError: org/scilab/modules/javasci/Scilab com.gdpl.jfw.service.utils.ScilabInterface.execute(ScilabInterface.java:35) com.gdpl.jfw.controllers.HomeController.successLogin(HomeController.java:61) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:601) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) *root cause* java.lang.ClassNotFoundException: org.scilab.modules.javasci.Scilab org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645) org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1491) com.gdpl.jfw.service.utils.ScilabInterface.execute(ScilabInterface.java:35) com.gdpl.jfw.controllers.HomeController.successLogin(HomeController.java:61) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:601) org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:440) org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:428) org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925) org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856) org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:936) org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:838) javax.servlet.http.HttpServlet.service(HttpServlet.java:637) org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:180) org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:109) org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355) org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149) org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346) org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259) -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.bignier at scilab-enterprises.com Thu Jan 30 14:42:05 2014 From: paul.bignier at scilab-enterprises.com (Paul Bignier) Date: Thu, 30 Jan 2014 14:42:05 +0100 Subject: [Scilab-users] Fwd: Crush using plot in ubuntu + virtual box In-Reply-To: References: Message-ID: <52EA56AD.1070900@scilab-enterprises.com> Hello Matias, It may be driver-related. Try to check your install, notably by making tests on your host. Or maybe you could test a Scilab 5.4.1 to see if it is a Scilab version problem. Hope this helps, Cordially, Paul. On 01/30/2014 03:58 AM, Matias Bonaventura wrote: > > Hi, > > I have an ubuntu 12 running in a VirtualBox. Scilab is unable to plot > any simple graph (Im testing with "plot(1,1)"). The graph window > appears completly black and it stops responding. > I found some posts about this problem, and I already tried several > things but nothing fixed my installation. > It would be awsome if some can give me a hint to try to solve the > issue as Im stuck now. Below you can find all the details of the > environment and the things I already tried. > > Thanks!! > > *Environment* > The host OS is a windows 8, with a VirtualBox 4.3.6. Im running Ubuntu > 12 and Scilab 5.3.3 (I can not use another version of Scilab as it is > linked to another software). > I already reinstall the lastest VirtualMachine Additions and enabled > 3D acceleration. > Without 3D acceleration scilab is able to graph but Ubuntu run really > sloooooowww. > > *The problem > * > *1) *plot (1,1) > When I execute "plot(1, 1)" I get the following error and a black > graphic window (debug info at the end): > !--error 999 > A native error occurred during the drawing of the figure. > Description: Illegally formatted version identifier: "null" > ...... > > *2)* I tried using "system_setproperty("jogl.gljpanel.nohw","");" > But I get exacly the same problem > > *3) *With usecanvas(%f) I get a different error (debug info also at > the end): > ->plot(1,1) > Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: > Unable to select one of the provided GLCapabilities > at > javax.media.opengl.DefaultGLCapabilitiesChooser.chooseCapabilities(DefaultGLCapabilitiesChooser.java:218) > at > com.sun.opengl.impl.x11.X11GLDrawable.chooseVisual(X11GLDrawable.java:142) > ......... > > 4) Disabling 3D Aceleration from virtualBox solves the issue but makes > ubuntu run too slow. > > > *debug info with usecanvas(%t)* > -->[a,b]=getdebuginfo() > b = > > !Compilation date: Jun 14 2012 ! > ! ! > !Compilation time: 03:41:20 ! > ! ! > !XML version: 2.7.8 ! > ! ! > !Compiler Architecture: X86 ! > a = > > !Total memory: 5109284 ! > ! ! > !Used memory: 1605504 ! > ! ! > !Free memory: 3503780 ! > ! ! > !Shared memory: 0 ! > ! ! > !Buffers memory: 130640 ! > ! ! > !Cached memory: 668376 ! > ! ! > !Used -/+ buffers/cache: 806488 ! > ! ! > !Free -/+ buffers/cache: 4302796 ! > ! ! > !Total swap: 5174268 ! > ! ! > !Used swap: 0 ! > ! ! > !Free swap: 5174268 ! > ! ! > !SCI: /usr/share/scilab/ ! > ! ! > !SCIHOME: /home/matias/.Scilab/scilab-5.3.3 ! > > *debug info with usecanvas(%f)* > -->[a,b]=getdebuginfo() > b = > > !Compilation date: Jun 14 2012 ! > ! ! > !Compilation time: 03:41:20 ! > ! ! > !XML version: 2.7.8 ! > ! ! > !Compiler Architecture: X86 ! > a = > > !Total memory: 5109284 ! > ! ! > !Used memory: 1589628 ! > ! ! > !Free memory: 3519656 ! > ! ! > !Shared memory: 0 ! > ! ! > !Buffers memory: 141296 ! > ! ! > !Cached memory: 661748 ! > ! ! > !Used -/+ buffers/cache: 786584 ! > ! ! > !Free -/+ buffers/cache: 4322700 ! > ! ! > !Total swap: 5174268 ! > ! ! > !Used swap: 0 ! > ! ! > !Free swap: 5174268 ! > ! ! > !SCI: /usr/share/scilab/ ! > ! ! > !SCIHOME: /home/matias/.Scilab/scilab-5.3.3 ! > > > -- > :-) M.A.T.I.A.S. :-) > > > > -- > :-) M.A.T.I.A.S. :-) > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Paul BIGNIER Scilab Engineer & Xcos Developer ----------------------------------------------------------- Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles, France Phone: +33.1.80.77.04.69 http://www.scilab-enterprises.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From communication at scilab-enterprises.com Fri Jan 31 08:55:09 2014 From: communication at scilab-enterprises.com (Scilab Communications) Date: Fri, 31 Jan 2014 08:55:09 +0100 Subject: [Scilab-users] Last day to submit your paper for ScilabTEC 2014 Message-ID: <52EB56DD.4040703@scilab-enterprises.com> Dear Scilab users, ScilabTEC 2014, International Scilab Users Conference, will be held in Paris, France, on 15-16 May, 2014. It is the last day to submit an abstract of 400 words on subject relevant to the objectives of the conference that is to say the use of Scilab or Xcos in the main scientific domains using numerical computation. Abstracts should be submitted electronically at scilabtec at scilab-enterprises.com. For more information, please visit the conference website http://scilabtec.com/ Best Regards -- Communication Department, Scilab Enterprises 143bis rue Yves Le Coz - 78000 Versailles (France) http://www.scilab-enterprises.com - http://www.scilab.org -------------- next part -------------- An HTML attachment was scrubbed... URL: