From n.strelkov at gmail.com Thu Aug 1 12:59:51 2019 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Thu, 1 Aug 2019 13:59:51 +0300 Subject: [Scilab-users] =?utf-8?q?ATOMS_does_not_work_on_macOS_Mojave_10?= =?utf-8?b?LjE0LjYgLSBpcyBpdCBhIGJ1Zz8g0JLRhdC+0LTRj9GJ0LjQtSB4IElF?= =?utf-8?q?EE_x?= Message-ID: Dear community! I have strange behavior of ATOMS in Scilab 6.0.2 (downloaded from official link - http://www.utc.fr/~mottelet/scilab/download/6.0.2/scilab-6.0.2-x86_64.dmg ) on macOS Mojave 10.14.6. The ATOMS does not work on Scilab which normally launched from Applications menu of from launcher (in normal traditional GUI way). I got the following screenshot if I simply open Application -> "Module Manager - ATOMS" ends with dialog window with message "No ATOMS module is available. Please, check your Internet connection or make sure that your OS is compatible with ATOMS.". See attached screenshot - https://bugzilla.scilab.org/attachment.cgi?id=4987 . Installation of single package also seems to be failed: --> atomsInstall('animaGIF') Scanning repository http://atoms.scilab.org/6.0 ... Done at line 65 of function atomsDESCRIPTIONread ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONread.sci line 125 ) at line 227 of function atomsDESCRIPTIONget ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/atoms/macros/atoms_internals/atomsDESCRIPTIONget.sci line 246 ) at line 31 of function atomsIsPackage ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/atoms/macros/atoms_internals/atomsIsPackage.sci line 47 ) at line 69 of function atomsInstallList ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/atoms/macros/atoms_internals/atomsInstallList.sci line 108 ) at line 233 of function atomsInstall ( /Applications/scilab-6.0.2.app/Contents/MacOS/share/scilab/modules/atoms/macros/atomsInstall.sci line 249 ) regexp: Unknown error. On next Scilab start the ATOMS module is not installed. When I launch Scilab from Terminal with /Applications/scilab-6.0.2.app/Contents/MacOS/bin/scilab-bin and try to install ATOMS from Scilab Console - I get the following error output in the terminal: dyld: Library not loaded: /Users/mottelet/git/scilab_dist/Scilab.app/Contents/MacOS/lib/scilab/libscilab-cli.6.dylib Referenced from: /Applications/scilab-6.0.2.app/Contents/MacOS/bin/scilab-bin Reason: image not found Abort trap: 6 logout Saving session... ...copying shared history... ...saving history...truncating history files... ...completed. [Process completed] I have already reported a bug - https://bugzilla.scilab.org/show_bug.cgi?id=16159 . Is it just me? Does anyone have the same problem on macOS Mojave or High Sierra? -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,developer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From sl1800 at rochester.rr.com Thu Aug 1 13:24:49 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Thu, 1 Aug 2019 04:24:49 -0700 (MST) Subject: [Scilab-users] How to print GUI window? Message-ID: <1564658689236-0.post@n3.nabble.com> Hello, I am attempting to print the GUI window using various commands in a callback function. A Java exception occurs. For example the following is the error in the console window: printfigure: A Java exception arisen: Exception when calling Java method : org.scilab.modules.gui.bridge.tab.SwingScilabStaticPanel cannot be cast to org.scilab.modules.gui.bridge.tab.SwingScilabDockablePanel at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown Source) Is this a bug in Scilab? How do you directly print a GUI window in Scilab? Exporting window image to a file and then opening other software to print is unacceptable. Thanks for the effort to resolve this issue. Please advise, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From rouxph.22 at gmail.com Thu Aug 1 14:22:30 2019 From: rouxph.22 at gmail.com (philippe) Date: Thu, 1 Aug 2019 14:22:30 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 Message-ID: Hi, I've just move to a new laptop and I try to rebuild toolboxes I've created for scilab-6.0.2, every thing looks fine except that all unit tests fail ! I realize that in fact ALL SCILAB unit tests fail with the same error message : --> test_run([],[],'no_check_ref') TMPDIR = /tmp/SCI_TMP_7851_f13kzL Module 001/074 - [action_binding] : Module 002/074 - [api_scilab] : 001/053 - [api_scilab] booleanExample........................failed: Slave Scilab exited with error code 127 002/053 - [api_scilab] booleanSparseExample..................failed: Slave Scilab exited with error code 127 003/053 - [api_scilab] boolean_writing_api...................failed: Slave Scilab exited with error code 127 004/053 - [api_scilab] calloverloadfunction_api..............failed: Slave Scilab exited with error code 127 005/053 - [api_scilab] check_matrix_dimension................failed: Slave Scilab exited with error code 127 006/053 - [api_scilab] common_function.......................failed: Slave Scilab exited with error code 127 007/053 - [api_scilab] common_list_api.......................failed: Slave Scilab exited with error code 127 Can someone tell me What is wrong here ? Philippe From sgougeon at free.fr Thu Aug 1 18:19:19 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Aug 2019 18:19:19 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: References: Message-ID: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> Le 01/08/2019 ? 14:22, philippe a ?crit?: > Hi, > > I've just move to a new laptop and I try to rebuild toolboxes I've > created for scilab-6.0.2, every thing looks fine except that all unit > tests fail ! I realize that in fact ALL SCILAB unit tests fail? with > the same error message : > > > --> test_run([],[],'no_check_ref') > ?? TMPDIR = /tmp/SCI_TMP_7851_f13kzL > > ?Module? 001/074 - [action_binding] : > > > ?Module? 002/074 - [api_scilab] : > > ?? 001/053 - [api_scilab] > booleanExample........................failed: Slave Scilab exited with > error code 127 > ?? 002/053 - [api_scilab] > booleanSparseExample..................failed: Slave Scilab exited with > error code 127 > ?? 003/053 - [api_scilab] > boolean_writing_api...................failed: Slave Scilab exited with > error code 127 > ?? 004/053 - [api_scilab] > calloverloadfunction_api..............failed: Slave Scilab exited with > error code 127 > ?? 005/053 - [api_scilab] > check_matrix_dimension................failed: Slave Scilab exited with > error code 127 > ?? 006/053 - [api_scilab] > common_function.......................failed: Slave Scilab exited with > error code 127 > ?? 007/053 - [api_scilab] > common_list_api.......................failed: Slave Scilab exited with > error code 127 Yes, it's a bad start, but it's just for the api_scilab module (unfortunately it's the first tested one :/) Just try with the next one: test_run("ast",[],"no_check_ref") It's OK. Samuel From sl1800 at rochester.rr.com Thu Aug 1 20:34:40 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Thu, 1 Aug 2019 11:34:40 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564684480905-0.post@n3.nabble.com> Hello, Further test with a simple plot figure does print correctly. So this issue is somehow related to a larger window GUI with multiple objects including a plot. There are three push buttons and list boxes. The push buttons have call backs. One to open a windows file dialog window. Which works correctly. The call back routine includes code to read an Excel file, plot data, and fill the list boxes with data. The second push button closes the Scilab session. This works correctly. The third push button includes the printfigure(get(gcf(), "figure_id")) command. This command opens the windows print dialog correctly. However, when the dialog print selection is clicked the following Java exception occurs. printfigure: A Java exception arisen: Exception when calling Java method : org.scilab.modules.gui.bridge.tab.SwingScilabStaticPanel cannot be cast to org.scilab.modules.gui.bridge.tab.SwingScilabDockablePanel at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown Source) org.scilab.modules.gui.bridge.tab.SwingScilabStaticPanel cannot be cast to org.scilab.modules.gui.bridge.tab.SwingScilabDockablePanel at org.scilab.modules.gui.bridge.CallScilabBridge.printFigure(Unknown Source) Hope this helps troubleshoot the Scilab environment. Please advise, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Aug 1 21:50:02 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Aug 2019 21:50:02 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564684480905-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564684480905-0.post@n3.nabble.com> Message-ID: Le 01/08/2019 ? 20:34, VTX1801 a ?crit?: > Hello, > Further test with a simple plot figure does print correctly. > So this issue is somehow related to a larger window GUI with multiple > objects including a plot. There are potentially 2 issues : 1. your GUI is not dockable. The java error message you get is about that. 2. Even with a dockable GUI, AFAIK and as you can check the export fails as soon as there is a uicontrol component in the exported figure : it yields to a white image. So, for the time being, it looks hard to not use an external software to export the GUI as an image. Fortunately, softwares can be called from Scilab. You will find here-below some code to be run on Windows (it's your OS, according to your report). It uses the famous IrfanView free software. This code works perfectly for me. It should be easily adaptable to your case. Best regards. Samuel // Generate a GUI (from demos)exec("SCI/modules/gui/demos/uicontrol_plot3d.dem.sce",-1);f=findobj("figure_id",100001);f.figure_position([12])=[00];// Imposes the GUI position on the screenf.visible="on";// Brings the GUI window on the fronts=f.figure_size;filename="capture_$U(Y-%m-%d %H%M%S).png";// with a timestamp in the file namefilename="capture.png";// simple fixed file nameiview_path=findfileassociation(".png");// or replace with the fixed known path// to IrfanView .exe on your computercmd="%s /capture=7=(0,0,%d,%d) /convert=%s";cmd=msprintf(cmd,iview_path,s(1),s(2),filename);status=host(cmd);winopen(filename); -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Thu Aug 1 22:16:06 2019 From: rouxph.22 at gmail.com (philippe) Date: Thu, 1 Aug 2019 22:16:06 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> Message-ID: Le 01/08/2019 ? 18:19, Samuel Gougeon a ?crit?: > > Yes, it's a bad start, but it's just for the api_scilab module > (unfortunately it's the first tested one :/) > Just try with the next one: > test_run("ast",[],"no_check_ref") no all tests fail (excepts those who are skipped automatically) : --> test_run("ast",[],"no_check_ref") TMPDIR = /tmp/SCI_TMP_20383_fZszyE Module 001/001 - [ast] : 001/154 - [ast] Sand.........................................failed: Slave Scilab exited with error code 127 002/154 - [ast] Sor..........................................failed: Slave Scilab exited with error code 127 003/154 - [ast] addition.....................................failed: Slave Scilab exited with error code 127 004/154 - [ast] addition_output_type.........................failed: Slave Scilab exited with error code 127 005/154 - [ast] analysis1....................................failed: Slave Scilab exited with error code 127 006/154 - [ast] analysis2....................................skipped: not yet fixed .... -------------------------------------------------------------------------- Summary tests 150 - 100 % passed 0 - 0 % failed 150 - 100 % skipped 4 length 6.18 sec -------------------------------------------------------------------------- Details TEST : [ast] Sand failed: Slave Scilab exited with error code 127 TEST : [ast] Sor failed: Slave Scilab exited with error code 127 TEST : [ast] addition failed: Slave Scilab exited with error code 127 TEST : [ast] addition_output_type failed: Slave Scilab exited with error code 127 TEST : [ast] analysis1 failed: Slave Scilab exited with error code 127 fresh install of scilab-6.0.2 on ubuntu 18.04 : Version de Scilab : 6.0.1.1550134035 <=supposed to be scilab-6.0.2! Syst?me d'exploitation : Linux 4.15.0-1045-oem Version Java : 1.8.0_151 Informations sur l'environnement d'ex?cution Java : Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Informations sur la machine virtuelle Java : Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode) Sp?cifications du fabricant : Oracle Corporation but fortunately uman looks to work now ;-) Best regards Philippe From sgougeon at free.fr Thu Aug 1 22:29:52 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Aug 2019 22:29:52 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> Message-ID: <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> Le 01/08/2019 ? 22:16, philippe a ?crit?: > Le 01/08/2019 ? 18:19, Samuel Gougeon a ?crit?: >> >> Yes, it's a bad start, but it's just for the api_scilab module >> (unfortunately it's the first tested one :/) >> Just try with the next one: >> test_run("ast",[],"no_check_ref") > > > no all tests fail (excepts those who are skipped automatically) : > Sorry for you. I can't reproduce on Win7. You may search to which issue the exit code 127 (coming from the shell of your OS) corresponds. In addition,? do the tests pass when you exec() them (for instance from Scinotes) ? From sgougeon at free.fr Thu Aug 1 22:49:47 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Aug 2019 22:49:47 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> Message-ID: Le 01/08/2019 ? 22:16, philippe a ?crit?: > Le 01/08/2019 ? 18:19, Samuel Gougeon a ?crit?: >> >> Yes, it's a bad start, but it's just for the api_scilab module >> (unfortunately it's the first tested one :/) >> Just try with the next one: >> test_run("ast",[],"no_check_ref") > > > no all tests fail (excepts those who are skipped automatically) : This could come from an autoloaded ATOMS module, if any. You may try canceling the autoloading of all your installed modules, and then rerun test_run. [a new test_run() option running all slave sessions with the -noatomsautoload option would be useful]. From sl1800 at rochester.rr.com Thu Aug 1 23:04:45 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Thu, 1 Aug 2019 14:04:45 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564693485411-0.post@n3.nabble.com> Further testing an some progress. Suggestion of GUI window not dockable. Looked at the properties of the figure and there is a dockable property. The dockable property was set to 'off'. Set the dockable property to 'on'. Executed print command and no Java exception error. figid = f("figure_id"); disp(figid); status = printfigure(figid); disp(status); Console displays 0 for figid. Console displays T for status. One page is printed on the printer. However, the printed image is about one third of the plot figure only. As though the scale of the print is zoomed in. Looking for some property to set print to scale whole image to fill printed sheet. Is there a Scilab printer property for this purpose? Suggestions? Please advise, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Aug 1 23:25:13 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Aug 2019 23:25:13 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564693485411-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564693485411-0.post@n3.nabble.com> Message-ID: <74905ee9-fa9e-4417-5747-62b915b131cc@free.fr> Le 01/08/2019 ? 23:04, VTX1801 a ?crit?: > Further testing an some progress. > > Suggestion of GUI window not dockable. > Looked at the properties of the figure and there is a dockable property. > The dockable property was set to 'off'. > Set the dockable property to 'on'. > > Executed print command and no Java exception error. Great. > figid = f("figure_id"); > disp(figid); > status = printfigure(figid); > disp(status); > > Console displays 0 for figid. > Console displays T for status. > > One page is printed on the printer. > However, the printed image is about one third of the plot figure only. > As though the scale of the print is zoomed in. > > Looking for some property to set print to scale whole image to fill printed sheet. > Is there a Scilab printer property for this purpose? Not AFAIK, even through printsetupbox(). But you can resize the GUI before exporting it, through its handle with f.axes_size. Could you please try with the trivial example below and check whether the uicontrol appears on the image (before planning to resize and print it ;-): plot2d() uicontrol("style","text","string","Test","position",[10,10,100,20]); xs2png(gcf(),"test.png") winopen("test.png") -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Aug 1 23:28:29 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Aug 2019 23:28:29 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> Message-ID: Le 01/08/2019 ? 22:49, Samuel Gougeon a ?crit?: > Le 01/08/2019 ? 22:16, philippe a ?crit?: >> ... >> >> no all tests fail (excepts those who are skipped automatically) : > > > This could come from an autoloaded ATOMS module, if any. > You may try canceling the autoloading of all your installed modules, > and then rerun test_run. > > [a new test_run() option running all slave sessions with the > -noatomsautoload option would be useful]. Reported as bug 16161 . Thanks for this opportunity to improve test_run(). -------------- next part -------------- An HTML attachment was scrubbed... URL: From sl1800 at rochester.rr.com Thu Aug 1 23:40:57 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Thu, 1 Aug 2019 14:40:57 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564695657711-0.post@n3.nabble.com> Copied your test code to new Scilab program. Ran the code. Graphic window appears with plot graph and uicontrol text object at the bottom with the word Test. Photos.test window appears with only the plot graph. The uicontrol is missing. Is the plot graph the graphic that is exported? Do you need to assign the whole figure to export? Please advise, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Thu Aug 1 23:48:12 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Aug 2019 23:48:12 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564695657711-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564695657711-0.post@n3.nabble.com> Message-ID: <27e1c49f-e6f1-0c71-4be3-8550cdf995d3@free.fr> Le 01/08/2019 ? 23:40, VTX1801 a ?crit?: > Copied your test code to new Scilab program. > Ran the code. > Graphic window appears with plot graph and uicontrol text object at the > bottom with the word Test. > Photos.test window appears with only the plot graph. > The uicontrol is missing. So the bug 14502 is still alive, as expected and already checked. > Is the plot graph the graphic that is exported? > Do you need to assign the whole figure to export? I don't understand what is Photos.test, and your questions. The scripts only generate in your working directory a test.png or capture.png image file -- that is the export/capture of the figure --, and opens it in your image viewer. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Thu Aug 1 23:51:33 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Thu, 1 Aug 2019 23:51:33 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564684480905-0.post@n3.nabble.com> Message-ID: Le 01/08/2019 ? 21:50, Samuel Gougeon a ?crit?: > > // Generate a GUI (from > demos)exec("SCI/modules/gui/demos/uicontrol_plot3d.dem.sce",-1);f=findobj("figure_id",100001);f.figure_position([12])=[00];// > Imposes the GUI position on the screenf.visible="on";// Brings the GUI > window on the fronts=f.figure_size;filename="capture_$U(Y-%m-%d > %H%M%S).png";// with a timestamp in the file > namefilename="capture.png";// simple fixed file > nameiview_path=findfileassociation(".png");// or replace with the > fixed known path// to IrfanView .exe on your computercmd="%s > /capture=7=(0,0,%d,%d) > /convert=%s";cmd=msprintf(cmd,iview_path,s(1),s(2),filename);status=host(cmd);winopen(filename); Other Irfanview command-line options exist and can be included in the command string, to print the capture even without saving it in any file, namely: /aspectratio /resize_long=size /resize_short=size /rotate_r /rotate_l /print etc The irfanview help is extensive and very clear, with many examples. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Aug 2 00:09:16 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 2 Aug 2019 00:09:16 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564695657711-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564695657711-0.post@n3.nabble.com> Message-ID: <4581800b-5ba3-8a35-3252-07039236b362@free.fr> Le 01/08/2019 ? 23:40, VTX1801 a ?crit?: > Copied your test code to new Scilab program. > Ran the code. > Graphic window appears with plot graph and uicontrol text object at the > bottom with the word Test. > Photos.test window appears with only the plot graph. > The uicontrol is missing. > > Is the plot graph the graphic that is exported? > Do you need to assign the whole figure to export? Here is another version of the code, to capture only the graphical area, without the window borders: // Generate a GUI (from demos) exec("SCI/modules/gui/demos/uicontrol_plot3d.dem.sce",-1); f = findobj("figure_id",100001); f.visible = "on"; // Brings the GUI window on the front fs = f.figure_size; as = f.axes_size; border_width = (fs(1)-as(1))/2; header_height = fs(2)-as(2)-border_width; // Hiding the left border and header of the window out of screen f.figure_position([1 2]) = [-border_width -header_height]; filename = "capture_$U(Y-%m-%d %H%M%S).png"; // with a timestamp in the file name filename = "capture.png"; // simple fixed file name iview_path = findfileassociation(".png"); // or replace with the fixed known path // to IrfanView on your computer cmd = "%s /capture=7=(0,0,%d,%d) /convert=%s"; cmd = msprintf(cmd, iview_path, as(1), as(2), filename); status = host(cmd); winopen(filename); Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sl1800 at rochester.rr.com Fri Aug 2 00:13:51 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Thu, 1 Aug 2019 15:13:51 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <27e1c49f-e6f1-0c71-4be3-8550cdf995d3@free.fr> References: <1564658689236-0.post@n3.nabble.com> <1564695657711-0.post@n3.nabble.com> <27e1c49f-e6f1-0c71-4be3-8550cdf995d3@free.fr> Message-ID: <1564697631857-0.post@n3.nabble.com> Photos is the default image viewer. The question regarding the figure is: Are the plot and the uicontrol considered children of the figure? Is there a syntax that would include all children of the figure to print? -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Fri Aug 2 00:26:52 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 2 Aug 2019 00:26:52 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564697631857-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564695657711-0.post@n3.nabble.com> <27e1c49f-e6f1-0c71-4be3-8550cdf995d3@free.fr> <1564697631857-0.post@n3.nabble.com> Message-ID: <669bf153-4ffa-dece-ffd7-7b758fe0c6f2@free.fr> Le 02/08/2019 ? 00:13, VTX1801 a ?crit?: > Photos is the default image viewer. > The question regarding the figure is: > Are the plot and the uicontrol considered children of the figure? Yes > Is there a syntax that would include all children of the figure to print? It already the? case: only the whole figure can be exported/printed. The fact that uicontrols do not appear IS the bug 14502. So, again, this is why you can't escape using an external software to get around it. From sl1800 at rochester.rr.com Fri Aug 2 00:27:43 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Thu, 1 Aug 2019 15:27:43 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564698463704-0.post@n3.nabble.com> Tried your alternate code. Window appeared with 3d graphic. Menu was off the screen. Ran again and menu on screen. Got the following error in console: msprintf: Wrong number of input arguments: data doesn't fit with format. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sl1800 at rochester.rr.com Fri Aug 2 01:01:38 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Thu, 1 Aug 2019 16:01:38 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564700498033-0.post@n3.nabble.com> Thanks for the effort to resolve this issue. If this has been a known bug since 2016 what is the likelihood it will be addressed and resolved? I appreciate the timely responses from Samuel. Evidently Scilab is not mature enough to use for this application. Best Regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From rouxph.22 at gmail.com Fri Aug 2 10:08:10 2019 From: rouxph.22 at gmail.com (philippe) Date: Fri, 2 Aug 2019 10:08:10 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> Message-ID: Le 01/08/2019 ? 22:29, Samuel Gougeon a ?crit?: > > Sorry for you. I can't reproduce on Win7. > You may search to which issue the exit code 127 (coming from the shell > of your OS) corresponds. on linux error code 127 should stand for "command not found" > > In addition,? do the tests pass when you exec() them (for instance from > Scinotes) ? yes I can execute *.tst files without errors Philippe From rouxph.22 at gmail.com Fri Aug 2 10:15:42 2019 From: rouxph.22 at gmail.com (philippe) Date: Fri, 2 Aug 2019 10:15:42 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> Message-ID: Le 01/08/2019 ? 23:28, Samuel Gougeon a ?crit?: > Le 01/08/2019 ? 22:49, Samuel Gougeon a ?crit?: >> Le 01/08/2019 ? 22:16, philippe a ?crit?: >>> ... >>> >>> no all tests fail (excepts those who are skipped automatically) : >> >> >> This could come from an autoloaded ATOMS module, if any. this happened on a "fresh install" so with no ATOMS module loaded. >> You may try canceling the autoloading of all your installed modules, >> and then rerun test_run. I used AtomsQuit() and rerun test_run but that has no effect. > > > Reported as bug 16161 > . Thanks for this > opportunity to improve test_run(). Thanks samuel! From p.muehlmann at gmail.com Fri Aug 2 14:08:35 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 2 Aug 2019 14:08:35 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564700498033-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564700498033-0.post@n3.nabble.com> Message-ID: Mh... >From what I understnad is, that you want to get a print out from your current GUI appearance. As Samuel suggested, one workaround is to make a screenshot, by calling IrfanView from Scilab. The result is an image, that: - can be printed out in a normal way...e.g. by use of IrfanView - can be loaded into scilab (need maybe a toolbox) and printed directly from scilab Note: In the example below, the screenshot is taken from the currently foreground window (client area). So I guess you need to make sure, that all uicontrols are placed in the same scilab figure. If not, you can probably capture the complete screen, after arranging separate figures and use irfan view command line command (in scilab) to crop the resulting image. // ################## Beginning of Code ################ clear();clc; mainDir = 'E:\Scilab_Uebungen\031_call_software\' // you may want to change thiscd (mainDir);pwd; h = figure('position', [50 50 400 400], 'backgroundcolor', [0.7 0.9 1], .."figure_name", 'WHAT DAY WERE YOU BORN?');// to have a plot within the GUIplot2d(); // textT1 = uicontrol(h, 'style', 'text', 'string', 'Type year:','position', [20 340 200 50], 'backgroundcolor', [0.7 0.9 1]);// editE1 = uicontrol(h, 'style', 'edit', 'string', '9999', 'position', [150 350 70 30], 'fontsize', 15, 'backgroundcolor', [1 1 1]);// textT2 = uicontrol(h, 'style', 'text', 'string', 'Select month:','position', [20 260 200 50], 'backgroundcolor', [0.7 0.9 1]);// listbox L1 = uicontrol(h, 'style', 'listbox', 'position', [150 130 120 170], 'fontsize', 15, 'backgroundcolor', [1 1 1]);set(L1, 'string', 'January |February |March |April |May |June |July |August |September |October |November |December'); set(L1, 'value', [2]);// textT3 = uicontrol(h, 'style', 'text', 'string', 'Type day:', 'position', [20 60 200 50], 'backgroundcolor', [0.7 0.9 1]);// editE2 = uicontrol(h, 'style', 'edit', 'string', '12', 'position', [150 70 70 30], 'fontsize', 15, 'backgroundcolor', [1 1 1]); // callback function for push button// seems that this has to be defined before the bush button is generatedfunction birthday(guientries) y = evstr(get(E1, 'string')) m = get(L1, 'value') d = evstr(get(E2, 'string')) num = datenum(y, m, d); [n, s] = weekday(num); disp('You were born on '+s) // access IrfanView and try to make a screen shot of the GUI IV_PATH = 'C:\Program Files (x86)\IrfanView'; // check if this is true for your system OUT_PATH = 'E:\Scilab_Uebungen\031_call_software' // you may want to change this // capture the GUI crop it, so that figure borders are not visible anymore and save it as a png file cd (IV_PATH); dos('i_view32.exe /capture=3 /crop=(0,47,0,420,0) /convert='+OUT_PATH+'\test.png '); cd (mainDir); pwd; endfunction// push buttonP1 = uicontrol(h, 'position', [300 70 80 30], 'style', 'pushbutton', 'string', 'Submit', 'callback', 'birthday', 'backgroundcolor', [1 1 0]); // ################## End of Code ########################### Attached the result as it is created at my PC. Hope this helps, best regards, Philipp ps. >From http://www.etcwiki.org/wiki/IrfanView_Command_Line_Options capture values: 0 = whole screen 1 = current monitor, where mouse is located 2 = foreground window 3 = foreground window - client area 4 = rectangle selection 5 = object selected with the mouse 6 = start in capture mode (can't be combined with other commandline options) Am Fr., 2. Aug. 2019 um 01:02 Uhr schrieb VTX1801 : > Thanks for the effort to resolve this issue. > If this has been a known bug since 2016 what is the likelihood it will be > addressed and resolved? > I appreciate the timely responses from Samuel. > Evidently Scilab is not mature enough to use for this application. > Best Regards, > Ted > > > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.png Type: image/png Size: 15347 bytes Desc: not available URL: From sgougeon at free.fr Fri Aug 2 14:29:04 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 2 Aug 2019 14:29:04 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released Message-ID: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> Hello, I am glad to announce the first release of the /gui2bitmat/ package : https://atoms.scilab.org/toolboxes/gui2bitmap gui2bitmap() aims to export into a .png | .jpg | .gif | .bmp bitmap image any graphical figure or User Interface with interactive components (uicontrols). An option allows to get the image of the full window, including its border/frame (with its menus bar, tools bar, status bar, and other bars ;-) It is a stand-alone function (no thirdparty needed), easy to use and easy to maintain (no hard code to recompile from a Scilab version to next ones). It is tested on Windows, but it should run as well on Linux and MacOS. It is fully documented. Enjoy. Samuel ----------------------- gui2bitmap get a bitmap image of a graphical figure or interface, including its uicontrols, nay window borders SYNTAXES -------- gui2bitmap(idFig, filename) gui2bitmap(idFig, filename, withBorders) idFig : handle of the figure filename : pathname to the output image file withBorders: boolean PDF page: -------- English:https://atoms.scilab.org/toolboxes/gui2bitmap/1.0/files/gui2bitmap_1.0_en.pdf French:https://atoms.scilab.org/toolboxes/gui2bitmap/1.0/files/gui2bitmap_1.0_fr.pdf Bugs reports, comments: ---------------------- http://atoms.scilab.org/toolboxes/gui2bitmap#new_comment -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Aug 2 15:01:43 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 2 Aug 2019 15:01:43 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564700498033-0.post@n3.nabble.com> Message-ID: Hello Philipp, hello Ted, Yesterday evening, I got aware of two important drawbacks of using Irfanview, despite its numerous and? huge assets and qualities: * It runs only on Windows * It is free only for non-commercial usages ...in addition to the fact that it must be installed (trivial, but OK). These restrictions made me wondering about a more portable solution. And gui2bitmap() is born :-) http://atoms.scilab.org/toolboxes/gui2bitmap The printing is also worth considering. I should have a look later to this matter, for instance to see if it is possible and then how to print directly the snapshot with gui2bitmap, instead of keeping an image file. The discussion with Ted made me aware that presently Scilab seems not able to send any image to a printer. This is a missing feature. Best regards Samuel Le 02/08/2019 ? 14:08, P M a ?crit?: > Mh... > From what I understnad is, that you want to get a print out from your > current GUI appearance. > > As Samuel suggested, one workaround is to make a screenshot, by > calling IrfanView from Scilab. > > The result is an image, that: > - can be printed out in a normal way...e.g. by use of IrfanView > - can be loaded into scilab (need maybe a toolbox) and printed > directly from scilab > > > Note: > In the example below, the screenshot is taken from the currently > foreground window (client area). > So I guess you need to make sure, that all uicontrols are placed in > the same scilab figure. > If not, you can probably capture the complete screen, after arranging > separate figures and use irfan view command line command (in scilab) > to crop the resulting image. > > > > // ################## Beginning of Code ################ > > clear(); clc; mainDir = 'E:\Scilab_Uebungen\031_call_software\' // you > may want to change this cd (mainDir); pwd; h = figure('position', [50 > 50 400 400], 'backgroundcolor', [0.7 0.9 1], .. "figure_name", 'WHAT > DAY WERE YOU BORN?'); // to have a plot within the GUI plot2d(); // > text T1 = uicontrol(h, 'style', 'text', 'string', 'Type > year:','position', [20 340 200 50], 'backgroundcolor', [0.7 0.9 1]); > // edit E1 = uicontrol(h, 'style', 'edit', 'string', '9999', > 'position', [150 350 70 30], 'fontsize', 15, 'backgroundcolor', [1 1 > 1]); // text T2 = uicontrol(h, 'style', 'text', 'string', 'Select > month:','position', [20 260 200 50], 'backgroundcolor', [0.7 0.9 1]); > // listbox L1 = uicontrol(h, 'style', 'listbox', 'position', [150 130 > 120 170], 'fontsize', 15, 'backgroundcolor', [1 1 1]); set(L1, > 'string', 'January |February |March |April |May |June |July |August > |September |October |November |December'); set(L1, 'value', [2]); // > text T3 = uicontrol(h, 'style', 'text', 'string', 'Type day:', > 'position', [20 60 200 50], 'backgroundcolor', [0.7 0.9 1]); // edit > E2 = uicontrol(h, 'style', 'edit', 'string', '12', 'position', [150 70 > 70 30], 'fontsize', 15, 'backgroundcolor', [1 1 1]); // callback > function for push button // seems that this has to be defined before > the bush button is generated function birthday(guientries) y = > evstr(get(E1, 'string')) m = get(L1, 'value') d = evstr(get(E2, > 'string')) num = datenum(y, m, d); [n, s] = weekday(num); disp('You > were born on '+s) // access IrfanView and try to make a screen shot of > the GUI IV_PATH = 'C:\Program Files (x86)\IrfanView'; // check if this > is true for your system OUT_PATH = > 'E:\Scilab_Uebungen\031_call_software' // you may want to change this > // capture the GUI crop it, so that figure borders are not visible > anymore and save it as a png file cd (IV_PATH); dos('i_view32.exe > /capture=3 /crop=(0,47,0,420,0) /convert='+OUT_PATH+'\test.png '); cd > (mainDir); pwd; endfunction // push button P1 = uicontrol(h, > 'position', [300 70 80 30], 'style', 'pushbutton', 'string', 'Submit', > 'callback', 'birthday', 'backgroundcolor', [1 1 0]); > > > // ################## End of Code ########################### > > Attached the result as it is created at my PC. > > Hope this helps, > best regards, > Philipp > > ps. > > From http://www.etcwiki.org/wiki/IrfanView_Command_Line_Options > capture values: > 0 = whole screen > 1 = current monitor, where mouse is located > 2 = foreground window > 3 = foreground window - client area > 4 = rectangle selection > 5 = object selected with the mouse > 6 = start in capture mode (can't be combined with other commandline > options) > > Am Fr., 2. Aug. 2019 um 01:02?Uhr schrieb VTX1801 > >: > > Thanks for the effort to resolve this issue. > If this has been a known bug since 2016 what is the likelihood it > will be > addressed and resolved? > I appreciate the timely responses from Samuel. > Evidently Scilab is not mature enough to use for this application. > Best Regards, > Ted > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Aug 2 16:27:38 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 2 Aug 2019 16:27:38 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> Message-ID: <76a9dfad-2586-7595-a4bb-30665c0d54ee@free.fr> Le 02/08/2019 ? 10:08, philippe a ?crit?: > Le 01/08/2019 ? 22:29, Samuel Gougeon a ?crit?: >> >> Sorry for you. I can't reproduce on Win7. >> You may search to which issue the exit code 127 (coming from the >> shell of your OS) corresponds. > > on linux error code 127 should stand for? "command not found" > >> >> In addition,? do the tests pass when you exec() them (for instance >> from Scinotes) ? > > yes I can execute *.tst files without errors In test_run.sci edit test_run you may insert disp(test_cmd) in absolute line 891, just before launching the slave session with returnStatus = host(test_cmd); And see what it is. Or use debug() in the same purpose: know what is actually sent to the shell. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sl1800 at rochester.rr.com Fri Aug 2 16:30:18 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Fri, 2 Aug 2019 07:30:18 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564756218770-0.post@n3.nabble.com> Philipp, Thanks for contributing your time and effort to resolve this issue with a work around. The following error is produced when the push button is clicked" cd: Cannot go to directory C:\Program Files (x86)\IrfanView Obviously, I do not have IrfanView software installed on my laptop/ Therefore, for this work around to be implemented does everyone who is a client of this Scilab code need to install IrfanView software? Or, will the Scilab executable that will be distributed to clients need to install IrfanView software? Additionally, does the output file directory need to be identical on all client PCs? Lastly, the uicontrols all appear to be within the boundaries of the graph plot. This is not acceptable. The spreadsheet data needs to plot unobscurred and the are several list boxes that will have various data displayed. Again, it would be far better to fix the bug in Scilab than to require all this effort for a work around solution. Best Regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From p.muehlmann at gmail.com Fri Aug 2 21:12:22 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 2 Aug 2019 21:12:22 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564756218770-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564756218770-0.post@n3.nabble.com> Message-ID: ...to start with: I guess you try the gui2bitmap toolbox.... To answer your questions: You need to download & install IrfanView on your Laptop. Make sure that the IrfanView install path in your code is exactly as it is on your machine. Besides of this: You may already have IrfanView installed, but it may be on a different path...so Scilab would no find the folder. I do not know how Scilab would automatically install IrfanView. Yes, everybody who use the code would have to have IrfanView installed. Also the path variable would have to be the same, if you do not want to change code for each of your clients. Output file directory: The path is of your choice and can be differnt for each client who runs the code. If the output folder does not exist, you can create it in Scilab using mkdir (I think) Quote: Lastly, the uicontrols all appear to be within the boundaries of the graph plot. This is not acceptable. What do you mean exactly? In the example I gave, I just plot a figure without placing it at a specific location within the figure. The goal was, to test if the plot is captured at all, or if it wil become a white area. So the other uicontrols a "on top" of it. You can easely rearrange the position of each uicontrol, so that they are not "overlaying" each other. Best regards, Philipp Am Fr., 2. Aug. 2019 um 16:30 Uhr schrieb VTX1801 : > Philipp, > Thanks for contributing your time and effort to resolve this issue with a > work around. > > The following error is produced when the push button is clicked" > > cd: Cannot go to directory C:\Program Files (x86)\IrfanView > > Obviously, I do not have IrfanView software installed on my laptop/ > > Therefore, for this work around to be implemented does everyone who is a > client of this Scilab code need to install IrfanView software? > > Or, will the Scilab executable that will be distributed to clients need to > install IrfanView software? > Additionally, does the output file directory need to be identical on all > client PCs? > > Lastly, the uicontrols all appear to be within the boundaries of the graph > plot. > This is not acceptable. > The spreadsheet data needs to plot unobscurred and the are several list > boxes that will have various data displayed. > > Again, it would be far better to fix the bug in Scilab than to require all > this effort for a work around solution. > > Best Regards, > Ted > > > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > 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 Fri Aug 2 21:24:40 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 2 Aug 2019 21:24:40 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564756218770-0.post@n3.nabble.com> Message-ID: <311b8880-2335-46b9-e9a5-2c083fdd1cee@free.fr> Le 02/08/2019 ? 21:12, P M a ?crit?: > ...to start with: I guess you try the gui2bitmap toolbox.... > > To answer your questions: > You need to download & install IrfanView on your Laptop. > Make sure that the IrfanView install path in your code is exactly as > it is on your machine. > Besides of this: You may already have IrfanView installed, but it may > be on a different path...so Scilab would no find the folder. > > I do not know how Scilab would automatically install IrfanView. > > Yes, everybody who use the code would have to have IrfanView installed. > Also the path variable would have to be the same, if you do not want > to change code for each of your clients. The following can be used to get the path to the Irfanview executable, even if Irfanview is not associated to any image extension: try subkey = "SOFTWARE\IrfanView\shell\open\command"; iview_path = winqueryreg("HKEY_LOCAL_MACHINE", subkey); catch msg = _("%s: IrfanView software not found.\n") error(msprintf(msg, "This application")) end If "clients" means "Customers", then, Ted, you should have a look to the Irfanview license before processing. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sl1800 at rochester.rr.com Fri Aug 2 21:55:44 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Fri, 2 Aug 2019 12:55:44 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564775744031-0.post@n3.nabble.com> Samuel, Is gui2bitmap() available in the modules? Tried the following code to install gui2bitmap(): atomsInstall("gui2bitmap") atomsInstallList: The package "gui2bitmap" is not registered. Please check on the ATOMS repository that it is available for Scilab 6.0 on Windows. If it is, run atomsSystemUpdate() before trying atomsInstall(..) again. at line 52 of function atomsError ( C:\Program Files\scilab-6.0.2\modules\atoms\macros\atoms_internals\atomsError.sci line 66 ) at line 78 of function atomsInstallList ( C:\Program Files\scilab-6.0.2\modules\atoms\macros\atoms_internals\atomsInstallList.sci line 117 ) at line 233 of function atomsInstall ( C:\Program Files\scilab-6.0.2\modules\atoms\macros\atomsInstall.sci line 249 ) -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sl1800 at rochester.rr.com Fri Aug 2 22:04:53 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Fri, 2 Aug 2019 13:04:53 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564776293965-0.post@n3.nabble.com> Spoke too soon. Had to run the atomsSystemUpdate() first. Then: atomsInstall("gui2bitmap") ans = !gui2bitmap 1.0 user SCIHOME\atoms\x64\gui2bitmap\1.0 I ! I a m certain that if this works your effort will be greatly appreciated by all users. I will investigate. Best regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sl1800 at rochester.rr.com Fri Aug 2 23:16:27 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Fri, 2 Aug 2019 14:16:27 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564658689236-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> Message-ID: <1564780587800-0.post@n3.nabble.com> Samuel, Progress but something is altering the size of the GUI screen image. The figure position is 125,25. The figure size is 1300, 780. The gui2bitmap function is zooming into the image. The actual GUI screen grows vertically about 1/4". The image file that appears from the winopen() command appears to zoom into the screen. It leaves off about an inch of the right side and the bottom of the image. Additionally, the Windows screen in the background is visible on the left side of the gui2bitmap image. I will attach these two files using keyboard screen print and opened/saved from Windows Paint program. Thanks for the effort, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sl1800 at rochester.rr.com Fri Aug 2 23:34:52 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Fri, 2 Aug 2019 14:34:52 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564780587800-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> Message-ID: <1564781692835-0.post@n3.nabble.com> Please view the two images to see the image is altered. Thanks, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sat Aug 3 09:52:37 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 3 Aug 2019 09:52:37 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564781692835-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1564781692835-0.post@n3.nabble.com> Message-ID: <411fda56-1e53-0ca6-2f9d-f7a6c072b9fb@free.fr> Le 02/08/2019 ? 23:34, VTX1801 a ?crit?: > > > > > Please view the two images to see the image is altered. There is no zoom effect from gui2bitmap() (unless may be you are using a special graphic card..). The point is that if the gui is partially clipped off-screen when gui2bitmap is run, then the screenshot is also clipped, since it is a screenshot.. :-) gui2bitmap could detect these cases, and relocate the gui window on the screen before snapshoting (as any good photograph does ;-). For the time being, it's not the case. From sgougeon at free.fr Sat Aug 3 10:26:58 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 3 Aug 2019 10:26:58 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564780587800-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> Message-ID: Le 02/08/2019 ? 23:16, VTX1801 a ?crit?: > Samuel, > > Progress but something is altering the size of the GUI screen image. > > The figure position is 125,25. > The figure size is 1300, 780. > > The gui2bitmap function is zooming into the image. > The actual GUI screen grows vertically about 1/4". > The image file that appears from the winopen() command appears to zoom into > the screen. > It leaves off about an inch of the right side and the bottom of the image. > > Additionally, the Windows screen in the background is visible on the left > side of the gui2bitmap image. > > I will attach these two files using keyboard screen print This way mixes your own PrintScreen effects + your viewer effects. It can't really help. Only the image directly coming from gui2bitmap could. In addition, you may mention the screen size of your system. From sgougeon at free.fr Sat Aug 3 10:55:18 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 3 Aug 2019 10:55:18 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564780587800-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> Message-ID: Le 02/08/2019 ? 23:16, VTX1801 a ?crit?: > Additionally, the Windows screen in the background is visible on the left > side of the gui2bitmap image. This is the only effect that i can't explain, if it actually comes from gui2bitmap. I can't reproduce it, for all tests done on win7. Before next version, i will try to test it on other OSes : Linux, Win10 (if i find a computer with it), and add unit tests to the module. Every user report is welcome, for success and failure, on the gui2bitmap ATOMS page, noticeably for untested systems (Linux, win10, MacOS X with and without a retina display..) Thanks From sl1800 at rochester.rr.com Sat Aug 3 13:51:47 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Sat, 3 Aug 2019 04:51:47 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: <411fda56-1e53-0ca6-2f9d-f7a6c072b9fb@free.fr> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1564781692835-0.post@n3.nabble.com> <411fda56-1e53-0ca6-2f9d-f7a6c072b9fb@free.fr> Message-ID: <1564833107007-0.post@n3.nabble.com> Samuel, //There is no zoom effect from gui2bitmap() (unless may be you are using a //special graphic card..). This is a Lenovo 17" laptop, No special graphics card. Windows 10 OS. I saved the image with the ".png" extension. //The point is that if the gui is partially clipped off-screen when //gui2bitmap is run, then the screenshot //is also clipped, since it is a screenshot.. :-) Please look at the first screen print attached. The GUI is entirely on the screen when gui2bitmap is run. With about 1/4 inch from the top and bottom and a little over 1 inch from the left and right edges of the screen. Please look at the second screen print attached. The resulting gui2print screen that appears with winopen() command is truncated on the right and the bottom. There is over 3 inches of screen image missing from the right side and about 1.5 inches missing from the bottom. The background window is visible on the left and slightly at the top. Additionally, the live GUI on the screen is stretched about 1/4 inch down and to the right. Closing the viewer and selecting another file to view returns the GUI to the original size. Is there a specific viewer you are using to examine the gui2bitmap saved image? Every viewer I try has the same result. I will test gui2bitmap with different file extensions. I appreciate your efforts and I am willing to continue testing and responding with observations. Regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Sat Aug 3 14:10:45 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 3 Aug 2019 14:10:45 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564833107007-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1564781692835-0.post@n3.nabble.com> <411fda56-1e53-0ca6-2f9d-f7a6c072b9fb@free.fr> <1564833107007-0.post@n3.nabble.com> Message-ID: <74497aae-c02e-8843-8789-b8bb15bf212c@free.fr> Ted, I right noticed that your GUI is not too big and not too shifted to entirely stay visible on your screen before running gui2bitmap. That's a requirement. gui2bitmap has been tested (on win7) to be correct even when the GUI is maximized to the full screen. Now, we can't discuss about printScreen and images viewers. The only thing to consider is the image file out of gui2bitmap. If it's correct or not. You may send it to me in private. Irfanview is my default images viewer. Thanks Samuel Le 03/08/2019 ? 13:51, VTX1801 a ?crit?: > Samuel, > > //There is no zoom effect from gui2bitmap() (unless may be you are using a > //special graphic card..). > > This is a Lenovo 17" laptop, No special graphics card. Windows 10 OS. > I saved the image with the ".png" extension. > > //The point is that if the gui is partially clipped off-screen when > //gui2bitmap is run, then the screenshot > //is also clipped, since it is a screenshot.. :-) > > Please look at the first screen print attached. > The GUI is entirely on the screen when gui2bitmap is run. With about 1/4 > inch from the top and bottom and a little over 1 inch from the left and > right edges of the screen. > > Please look at the second screen print attached. > The resulting gui2print screen that appears with winopen() command is > truncated on the right and the bottom. There is over 3 inches of screen > image missing from the right side and about 1.5 inches missing from the > bottom. The background window is visible on the left and slightly at the > top. > > Additionally, the live GUI on the screen is stretched about 1/4 inch down > and to the right. > > Closing the viewer and selecting another file to view returns the GUI to the > original size. > > Is there a specific viewer you are using to examine the gui2bitmap saved > image? > Every viewer I try has the same result. > > I will test gui2bitmap with different file extensions. > > I appreciate your efforts and I am willing to continue testing and > responding with observations. > > Regards, > Ted > > > > > > > > > > -- > Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > From sgougeon at free.fr Sat Aug 3 15:05:19 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 3 Aug 2019 15:05:19 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1564780587800-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> Message-ID: Le 02/08/2019 ? 23:16, VTX1801 a ?crit?: > The figure size is 1300, 780. How have you got these numbers? From n.strelkov at gmail.com Sat Aug 3 20:17:01 2019 From: n.strelkov at gmail.com (Nikolay Strelkov) Date: Sat, 3 Aug 2019 21:17:01 +0300 Subject: [Scilab-users] Spam in Scilab Forge Message-ID: Dear Scilab Forge admins! It seems that the Scilab Forge site suffers from spam attacks. Recently I have received 28 e-mails from the Scilab Forge site. The e-mails were sent from bufferblock issue tracker - http://forge.scilab.org/index.php/p/bufferblock/issues/1483/ . There are other trackers with spam activity. Please consider to check security status of Scilab Forge. It seems to be vulnerable for illegal new user registrations and maybe something similar. -- *With best regards,Ph.D., * *associate professor at MPEI ,IEEE member,developer of Mathieu functions toolbox for Scilab ,Nikolay Strelkov.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Sat Aug 3 22:03:42 2019 From: p.muehlmann at gmail.com (P M) Date: Sat, 3 Aug 2019 22:03:42 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> Message-ID: Hallo Samuel, I know...old system, but still.... Win XP Scilab 5.5.2 - Install gui2ibtmap from atoms. copy paste the first example into the console gives follwing -->// Generate a nice GUI (from demos) -->exec("SCI/modules/gui/demos/uicontrol_plot3d.dem.sce",-1); -->// -->f = gcf(); -->f.axes_size = [650 400]; -->sleep(500) -->figGUI = "TMPDIR/gui2bitmap/gui2bitmap.png"; --> -->// Export the window -->gui2bitmap(f, figGUI, %t) // with window borders !--error 241 File 'C:\Users\Samuel\Desktop\DOSSIERS\Scilab\scripts\bib\ATOMS\GUI2BI~1\GUI2BI~1.0\GUI2BI~1.0_5\macros\gui2bitmap.bin' does not exist This is true, because on my PC there is no C:\Users\Samuel.... Best regards, Philipp Am Fr., 2. Aug. 2019 um 14:29 Uhr schrieb Samuel Gougeon : > Hello, > > I am glad to announce the first release of the *gui2bitmat* package : > https://atoms.scilab.org/toolboxes/gui2bitmap > > gui2bitmap() aims to export into a .png | .jpg | .gif | .bmp bitmap image > any graphical figure or User Interface with interactive components > (uicontrols). > An option allows to get the image of the full window, including its > border/frame (with its menus bar, tools bar, status bar, and other bars ;-) > > It is a stand-alone function (no thirdparty needed), easy to use and easy > to maintain > (no hard code to recompile from a Scilab version to next ones). > > It is tested on Windows, but it should run as well on Linux and MacOS. > It is fully documented. > > Enjoy. > Samuel > > ----------------------- > gui2bitmap > get a bitmap image of a graphical figure or interface, including its > uicontrols, nay window borders > > SYNTAXES > -------- > gui2bitmap(idFig, filename) > gui2bitmap(idFig, filename, withBorders) > > idFig : handle of the figure > filename : pathname to the output image file > withBorders: boolean > > PDF page: > -------- > English: https://atoms.scilab.org/toolboxes/gui2bitmap/1.0/files/gui2bitmap_1.0_en.pdf > French: https://atoms.scilab.org/toolboxes/gui2bitmap/1.0/files/gui2bitmap_1.0_fr.pdf > > Bugs reports, comments: > ----------------------http://atoms.scilab.org/toolboxes/gui2bitmap#new_comment > > > _______________________________________________ > 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 Aug 3 23:12:53 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sat, 3 Aug 2019 23:12:53 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> Message-ID: <6880f7bd-2510-68e0-5c98-f6b9bb74c715@free.fr> Hello Philipp, Thanks for the feedback. I still publish some 5.5.2 binaries because 5.5.2 is still rather used (and for a while, because it is the most stable version to date). So it's important that it runs as expected. I confirm the issue. I can't understand what occurs. I never put absolute paths anywhere in my code. The most puzzling is that, after your message, i just recompiled the library, repushed to ATOMS a -1 version of the binary. I have cleaned my local installation, including the archive. After atomsSystemUpdate(), now the version -1.bin is downloaded and installed.. But the issue is still here! For the time being, i just remove the 5.5 release from ATOMS. Either the issue is from my zipper (but i use the same for the 6.0 binary, and there is not this issue...!), or from the ATOMS server (that knows the absolute path when uploading the zip. This is the only explanation i see for now... But still, why only for 5.5.2?) Regards Samuel Le 03/08/2019 ? 22:03, P M a ?crit?: > Hallo Samuel, > > I know...old system, but still.... > > Win XP > Scilab 5.5.2 > - Install gui2ibtmap from atoms. > > > copy paste the first example into the console gives follwing > ... From sgougeon at free.fr Sun Aug 4 00:22:30 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Sun, 4 Aug 2019 00:22:30 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: <6880f7bd-2510-68e0-5c98-f6b9bb74c715@free.fr> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <6880f7bd-2510-68e0-5c98-f6b9bb74c715@free.fr> Message-ID: <13966c83-3890-ab0e-959b-c347d6b77dc9@free.fr> Le 03/08/2019 ? 23:12, Samuel Gougeon a ?crit?: > Hello Philipp, > > Thanks for the feedback. > I still publish some 5.5.2 binaries because 5.5.2 is still rather used > (and for a while, > because it is the most stable version to date). So it's important that > it runs as expected. > > I confirm the issue. I can't understand what occurs. I never put > absolute paths anywhere in my code. ...But as an evidence, genlib() does ! Very unexpected, ugly, and unseemly, to store local personal information in a compiled binary. By the way, what for?! One does not expect to have any issue if we move the directory of .bin. This occurs at least on 5.5.2. genlib() has changed in 6.0. I will have a look to the source code to see if this path recording is still implemented. The issue came from the fact, that in the .start script, the gui2bitmap library was loaded with load() instead of with lib(). In 5.5.2, load() is able to work without complaining, but badly => error only at the first call of the library. In the other hand, lib() may have some reported issue in 6.0. Anyway, it is now fixed. I have uploaded the binary for 5.5, and it works. Since there is just one line different in the .start file, i won't create a new gui2bitmap sub-version for that. By the way, the uploaded sources are declared to be for 6.0. Please do not hesitate to confirm that this is now OK as well on your system. Best regards Samuel > The most puzzling is that, after your message, i just recompiled the > library, repushed to ATOMS > a -1 version of the binary. I have cleaned my local installation, > including the archive. > After atomsSystemUpdate(), now the version -1.bin is downloaded and > installed.. > But the issue is still here! For the time being, i just remove the 5.5 > release from ATOMS. > Either the issue is from my zipper (but i use the same for the 6.0 > binary, and there is not > this issue...!), or from the ATOMS server (that knows the absolute > path when uploading > the zip. This is the only explanation i see for now... But still, why > only for 5.5.2?) > > Regards > Samuel > > Le 03/08/2019 ? 22:03, P M a ?crit?: >> Hallo Samuel, >> >> I know...old system, but still.... >> >> Win XP >> Scilab 5.5.2 >> - Install gui2ibtmap from atoms. >> >> >> copy paste the first example into the console gives follwing >> ... > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users From p.muehlmann at gmail.com Sun Aug 4 22:22:21 2019 From: p.muehlmann at gmail.com (P M) Date: Sun, 4 Aug 2019 22:22:21 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: <13966c83-3890-ab0e-959b-c347d6b77dc9@free.fr> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <6880f7bd-2510-68e0-5c98-f6b9bb74c715@free.fr> <13966c83-3890-ab0e-959b-c347d6b77dc9@free.fr> Message-ID: After updating Atoms it works now...thanks. So here are some tests: Screen: 1280 x 1024 px Graphic Card: NVIDIA GeForce 210: View images with IrfanView. >From the 1st example of gui2bitmap. f.axes_size = [650 400]; 1.: Exporting the figure WITH borders: resulting image is 658 x 448 px => +8 px in width => + 48px in height --> understandable, because the toolbar and borders are added to the figure 2.: Exporting the figure WITHOUT borders gives 650 x 400 px... all OK...The image content is exactly as created in Scilab 3.: Exporting an image with size > monitorsize: Same behaviour as before, that means, pixels are either added when used with borders. Pixels are not added when used without borders. However, the resulting image does only show pixels which are visible at the monitor when Scilab disdplays the figure. Conclusion: When one trys to screenshot a huge figure, one has to be a bit careful that the scilab figure does not exceed the monitor size. One test by accident: => figure was created, but with content that overlayed the figure...in my case I copied the example from the help page, without exporting the figure. The export command I typed in afterwards by hand...so the console overlayed the figure.....as a result the exported image showed the scilab figure beeing overlayed by the console. That all makes sense, because at the moment of the screenshot the figure was indeed hidden behind the console. Summary: All good so far. BR Philipp 2019-08-04 0:22 GMT+02:00, Samuel Gougeon : > Le 03/08/2019 ? 23:12, Samuel Gougeon a ?crit?: >> Hello Philipp, >> >> Thanks for the feedback. >> I still publish some 5.5.2 binaries because 5.5.2 is still rather used >> (and for a while, >> because it is the most stable version to date). So it's important that >> it runs as expected. >> >> I confirm the issue. I can't understand what occurs. I never put >> absolute paths anywhere in my code. > > > ...But as an evidence, genlib() does ! > Very unexpected, ugly, and unseemly, to store local personal information > in a compiled binary. > By the way, what for?! One does not expect to have any issue if we move > the directory of .bin. > > This occurs at least on 5.5.2. genlib() has changed in 6.0. I will have > a look to the source code > to see if this path recording is still implemented. > > > The issue came from the fact, that in the .start script, the gui2bitmap > library was loaded with load() instead of with lib(). > In 5.5.2, load() is able to work without complaining, but badly => error > only at the first call of the library. > In the other hand, lib() may have some reported issue in 6.0. > > Anyway, it is now fixed. I have uploaded the binary for 5.5, and it works. > Since there is just one line different in the .start file, i won't > create a new gui2bitmap sub-version for that. > By the way, the uploaded sources are declared to be for 6.0. > > Please do not hesitate to confirm that this is now OK as well on your > system. > > Best regards > Samuel > >> The most puzzling is that, after your message, i just recompiled the >> library, repushed to ATOMS >> a -1 version of the binary. I have cleaned my local installation, >> including the archive. >> After atomsSystemUpdate(), now the version -1.bin is downloaded and >> installed.. >> But the issue is still here! For the time being, i just remove the 5.5 >> release from ATOMS. >> Either the issue is from my zipper (but i use the same for the 6.0 >> binary, and there is not >> this issue...!), or from the ATOMS server (that knows the absolute >> path when uploading >> the zip. This is the only explanation i see for now... But still, why >> only for 5.5.2?) >> >> Regards >> Samuel >> >> Le 03/08/2019 ? 22:03, P M a ?crit?: >>> Hallo Samuel, >>> >>> I know...old system, but still.... >>> >>> Win XP >>> Scilab 5.5.2 >>> - Install gui2ibtmap from atoms. >>> >>> >>> copy paste the first example into the console gives follwing >>> ... >> >> _______________________________________________ >> 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 > -- In Kanada is' ka' na' da. Sonst w?r' Kanada Jemanda. There we have the salad. From p.muehlmann at gmail.com Mon Aug 5 09:46:38 2019 From: p.muehlmann at gmail.com (P M) Date: Mon, 5 Aug 2019 09:46:38 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <6880f7bd-2510-68e0-5c98-f6b9bb74c715@free.fr> <13966c83-3890-ab0e-959b-c347d6b77dc9@free.fr> Message-ID: testing with: - Win7 - Scilab 6.0.2 - Screen: 1600 x 1200 px from gui2bitmap 1st example: f.axes_size = [650 400]; 1.: test with borders: resulting image size: 666 x 459 px // different from 5.5.2 version with 1280 x 1024 screen (658 x 448 px) 2.: test without borders resulting image size: 650 x 400 px Am So., 4. Aug. 2019 um 22:22 Uhr schrieb P M : > After updating Atoms it works now...thanks. > > So here are some tests: > > Screen: 1280 x 1024 px > Graphic Card: NVIDIA GeForce 210: > View images with IrfanView. > > From the 1st example of gui2bitmap. > f.axes_size = [650 400]; > > 1.: Exporting the figure WITH borders: resulting image is 658 x 448 px > => +8 px in width > => + 48px in height > --> understandable, because the toolbar and borders are added to the figure > > 2.: Exporting the figure WITHOUT borders gives 650 x 400 px... > all OK...The image content is exactly as created in Scilab > > > 3.: Exporting an image with size > monitorsize: > Same behaviour as before, that means, pixels are either added when > used with borders. > Pixels are not added when used without borders. > However, the resulting image does only show pixels which are visible > at the monitor when Scilab disdplays the figure. > > Conclusion: > When one trys to screenshot a huge figure, one has to be a bit careful > that the scilab figure does not exceed the monitor size. > > > One test by accident: > > => figure was created, but with content that overlayed the figure...in > my case I copied the example from the help page, without exporting the > figure. > The export command I typed in afterwards by hand...so the console > overlayed the figure.....as a result the exported image showed the > scilab figure beeing overlayed by the console. > > That all makes sense, because at the moment of the screenshot the > figure was indeed hidden behind the console. > > > Summary: All good so far. > > BR > Philipp > > > > > > > 2019-08-04 0:22 GMT+02:00, Samuel Gougeon : > > Le 03/08/2019 ? 23:12, Samuel Gougeon a ?crit : > >> Hello Philipp, > >> > >> Thanks for the feedback. > >> I still publish some 5.5.2 binaries because 5.5.2 is still rather used > >> (and for a while, > >> because it is the most stable version to date). So it's important that > >> it runs as expected. > >> > >> I confirm the issue. I can't understand what occurs. I never put > >> absolute paths anywhere in my code. > > > > > > ...But as an evidence, genlib() does ! > > Very unexpected, ugly, and unseemly, to store local personal information > > in a compiled binary. > > By the way, what for?! One does not expect to have any issue if we move > > the directory of .bin. > > > > This occurs at least on 5.5.2. genlib() has changed in 6.0. I will have > > a look to the source code > > to see if this path recording is still implemented. > > > > > > The issue came from the fact, that in the .start script, the gui2bitmap > > library was loaded with load() instead of with lib(). > > In 5.5.2, load() is able to work without complaining, but badly => error > > only at the first call of the library. > > In the other hand, lib() may have some reported issue in 6.0. > > > > Anyway, it is now fixed. I have uploaded the binary for 5.5, and it > works. > > Since there is just one line different in the .start file, i won't > > create a new gui2bitmap sub-version for that. > > By the way, the uploaded sources are declared to be for 6.0. > > > > Please do not hesitate to confirm that this is now OK as well on your > > system. > > > > Best regards > > Samuel > > > >> The most puzzling is that, after your message, i just recompiled the > >> library, repushed to ATOMS > >> a -1 version of the binary. I have cleaned my local installation, > >> including the archive. > >> After atomsSystemUpdate(), now the version -1.bin is downloaded and > >> installed.. > >> But the issue is still here! For the time being, i just remove the 5.5 > >> release from ATOMS. > >> Either the issue is from my zipper (but i use the same for the 6.0 > >> binary, and there is not > >> this issue...!), or from the ATOMS server (that knows the absolute > >> path when uploading > >> the zip. This is the only explanation i see for now... But still, why > >> only for 5.5.2?) > >> > >> Regards > >> Samuel > >> > >> Le 03/08/2019 ? 22:03, P M a ?crit : > >>> Hallo Samuel, > >>> > >>> I know...old system, but still.... > >>> > >>> Win XP > >>> Scilab 5.5.2 > >>> - Install gui2ibtmap from atoms. > >>> > >>> > >>> copy paste the first example into the console gives follwing > >>> ... > >> > >> _______________________________________________ > >> 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 > > > > > -- > In Kanada is' ka' na' da. Sonst w?r' Kanada Jemanda. > > There we have the salad. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Mon Aug 5 11:55:45 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 5 Aug 2019 11:55:45 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <6880f7bd-2510-68e0-5c98-f6b9bb74c715@free.fr> <13966c83-3890-ab0e-959b-c347d6b77dc9@free.fr> Message-ID: Le 05/08/2019 ? 09:46, P M a ?crit?: > testing with: > - Win7 > - Scilab 6.0.2 > - Screen: 1600 x 1200 px > > from gui2bitmap 1st example: > f.axes_size = [650 400]; > > 1.: test with borders: > resulting image size: 666 x 459 px?? // different from 5.5.2 version > with 1280 x 1024 screen (658 x 448 px) Tnaks for this feedback. The borders thickness and frame (and overall style) of windows depend on the windows manager (and on the look&feel). So these slight differences are not suprising. The main thing is that the image should always be well "in/around the frame", without extra margins nor shifts. From sgougeon at free.fr Mon Aug 5 12:09:53 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 5 Aug 2019 12:09:53 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <6880f7bd-2510-68e0-5c98-f6b9bb74c715@free.fr> <13966c83-3890-ab0e-959b-c347d6b77dc9@free.fr> Message-ID: Le 04/08/2019 ? 22:22, P M a ?crit?: > ... > > 3.: Exporting an image with size > monitorsize: Currently, gui2bitmat() is not built to handle this case. It's more complex (but possible) to handle it in java. I mainly wished to propose without more delay an easy solution to this long standing issue. But the case where the gui window is maximized is normally supported and has been tested It's a special case, because then some window borders are removed by the window manager. > One test by accident: > > => figure was created, but with content that overlayed the figure...in > my case I copied the example from the help page, without exporting the > figure. > The export command I typed in afterwards by hand...so the console > overlayed the figure.....as a result the exported image showed the > scilab figure beeing overlayed by the console. This should not occur, but it may, in the default without-border mode. In this mode, the height of the status bar must be determined, and the required graphical tests take a bit of time (1-5 s depending on the speed and load of the computer). If in this meantime the gui gets on the back, yes we then get this effect. This will be improved in the next version. Samuel From sgougeon at free.fr Mon Aug 5 14:47:10 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Mon, 5 Aug 2019 14:47:10 +0200 Subject: [Scilab-users] gui2bitmap 1.1 is released In-Reply-To: References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <6880f7bd-2510-68e0-5c98-f6b9bb74c715@free.fr> <13966c83-3890-ab0e-959b-c347d6b77dc9@free.fr> Message-ID: <0bb5c6a8-c48e-22a4-a5d1-965baddf23de@free.fr> gui2bitmap 1.1 is released. CHANGES 1.0 => 1.1 ================== FIX and IMPROVEMENTS: 1. On Windows, any graphical window that is partly shifted off-screen is now managed. 2. On slow computers, sometimes the snapshot shew some overlaying window instead of the Graphical one. 3. Loading the library was bugged with Scilab 5.5.2. 4. In case of NWNI mode, the error message was wrong. Philipp, I hope the point 2) will now be ok on your side: > One test by accident: > > => figure was created, but with content that overlayed the figure...in > my case I copied the example from the help page, without exporting the > figure. > The export command I typed in afterwards by hand...so the console > overlayed the figure.....as a result the exported image showed the > scilab figure beeing overlayed by the console. You may also test the point 1). Both points are quite sensitive to graphics speed, that depends on the Scilab version, and on the computer. Now i will work a bit on animaGIF() to make it using gui2bitmap() instead of xs2png(). Best regards Samuel Le 04/08/2019 ? 22:22, P M a ?crit?: > After updating Atoms it works now...thanks. > > So here are some tests: > > Screen: 1280 x 1024 px > Graphic Card: NVIDIA GeForce 210: > View images with IrfanView. > > From the 1st example of gui2bitmap. > f.axes_size = [650 400]; > > 1.: Exporting the figure WITH borders: resulting image is 658 x 448 px > => +8 px in width > => + 48px in height > --> understandable, because the toolbar and borders are added to the figure > > 2.: Exporting the figure WITHOUT borders gives 650 x 400 px... > all OK...The image content is exactly as created in Scilab > > > 3.: Exporting an image with size > monitorsize: > Same behaviour as before, that means, pixels are either added when > used with borders. > Pixels are not added when used without borders. > However, the resulting image does only show pixels which are visible > at the monitor when Scilab disdplays the figure. > > Conclusion: > When one trys to screenshot a huge figure, one has to be a bit careful > that the scilab figure does not exceed the monitor size. > > > One test by accident: > > => figure was created, but with content that overlayed the figure...in > my case I copied the example from the help page, without exporting the > figure. > The export command I typed in afterwards by hand...so the console > overlayed the figure.....as a result the exported image showed the > scilab figure beeing overlayed by the console. > > That all makes sense, because at the moment of the screenshot the > figure was indeed hidden behind the console. > > > Summary: All good so far. > > BR > Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From sl1800 at rochester.rr.com Mon Aug 5 20:28:25 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Mon, 5 Aug 2019 11:28:25 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> Message-ID: <1565029705851-0.post@n3.nabble.com> Samuel, Windows 10 OS. The screen resolution of my laptop is set to 1920x1080. I still see the problems after atomsUpdate("gui2bitmap"). The GUI is completely inside the screen. With about 1/4" gap above and below and about 1 inch on either side. The GUI appears to grow 1/4 inch only to the right side and down directions when gui2bitmap is executed. The resulting gui2bitmap look zoomed in and loses 3 inches from the right side and an inch or more from the bottom. Additionally, the area to the left and above the gui2bitmap screen capture shows the background of what was behind the GUI. I executed the following command atomsUpdate("gui2bitmap"), and restarted Scilab. No difference. Willing to redesign the GUI. How to make the graph area smaller with the same size uicontrols to result in slightly smaller GUI size? Lastly, tested using Snipping Tool software with mode set for window capture. Click on the GUI window and the complete GUI window appears in the Snipping Tool window with an all white background. Unfortunately, printing results with image printed on two sheets with printer basic preferences orientation set to "landscape" and advanced preferences scaling set to "fit to paper size". Vertical size fits the paper sheet but additional 2.6 inches on the second paper sheet. Very frustrating. Please advise, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From p.muehlmann at gmail.com Tue Aug 6 06:11:12 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 6 Aug 2019 06:11:12 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1565029705851-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> Message-ID: Hi Ted, please confirm: - your screen is: 1920 x 1080 - The GUI position is 125,25 - The GUI size is 1300 x 780...including borders and menu bars .... so if: .... f = handle of your figure .... than: .... f.position = [125, 25 , 1300, 780] ?? - The resulting image from gui2bitmap shows the GUI in a false way (Background is visible at left and top border)? BR Philipp Am Mo., 5. Aug. 2019 um 20:28 Uhr schrieb VTX1801 : > Samuel, > Windows 10 OS. > The screen resolution of my laptop is set to 1920x1080. > I still see the problems after atomsUpdate("gui2bitmap"). > > The GUI is completely inside the screen. > With about 1/4" gap above and below and about 1 inch on either side. > > The GUI appears to grow 1/4 inch only to the right side and down directions > when gui2bitmap is executed. > The resulting gui2bitmap look zoomed in and loses 3 inches from the right > side and an inch or more from the bottom. > > Additionally, the area to the left and above the gui2bitmap screen capture > shows the background of what was behind the GUI. > > I executed the following command atomsUpdate("gui2bitmap"), and restarted > Scilab. > No difference. > > Willing to redesign the GUI. How to make the graph area smaller with the > same size uicontrols to result in slightly smaller GUI size? > > Lastly, tested using Snipping Tool software with mode set for window > capture. > Click on the GUI window and the complete GUI window appears in the Snipping > Tool window with an all white background. > > Unfortunately, printing results with image printed on two sheets with > printer basic preferences orientation set to "landscape" and advanced > preferences scaling set to "fit to paper size". > Vertical size fits the paper sheet but additional 2.6 inches on the second > paper sheet. > > Very frustrating. > > Please advise, > Ted > > > > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Tue Aug 6 10:42:02 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 6 Aug 2019 10:42:02 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> Message-ID: one hint.... what is the scale factor of your screen setting....mine was set to 125% I try to freely translate from German windows to english -> right click on desktop -> Display setting (or something like this..second from the bottom) -> change size of text, Apps and other elements back to 100% and the image looks different still there are pixels around the GUI from the background, but at least the complete figure is screen shotted Am Di., 6. Aug. 2019 um 10:33 Uhr schrieb P M : > Hi Ted, > > I confirm the issue you describe with: > > - DELL Laptop > - Win 10 > - screen resolution: 1920 x 1080 > - Scilab 6.0.2 > > following code gives the result in attachment: > > clc;clear();// Generate a nice GUI (from demos)exec("SCI/modules/gui/demos/uicontrol_plot3d.dem.sce",-1);//f = gcf();f.figure_size = [1300, 780];f.figure_position = [125, 25];sleep(500)figGUI = "TMPDIR/gui2bitmap/gui2bitmap.png";// Export the windowgui2bitmap(f, figGUI, %t) // with window bordersdisp(f); > > > > > > > > Am Di., 6. Aug. 2019 um 06:11 Uhr schrieb P M : > >> Hi Ted, >> >> please confirm: >> - your screen is: 1920 x 1080 >> - The GUI position is 125,25 >> - The GUI size is 1300 x 780...including borders and menu bars >> .... so if: >> .... f = handle of your figure >> .... than: >> .... f.position = [125, 25 , 1300, 780] ?? >> >> - The resulting image from gui2bitmap shows the GUI in a false way >> (Background is visible at left and top border)? >> >> BR >> Philipp >> >> >> >> >> Am Mo., 5. Aug. 2019 um 20:28 Uhr schrieb VTX1801 < >> sl1800 at rochester.rr.com>: >> >>> Samuel, >>> Windows 10 OS. >>> The screen resolution of my laptop is set to 1920x1080. >>> I still see the problems after atomsUpdate("gui2bitmap"). >>> >>> The GUI is completely inside the screen. >>> With about 1/4" gap above and below and about 1 inch on either side. >>> >>> The GUI appears to grow 1/4 inch only to the right side and down >>> directions >>> when gui2bitmap is executed. >>> The resulting gui2bitmap look zoomed in and loses 3 inches from the right >>> side and an inch or more from the bottom. >>> >>> Additionally, the area to the left and above the gui2bitmap screen >>> capture >>> shows the background of what was behind the GUI. >>> >>> I executed the following command atomsUpdate("gui2bitmap"), and restarted >>> Scilab. >>> No difference. >>> >>> Willing to redesign the GUI. How to make the graph area smaller with the >>> same size uicontrols to result in slightly smaller GUI size? >>> >>> Lastly, tested using Snipping Tool software with mode set for window >>> capture. >>> Click on the GUI window and the complete GUI window appears in the >>> Snipping >>> Tool window with an all white background. >>> >>> Unfortunately, printing results with image printed on two sheets with >>> printer basic preferences orientation set to "landscape" and advanced >>> preferences scaling set to "fit to paper size". >>> Vertical size fits the paper sheet but additional 2.6 inches on the >>> second >>> paper sheet. >>> >>> Very frustrating. >>> >>> Please advise, >>> Ted >>> >>> >>> >>> >>> >>> >>> -- >>> Sent from: >>> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gui2bitmap_screensettings_100prct.png Type: image/png Size: 51360 bytes Desc: not available URL: From sl1800 at rochester.rr.com Tue Aug 6 14:03:36 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Tue, 6 Aug 2019 05:03:36 -0700 (MST) Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> Message-ID: <1565093016392-0.post@n3.nabble.com> Philipp, Your hint was the answer. However, there is a slight background image on the left, right and bottom. The screen scale was set to 125 percent. Now with the scale set to 100 percent the GUI prints on one page with about 1/4 inch left and right space and about one inch top and bottom space. Is the gui2bitmap code trying to extract screen image by pixel size and position? Can the gui2bitmap mode be set to capture the window that has focus? Best Regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sgougeon at free.fr Tue Aug 6 14:29:45 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Aug 2019 14:29:45 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1565093016392-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> <1565093016392-0.post@n3.nabble.com> Message-ID: <21fa2550-40e6-f89b-23bd-287bfb00b61c@free.fr> Le 06/08/2019 ? 14:03, VTX1801 a ?crit?: > .../... > Can the gui2bitmap mode be set to capture the window that has focus? No it can't. It snapshots the window whose handle is provided, that is not necessarily the one that has the java focus. AFAIK, there is no documented way to know which window has the java focus. Samuel From p.muehlmann at gmail.com Tue Aug 6 14:45:21 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 6 Aug 2019 14:45:21 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <1565093016392-0.post@n3.nabble.com> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> <1565093016392-0.post@n3.nabble.com> Message-ID: .... nice, so we getting closer. I would blame win10 for the scaling... This is, because in win7 I do get the correct Image, when executing the code I tested under win10. Am Di., 6. Aug. 2019 um 14:03 Uhr schrieb VTX1801 : > Philipp, > Your hint was the answer. > However, there is a slight background image on the left, right and bottom. > The screen scale was set to 125 percent. > Now with the scale set to 100 percent the GUI prints on one page with about > 1/4 inch left and right space and about one inch top and bottom space. > > Is the gui2bitmap code trying to extract screen image by pixel size and > position? > Can the gui2bitmap mode be set to capture the window that has focus? > > Best Regards, > Ted > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gui2bitmap_win7.png Type: image/png Size: 61109 bytes Desc: not available URL: From p.muehlmann at gmail.com Tue Aug 6 14:45:49 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 6 Aug 2019 14:45:49 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> <1565093016392-0.post@n3.nabble.com> Message-ID: ..forgot a second Image.... Am Di., 6. Aug. 2019 um 14:45 Uhr schrieb P M : > .... nice, so we getting closer. > > I would blame win10 for the scaling... > > This is, because in win7 I do get the correct Image, when executing the > code I tested under win10. > > > > > > > > > > Am Di., 6. Aug. 2019 um 14:03 Uhr schrieb VTX1801 >: > >> Philipp, >> Your hint was the answer. >> However, there is a slight background image on the left, right and bottom. >> The screen scale was set to 125 percent. >> Now with the scale set to 100 percent the GUI prints on one page with >> about >> 1/4 inch left and right space and about one inch top and bottom space. >> >> Is the gui2bitmap code trying to extract screen image by pixel size and >> position? >> Can the gui2bitmap mode be set to capture the window that has focus? >> >> Best Regards, >> Ted >> >> >> >> -- >> Sent from: >> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >> _______________________________________________ >> users mailing list >> users at lists.scilab.org >> http://lists.scilab.org/mailman/listinfo/users >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: gui2bitmap_win10.png Type: image/png Size: 51882 bytes Desc: not available URL: From p.muehlmann at gmail.com Tue Aug 6 14:52:28 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 6 Aug 2019 14:52:28 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> <1565093016392-0.post@n3.nabble.com> Message-ID: beside the Images names, both Images are created with exact the same code....see attachment Note: The appearance of the borders in the Win7 Image. I guess it is the window style setting that leads to the difference. Am Di., 6. Aug. 2019 um 14:45 Uhr schrieb P M : > ..forgot a second Image.... > > Am Di., 6. Aug. 2019 um 14:45 Uhr schrieb P M : > >> .... nice, so we getting closer. >> >> I would blame win10 for the scaling... >> >> This is, because in win7 I do get the correct Image, when executing the >> code I tested under win10. >> >> >> >> >> >> >> >> >> >> Am Di., 6. Aug. 2019 um 14:03 Uhr schrieb VTX1801 < >> sl1800 at rochester.rr.com>: >> >>> Philipp, >>> Your hint was the answer. >>> However, there is a slight background image on the left, right and >>> bottom. >>> The screen scale was set to 125 percent. >>> Now with the scale set to 100 percent the GUI prints on one page with >>> about >>> 1/4 inch left and right space and about one inch top and bottom space. >>> >>> Is the gui2bitmap code trying to extract screen image by pixel size and >>> position? >>> Can the gui2bitmap mode be set to capture the window that has focus? >>> >>> Best Regards, >>> Ted >>> >>> >>> >>> -- >>> Sent from: >>> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html >>> _______________________________________________ >>> users mailing list >>> users at lists.scilab.org >>> http://lists.scilab.org/mailman/listinfo/users >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_gui2bitmap.sce Type: application/octet-stream Size: 359 bytes Desc: not available URL: From sgougeon at free.fr Tue Aug 6 14:58:51 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Aug 2019 14:58:51 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> <1565093016392-0.post@n3.nabble.com> Message-ID: Le 06/08/2019 ? 14:45, P M a ?crit?: > .... nice, so we getting closer. > > I would blame win10 for the scaling... > > This is, because in win7 I do get the correct Image, when executing > the code I tested under win10. Thanks Philipp for this compared feedback. I am not sure that differences come from the OS. There might be some "display" optional layer, proposing some screen options? for the display (3D, etc), even on window7. Anyway, it is not a screen size effect. I tried with 1920x1080 (my default), 1600x900, and 1280x720, with always a good result. As well on Linux, with the forthcoming 1.2 version (there is a bug in 1.1 preventing using gui2bitmap out of Windows). Samuel From rouxph.22 at gmail.com Tue Aug 6 15:03:39 2019 From: rouxph.22 at gmail.com (philippe) Date: Tue, 6 Aug 2019 15:03:39 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: <76a9dfad-2586-7595-a4bb-30665c0d54ee@free.fr> References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> <76a9dfad-2586-7595-a4bb-30665c0d54ee@free.fr> Message-ID: Le 02/08/2019 ? 16:27, Samuel Gougeon a ?crit?: > > In test_run.sci > edit test_run > you may insert > disp(test_cmd) > in absolute line 891, just before launching the slave session with > > returnStatus = host(test_cmd); > > And see what it is. I've just done this an get : -> test_run("ast",[],"no_check_ref") TMPDIR = /tmp/SCI_TMP_32597_VRKa5r Module 001/001 - [ast] : 001/154 - [ast] Sand......................................... ( /usr/-6.0.2//bin/scilab -nwni -nb -quit --timeout 15m -f /tmp/SCI_TMP_32597_VRKa5r/Sand.tst > /tmp/SCI_TMP_32 597_VRKa5r/Sand.res ) 2> /tmp/SCI_TMP_32597_VRKa5r/Sand.er the command line "/usr/-6.0.2//bin/scilab" should be instead : /usr/share/scilab-6.0.2/bin/scilab the problem seems to come from line 811 if (getos() <> "Windows") & ~isfile(SCI+"/bin/scilab") then SCI_BIN = strsubst(SCI,"share/scilab","");//<---line 811 else SCI_BIN = SCI; end there is two occurrences of "share/scilab" in the path so the substitution is not valid : --> SCI SCI = /usr/share/scilab-6.0.2/share/scilab the line 811 should be replaced with something like : SCI_path=strsplit(SCI,'/');SCI_BIN = strcat(SCI_path(1:$-2),'/'); but this modification freeze scilab when launching test_run although running "/usr/share/scilab-6.0.2/bin/scilab -nwni -nb -quit --timeout 15m -f /tmp/SCI_TMP_32597_VRKa5r/Sand.tst" from a terminal is ok ...? Thanks a lot Samuel for the help, do you want me to add a bug report ? Philippe From sgougeon at free.fr Tue Aug 6 15:38:57 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Aug 2019 15:38:57 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> <76a9dfad-2586-7595-a4bb-30665c0d54ee@free.fr> Message-ID: <4f3d1538-6e00-88f7-bef4-76e1affd8ada@free.fr> Le 06/08/2019 ? 15:03, philippe a ?crit?: > .../... > I've just done this an get : > > > -> test_run("ast",[],"no_check_ref") > ?? TMPDIR = /tmp/SCI_TMP_32597_VRKa5r > > ?Module? 001/001 - [ast] : > > ?001/154 - [ast] Sand......................................... > ?(?? /usr/-6.0.2//bin/scilab -nwni? -nb -quit --timeout 15m? -f > /tmp/SCI_TMP_32597_VRKa5r/Sand.tst > /tmp/SCI_TMP_32 > ?597_VRKa5r/Sand.res ) 2> /tmp/SCI_TMP_32597_VRKa5r/Sand.er > > > the command line "/usr/-6.0.2//bin/scilab"? should be instead : > /usr/share/scilab-6.0.2/bin/scilab > > the problem seems to come from line 811 > > if (getos() <> "Windows") & ~isfile(SCI+"/bin/scilab") then > ??????? SCI_BIN = strsubst(SCI,"share/scilab","");//<---line 811 > ??? else > ??????? SCI_BIN = SCI; > ??? end > > there is two occurrences of "share/scilab" in the path so the > substitution is not valid : > > > --> SCI > ?SCI? = > > ?/usr/share/scilab-6.0.2/share/scilab If this path specific to your installation? I mean, some other Linux or oMacOS users run tests without this issue. Anyway, this has to be fixed. > > the line 811 should be replaced with something like : > > SCI_path=strsplit(SCI,'/');SCI_BIN = strcat(SCI_path(1:$-2),'/'); > > but this modification freeze scilab when launching test_run although > running "/usr/share/scilab-6.0.2/bin/scilab -nwni? -nb -quit --timeout > 15m? -f /tmp/SCI_TMP_32597_VRKa5r/Sand.tst"? from a terminal is ok ...? Have you checked that this is *actually* the run command, with the same disp spy instruction? If yes, then there may be 2 another bug after the first one. > > Thanks a lot Samuel for the help, do you want me to add a bug report ? Yes please. It will need your contribution to test and valid the solution. It will be hard (and heavy) to get a specific scilab installation to test the patch. Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Aug 6 15:44:39 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Aug 2019 15:44:39 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> <76a9dfad-2586-7595-a4bb-30665c0d54ee@free.fr> Message-ID: <21f07997-78a7-16a0-3f81-d1f42736790a@free.fr> Le 06/08/2019 ? 15:03, philippe a ?crit?: > .../... > I've just done this an get : > > > -> test_run("ast",[],"no_check_ref") > ?? TMPDIR = /tmp/SCI_TMP_32597_VRKa5r > > ?Module? 001/001 - [ast] : > > ?001/154 - [ast] Sand......................................... > ?(?? /usr/-6.0.2//bin/scilab -nwni? -nb -quit --timeout 15m? -f > /tmp/SCI_TMP_32597_VRKa5r/Sand.tst > /tmp/SCI_TMP_32 > ?597_VRKa5r/Sand.res ) 2> /tmp/SCI_TMP_32597_VRKa5r/Sand.er > > > the command line "/usr/-6.0.2//bin/scilab"? should be instead : > /usr/share/scilab-6.0.2/bin/scilab .../... > > --> SCI > ?SCI? = > > ?/usr/share/scilab-6.0.2/share/scilab So, shouldn't the command line be /usr/share/scilab-6.0.2/share/scilab/bin/scilab intead of /usr/share/scilab-6.0.2/bin/scilab that you mention earlier? Could you confirm please? Thanks From sgougeon at free.fr Tue Aug 6 16:01:24 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Aug 2019 16:01:24 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: <21f07997-78a7-16a0-3f81-d1f42736790a@free.fr> References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> <76a9dfad-2586-7595-a4bb-30665c0d54ee@free.fr> <21f07997-78a7-16a0-3f81-d1f42736790a@free.fr> Message-ID: <8ccd3154-65aa-87e1-8ccb-e55f7e2b90c6@free.fr> Le 06/08/2019 ? 15:44, Samuel Gougeon a ?crit?: > Le 06/08/2019 ? 15:03, philippe a ?crit?: >> .../... >> I've just done this an get : >> >> >> -> test_run("ast",[],"no_check_ref") >> ?? TMPDIR = /tmp/SCI_TMP_32597_VRKa5r >> >> ?Module? 001/001 - [ast] : >> >> ?001/154 - [ast] Sand......................................... >> ?(?? /usr/-6.0.2//bin/scilab -nwni? -nb -quit --timeout 15m? -f >> /tmp/SCI_TMP_32597_VRKa5r/Sand.tst > /tmp/SCI_TMP_32 >> ?597_VRKa5r/Sand.res ) 2> /tmp/SCI_TMP_32597_VRKa5r/Sand.er >> >> >> the command line "/usr/-6.0.2//bin/scilab"? should be instead : >> /usr/share/scilab-6.0.2/bin/scilab > > .../... > >> >> --> SCI >> ?SCI? = >> >> ?/usr/share/scilab-6.0.2/share/scilab > > > So, shouldn't the command line be > /usr/share/scilab-6.0.2/share/scilab/bin/scilab > intead of > /usr/share/scilab-6.0.2/bin/scilab > that you mention earlier? OK, i have got it. Your binary is actually? in /usr/share/scilab-6.0.2/bin/scilab This is why this "if" condition is useful in this case. But still, if a standard installation is always done with this path starting with /usr/*share/scilab*-6.0.2, then the bug should occur for every Linux or Darwin user (with no binary located where expected in first), unless it is a patch that has never been tested... -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Tue Aug 6 16:47:29 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Aug 2019 16:47:29 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: <21fa2550-40e6-f89b-23bd-287bfb00b61c@free.fr> References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> <1565093016392-0.post@n3.nabble.com> <21fa2550-40e6-f89b-23bd-287bfb00b61c@free.fr> Message-ID: <022ef5a4-4667-de29-5e74-bc757c30b1ef@free.fr> Le 06/08/2019 ? 14:29, Samuel Gougeon a ?crit?: > Le 06/08/2019 ? 14:03, VTX1801 a ?crit?: >> .../... >> Can the gui2bitmap mode be set to capture the window that has focus? > > No it can't. It snapshots the window whose handle is provided, that is > not necessarily > the one that has the java focus. > AFAIK, there is no documented way to know which window has the java > focus. This is true if one aims to run? gui2bitmap()? from the console. Otherwise, there might be a solution to add a menu/item to the figure, to run gui2bitmap for it (that then will have necessarily the focus), even if it's not the active figure (in the plotting point of view). I will make some tests. From sgougeon at free.fr Tue Aug 6 16:54:19 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Tue, 6 Aug 2019 16:54:19 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> <1565093016392-0.post@n3.nabble.com> Message-ID: <07b420c8-57fe-9815-15e8-cfdd7d9f9ed7@free.fr> Le 06/08/2019 ? 14:45, P M a ?crit?: > .... nice, so we getting closer. > > I would blame win10 for the scaling... > > This is, because in win7 I do get the correct Image, when executing > the code I tested under win10. There might be a quite quick and short term solution to calibrate scale factors and shifts in case of applicable, once for all for a given display. Could you please run the following code in win10 (where you get some issues) and send both images to me (in private if you wish). Thanks. ------- clf reset, plotframe([-1 -1 1 1]) set(gcf(),"figure_position",[0 0], "figure_size",[900 700]); set(gca(), "x_location","origin", "y_location","origin") gca().margins=[0 0 0 0]; xgrid(color("grey60"),1,7); gca().sub_ticks=[4 4]; gui2bitmap(gcf(),"calib_noborder.png"); gui2bitmap(gcf(),"calib_borders.png",%t); -------------- next part -------------- An HTML attachment was scrubbed... URL: From rouxph.22 at gmail.com Tue Aug 6 21:38:44 2019 From: rouxph.22 at gmail.com (philippe) Date: Tue, 6 Aug 2019 21:38:44 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: <21f07997-78a7-16a0-3f81-d1f42736790a@free.fr> References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> <76a9dfad-2586-7595-a4bb-30665c0d54ee@free.fr> <21f07997-78a7-16a0-3f81-d1f42736790a@free.fr> Message-ID: Le 06/08/2019 ? 15:44, Samuel Gougeon a ?crit?: > > > So, shouldn't the command line be > /usr/share/scilab-6.0.2/share/scilab/bin/scilab > intead of > /usr/share/scilab-6.0.2/bin/scilab > that you mention earlier? > > Could you confirm please? for ubuntu 18.04 current scilab version is 6.0.1 so I've donwloaded scilab-6.0.2.bin.linux-x86_64.tar.gz from scilab website and gunzip scilab-6.0.2.bin.linux-x86_64.tar.gz tar -xvf scilab-6.0.2.bin.linux-x86_64.tar mv scilab-6.0.2/ /usr/share/ the structure of /usr/share/scilab/ and /usr/share/scilab-6.0.2/ is different $ls /usr/share/scilab/ /usr/share/scilab-6.0.2/ /usr/share/scilab/: ACKNOWLEDGEMENTS contrib COPYING-BSD etc modules tools Version.incl /usr/share/scilab-6.0.2/: ACKNOWLEDGEMENTS bin CHANGES.md COPYING include lib README.md share thirdparty scilab-6.0.2 launch command is located in bin/ $ls /usr/share/scilab-6.0.2/bin/ modelicac modelicat scilab scilab-adv-cli scilab-bin scilab-cli scilab-cli-bin scinotes xcos XML2Modelica Philippe From rouxph.22 at gmail.com Tue Aug 6 21:54:18 2019 From: rouxph.22 at gmail.com (philippe) Date: Tue, 6 Aug 2019 21:54:18 +0200 Subject: [Scilab-users] test_run failed: Slave Scilab exited with error code 127 In-Reply-To: <4f3d1538-6e00-88f7-bef4-76e1affd8ada@free.fr> References: <49d46c09-3046-633e-e2f8-2ebd09cf7dea@free.fr> <356c1d66-f2e7-656b-a53b-265ef0309f49@free.fr> <76a9dfad-2586-7595-a4bb-30665c0d54ee@free.fr> <4f3d1538-6e00-88f7-bef4-76e1affd8ada@free.fr> Message-ID: Le 06/08/2019 ? 15:38, Samuel Gougeon a ?crit?: > Le 06/08/2019 ? 15:03, philippe a ?crit?: >> >> the line 811 should be replaced with something like : >> >> SCI_path=strsplit(SCI,'/');SCI_BIN = strcat(SCI_path(1:$-2),'/'); >> >> but this modification freeze scilab when launching test_run although >> running "/usr/share/scilab-6.0.2/bin/scilab -nwni? -nb -quit --timeout >> 15m? -f /tmp/SCI_TMP_32597_VRKa5r/Sand.tst"? from a terminal is ok ...? > > Have you checked that this is *actually* the run command, with the same > disp spy instruction? yes I copied the command from scilab terminal (frozen) and ran it in another terminal (bash). > If yes, then there may be 2 another bug after the first one. > > >> >> Thanks a lot Samuel for the help, do you want me to add a bug report ? > > > Yes please. It will need your contribution to test and valid the solution. > It will be hard (and heavy) to get a specific scilab installation to > test the patch. bug 16168 : http://bugzilla.scilab.org/show_bug.cgi?id=16168 best regards Philippe From sgougeon at free.fr Wed Aug 7 11:40:50 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Wed, 7 Aug 2019 11:40:50 +0200 Subject: [Scilab-users] How to print GUI window? In-Reply-To: References: <1564658689236-0.post@n3.nabble.com> <1564780587800-0.post@n3.nabble.com> <1565029705851-0.post@n3.nabble.com> Message-ID: Le 06/08/2019 ? 10:42, P M a ?crit?: > one hint.... > > what is the scale factor of your screen setting....mine was set to 125% > I try to freely translate from German windows to english > -> right click on desktop > -> Display setting (or something like this..second from the bottom) > -> change size of text, Apps and other elements > > back to 100% and the image looks different > still there are pixels around the GUI from the background, but at > least the complete figure is screen shotted For the attached gui2bitmap_screensettings_100prct.png image attached to that message on 06/08/2019 ? 10:42, as well as for the next one gui2bitap_win10.png posted the same day @ 14h45, these "pixels" around are a transparent border. Indeed, on Windows (as well win7), one can tune the borders transparency. I don't think that this system parameter can be easily known from Scilab (maybe thanks to an undocumented system_getproperty() key...?) So, if the user wants to keep its windows settings, the only solution i could see is to propose at the gui2bitmap level to choose in the details, in the with-borders mode, which border the he/she wants to keep: * ?by default? : %T? will still mean "all borders". * otherwise : providing a boolean vector borders = [with_left, with_bottom, with_right] will be possible. I will implement this for the next release. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Aug 9 04:52:45 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 9 Aug 2019 04:52:45 +0200 Subject: [Scilab-users] gui2bitmap 1.2 is released In-Reply-To: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> Message-ID: <57d1c81b-01b1-9a78-5540-8e1d345c9ed2@free.fr> This release should answer to display-scaling issues encountered by Ted & Philipp. Regards Samuel https://atoms.scilab.org/toolboxes/gui2bitmap CHANGES 1.1 => 1.2 ================== * "setMenu", "setScale" and "setBorders" syntaxes added. * gui2bitmap() now works as well on Linux (and MacOS X: not tested) * Unit tests added. * Tested on Windows 7 1920x1080 (with scale = 100|125|150%), 1600x900, 1280x720 * Tested on Linux Fedora 24 SYNTAXES -------- gui2bitmap(idFig, filename) gui2bitmap(idFig, filename, withBorders) gui2bitmap("setMenu", parentHandle) gui2bitmap("setBorders", borders) gui2bitmap("setScale", scale) with: idFig : handle of the figure filename : pathname to the output image file withBorders: boolean borders : vector of 3 booleans [left_border, bottom_border, right_border] scale : Screen display zoom factor, in percentage Le 02/08/2019 ? 14:29, Samuel Gougeon a ?crit?: > > Hello, > > I am glad to announce the first release of the /gui2bitmat/ package : > https://atoms.scilab.org/toolboxes/gui2bitmap > > gui2bitmap() aims to export into a .png | .jpg | .gif | .bmp bitmap image > any graphical figure or User Interface with interactive components > (uicontrols). > An option allows to get the image of the full window, including its > border/frame (with its menus bar, tools bar, status bar, and other > bars ;-) > > It is a stand-alone function (no thirdparty needed), easy to use and > easy to maintain > (no hard code to recompile from a Scilab version to next ones). > > It is tested on Windows, but it should run as well on Linux and MacOS. > It is fully documented. > > Enjoy. > Samuel > > ----------------------- > > > gui2bitmap > > get a bitmap image of a graphical figure or interface, including its > uicontrols, nay window borders > > SYNTAXES > -------- > gui2bitmap(idFig, filename) > gui2bitmap(idFig, filename, withBorders) > > idFig : handle of the figure > filename : pathname to the output image file > withBorders: boolean > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Fri Aug 9 09:56:47 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 9 Aug 2019 09:56:47 +0200 Subject: [Scilab-users] gui2bitmap 1.2 is released In-Reply-To: <57d1c81b-01b1-9a78-5540-8e1d345c9ed2@free.fr> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <57d1c81b-01b1-9a78-5540-8e1d345c9ed2@free.fr> Message-ID: Hi Samuel, I confirm: - test with Win10 Laptop - screen resolution 1920 x 1080 px - screen scale factor 100 & 125% using: gui2bitmap("setScale", 100); // 125 respectively gui2bitmap("setBorders", [%F %F %F]);gui2bitmap(f, pathName, %t) // with no borders left, bottom, right results in a correct screen shot image. Thanks, great work. Philipp Am Fr., 9. Aug. 2019 um 04:53 Uhr schrieb Samuel Gougeon : > This release should answer to display-scaling issues encountered by Ted & > Philipp. > > Regards > Samuel > > https://atoms.scilab.org/toolboxes/gui2bitmap > > CHANGES 1.1 => 1.2 > ================== > * "setMenu", "setScale" and "setBorders" syntaxes added. > * gui2bitmap() now works as well on Linux (and MacOS X: not tested) > * Unit tests added. > * Tested on Windows 7 1920x1080 (with scale = 100|125|150%), 1600x900, 1280x720 > * Tested on Linux Fedora 24 > > > SYNTAXES > -------- > gui2bitmap(idFig, filename) > gui2bitmap(idFig, filename, withBorders) > > gui2bitmap("setMenu", parentHandle) > > gui2bitmap("setBorders", borders) > gui2bitmap("setScale", scale) > > with: > > idFig : handle of the figure > filename : pathname to the output image file > withBorders: boolean > borders : vector of 3 booleans > [left_border, bottom_border, right_border] > scale : Screen display zoom factor, in percentage > > > > Le 02/08/2019 ? 14:29, Samuel Gougeon a ?crit : > > Hello, > > I am glad to announce the first release of the *gui2bitmat* package : > https://atoms.scilab.org/toolboxes/gui2bitmap > > gui2bitmap() aims to export into a .png | .jpg | .gif | .bmp bitmap image > any graphical figure or User Interface with interactive components > (uicontrols). > An option allows to get the image of the full window, including its > border/frame (with its menus bar, tools bar, status bar, and other bars ;-) > > It is a stand-alone function (no thirdparty needed), easy to use and easy > to maintain > (no hard code to recompile from a Scilab version to next ones). > > It is tested on Windows, but it should run as well on Linux and MacOS. > It is fully documented. > > Enjoy. > Samuel > > ----------------------- > gui2bitmap > get a bitmap image of a graphical figure or interface, including its > uicontrols, nay window borders > > SYNTAXES > -------- > gui2bitmap(idFig, filename) > gui2bitmap(idFig, filename, withBorders) > > idFig : handle of the figure > filename : pathname to the output image file > withBorders: boolean > > > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anna.parravicini at cnao.it Fri Aug 9 10:57:54 2019 From: anna.parravicini at cnao.it (anna78) Date: Fri, 9 Aug 2019 01:57:54 -0700 (MST) Subject: [Scilab-users] callback and output variables Message-ID: <1565341074948-0.post@n3.nabble.com> Hi all, I'm trying to write my first GUI and I would ask you a suggestion. My GUI will have a "Load button" needed to allow the user to select a file, the GUI will analyze later on. I would need the selected file name available even when the "Load button" callback-function ends. Is there any way to write the filename (and few other parameters) to a "global variable", such that I can read from other sub-functions, too? many thanks, Anna -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From jdb61858 at suoox.com Fri Aug 9 11:19:28 2019 From: jdb61858 at suoox.com (RolandB) Date: Fri, 9 Aug 2019 02:19:28 -0700 (MST) Subject: [Scilab-users] callback and output variables In-Reply-To: <1565341074948-0.post@n3.nabble.com> References: <1565341074948-0.post@n3.nabble.com> Message-ID: <1565342368569-0.post@n3.nabble.com> Hi, in the callback function you can access the calling GUI element with gcbo. As those elements have an userdata property, you can assign an array or list to that property and then access this array or list from elsewhere. In the callback function: my_array_or_list(1)=uigetfile(); my_array_or_list(2)="what_else_you_need"; set(gcbo, "userdata", my_array_or_list); And if you want to access the data: my_array_or_list=get(findobj("tag";"the_tag_you_had_defined_for_your_button"), "userdata"); -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From paul.carrico at auxitrolweston.com Fri Aug 9 11:52:33 2019 From: paul.carrico at auxitrolweston.com (Carrico, Paul) Date: Fri, 9 Aug 2019 09:52:33 +0000 Subject: [Scilab-users] gamma function overloading Message-ID: <3A6B7233274DB449A2A0053A47684F95403848E4@BGS-EX01.auxitrol.ad> Dear All In the Scilab doc it's mentioned that gamma function can be overloaded by complex number, but how to proceed? A = complex(4,4) gamma_A = gamma(A) ? la ligne 12 de la fonction %s_gamma ( C:\scilab-6.0.2\modules\special_functions\macros\%s_gamma.sci ligne 22 ) dans la fonction native gamma %s_gamma: Function not defined for the given argument type. Check arguments or define function %s_gamma_user() for overloading. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgougeon at free.fr Fri Aug 9 12:40:46 2019 From: sgougeon at free.fr (Samuel Gougeon) Date: Fri, 9 Aug 2019 12:40:46 +0200 Subject: [Scilab-users] gamma function overloading In-Reply-To: <3A6B7233274DB449A2A0053A47684F95403848E4@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F95403848E4@BGS-EX01.auxitrol.ad> Message-ID: <632271ba-d755-911f-c300-66d19d5c307a@free.fr> Le 09/08/2019 ? 11:52, Carrico, Paul a ?crit?: > > Dear All > > In the Scilab doc it?s mentioned that gamma function can be overloaded > by complex number, but how to proceed? > > A= _complex_(4,4) > > gamma_A= gamma(A) > > ? la ligne??? 12 de la fonction %s_gamma ( > C:\scilab-6.0.2\modules\special_functions\macros\%s_gamma.sci ligne 22 > ) dans la fonction native gamma > > %s_gamma: Function not defined for the given argument type. > > Check arguments or define function %s_gamma_user() for overloading. > --> function r = %s_gamma_user(a) ? > ? ? r = []; ? >???? disp("OK") ? > endfunction --> gamma(%i) ?OK ?ans? = ??? [] -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul.carrico at auxitrolweston.com Fri Aug 9 13:35:36 2019 From: paul.carrico at auxitrolweston.com (Carrico, Paul) Date: Fri, 9 Aug 2019 11:35:36 +0000 Subject: [Scilab-users] [EXTERNAL] Re: gamma function overloading In-Reply-To: <632271ba-d755-911f-c300-66d19d5c307a@free.fr> References: <3A6B7233274DB449A2A0053A47684F95403848E4@BGS-EX01.auxitrol.ad> <632271ba-d755-911f-c300-66d19d5c307a@free.fr> Message-ID: <3A6B7233274DB449A2A0053A47684F9540384918@BGS-EX01.auxitrol.ad> Thanks Samuel, What I'm doing wrong? function r=%s_gamma_user(a) r = gamma(a); endfunction A = complex(4,4) gamma_A = gamma(A Limite de r?cursion atteinte (1000). De : users [mailto:users-bounces at lists.scilab.org] De la part de Samuel Gougeon Envoy? : vendredi 9 ao?t 2019 12:41 ? : users at lists.scilab.org Objet : [EXTERNAL] Re: [Scilab-users] gamma function overloading Le 09/08/2019 ? 11:52, Carrico, Paul a ?crit : Dear All In the Scilab doc it's mentioned that gamma function can be overloaded by complex number, but how to proceed? A = complex(4,4) gamma_A = gamma(A) ? la ligne 12 de la fonction %s_gamma ( C:\scilab-6.0.2\modules\special_functions\macros\%s_gamma.sci ligne 22 ) dans la fonction native gamma %s_gamma: Function not defined for the given argument type. Check arguments or define function %s_gamma_user() for overloading. --> function r = %s_gamma_user(a) > r = []; > disp("OK") > endfunction --> gamma(%i) OK ans = [] -------------- next part -------------- An HTML attachment was scrubbed... URL: From Christophe.Dang at sidel.com Fri Aug 9 14:03:20 2019 From: Christophe.Dang at sidel.com (Dang Ngoc Chan, Christophe) Date: Fri, 9 Aug 2019 12:03:20 +0000 Subject: [Scilab-users] {EXT} Re: [EXTERNAL] Re: gamma function overloading In-Reply-To: <3A6B7233274DB449A2A0053A47684F9540384918@BGS-EX01.auxitrol.ad> References: <3A6B7233274DB449A2A0053A47684F95403848E4@BGS-EX01.auxitrol.ad> <632271ba-d755-911f-c300-66d19d5c307a@free.fr> <3A6B7233274DB449A2A0053A47684F9540384918@BGS-EX01.auxitrol.ad> Message-ID: Hello Paul, > De : Carrico, Paul > Envoy? : vendredi 9 ao?t 2019 13:36 > > What I'm doing wrong? > > function r=%s_gamma_user(a) > r = gamma(a); > endfunction > > A = complex(4,4) > gamma_A = gamma(A > > Limite de r?cursion atteinte (1000). You're calling recursively gamma without an end condition. It seems that gamma() looks like function r=gamma(a) if isreal(a) then else r=%s_gamma_user(a) endfunction So you should define how to compute the gamma of a complex yourself. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer General 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 sl1800 at rochester.rr.com Sat Aug 10 15:21:12 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Sat, 10 Aug 2019 06:21:12 -0700 (MST) Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> Message-ID: <1565443272496-0.post@n3.nabble.com> Philipp, Thanks for your effort with this issue. For clarity: via atoms: unistall gui2bitmap //atomsRemove('gui2btmap') close Scilab open scilab via atoms: update repository //atomsSystemUpdate() via atoms: install gui2bitmap //atomsInstall('gui2bitmap') close scilab open scilab in console: help gui2bitmap result: help page of gui2bitmap appears Artifacts that remain: 1. When gui2bitmap is executed the GUI screen grows 1/4" to the right and to the bottom. 2. The saved screen capture and the printed screen image both contain slight images of the background. About 1mm on the left and right borders and about 1.5mm at the bottom border. Regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From rouxph.22 at gmail.com Sat Aug 10 22:50:45 2019 From: rouxph.22 at gmail.com (philippe) Date: Sat, 10 Aug 2019 22:50:45 +0200 Subject: [Scilab-users] Spam in Scilab Forge In-Reply-To: References: Message-ID: Le 03/08/2019 ? 20:17, Nikolay Strelkov a ?crit?: > Dear Scilab Forge admins! > > It seems that the Scilab Forge site suffers from spam attacks. > Recently I have received 28 e-mails from the Scilab Forge site. > The e-mails were sent from bufferblock issue tracker - > http://forge.scilab.org/index.php/p/bufferblock/issues/1483/?. > There are other trackers with spam activity. this is note the only one , ticket interface of other "abandoned" projects are used by spamers : * http://forge.scilab.org/index.php/p/metanet/issues/ * http://forge.scilab.org/index.php/p/scimax/issues/949/ > > Please consider to check security status of Scilab Forge. > It seems to be vulnerable for illegal new user registrations and maybe > something similar. the maintainer of each project should suppress those messages from issues (?) but they probably stopped working on these projects ... Best regards, Philippe From stepan.podhorsky at gmail.com Mon Aug 12 08:28:46 2019 From: stepan.podhorsky at gmail.com (Steve) Date: Sun, 11 Aug 2019 23:28:46 -0700 (MST) Subject: [Scilab-users] Creating C function blocks in scilab 5.5.2 Message-ID: <1565591326996-0.post@n3.nabble.com> Hello, I have been using scilab version 5.5.2 (64 bit) under Windows 7 (64 bit). For current project I need to be able to create xcos blocks wich behavior is prescribed by my own C language source code. I have found following excellent tutorial https://www.scicos.org/ScicosCBlockTutorial.pdf . At first I have installed the MinGw toolbox 0.9.3. The installation seems to be successful because the function haveacompiler returns true. Then I have written the source code according to the above mentioned tutorial // This is the computational function for a scicos model block. // The model is of a variable-gain integrator with hard high and low limits. #include "c:\Program Files\scilab-5.5.2\modules\scicos_blocks\includes\scicos_block4.h" #include #include #include #define r_IN(n, i) ((GetRealInPortPtrs(blk, n+1))[(i)]) #define r_OUT(n, i) ((GetRealOutPortPtrs(blk, n+1))[(i)]) // parameters #define Lhi (GetRparPtrs(blk)[0]) // integrator high limit #define Llo (GetRparPtrs(blk)[1]) // integrator low limit // inputs #define in (r_IN(0,0)) // integrator input #define gainp (r_IN(1,0)) // integrator gain when x > 0 #define gainn (r_IN(2,0)) // integrator gain when x <= 0 // states #define X (GetState(blk)[0]) // integrator state #define Xdot (GetDerState(blk)[0]) // derivative of the integrator output // outputs #define out (r_OUT(0,0)) // integrator output #define Igain (r_OUT(1,0)) // integrator gain // other constants #define surf0 (GetGPtrs(blk)[0]) #define surf1 (GetGPtrs(blk)[1]) #define surf2 (GetGPtrs(blk)[2]) #define mode0 (GetModePtrs(blk)[0]) // if X is greater than Lhi, then mode is 1 // if X is between Lhi and zero, then mode is 2 // if X is between zero and Llo, then mode is 3 // if X is less than Llo, then mode is 4 #define mode_xhzl 1 #define mode_hxzl 2 #define mode_hzxl 3 #define mode_hzlx 4 void lim_int(scicos_block *blk, int flag) { double gain = 0; switch(flag) { case 0: // compute the derivative of the continuous time state if((mode0 == mode_xhzl && in < 0) || mode0 == mode_hxzl) gain = gainp; else if((mode0 == mode_hzlx && in > 0) || mode0 == mode_hzxl) gain = gainn; Xdot = gain*in; break; case 1: // compute the outputs of the block if(X >=Lhi || X <= Llo) Igain = 0; else if (X > 0) Igain = gainp; else Igain = gainn; out = X; break; case 9: // compute zero crossing surfaces and set modes surf0 = X - Lhi; surf1 = X; surf2 = X - Llo; if(get_phase_simulation() == 1) { if(surf0 >= 0) mode0 = mode_xhzl; else if(surf2 <= 0) mode0 = mode_hzlx; else if(surf1 > 0) mode0 = mode_hxzl; else mode0 = mode_hzxl; } break; } } After that I have called the function `ilib_for_link` with following arguments `ilib_for_link('lim_int','lim_int_comp.c',[],"c")` The function returns following output: ilib_for_link('lim_int','lim_int_comp.c',[],"c") Generate a loader file Generate a Makefile Running the Makefile Compilation of lim_int_comp.obj Building shared library (be patient) !------------- Compile file lim_int_comp.c -------------- ! ! ! !x86_64-w64-mingw32-gcc.exe -c -DWIN32 -D_MSC_VER -DSTRICT -DFORDLL -I"C:/PROGRA~1/SCILAB! ! ~1.2/libs/MALLOC/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/core/includes" -I"C:/P! ! ROGRA~1/SCILAB~1.2/modules/api_scilab/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/c! ! all_scilab/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/output_stream/includes" -I"C! ! :/PROGRA~1/SCILAB~1.2/modules/jvm/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/local! ! ization/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/dynamic_link/includes" -I"C:/PR! ! OGRA~1/SCILAB~1.2/modules/mexlib/includes" -I"C:/PROGRA~1/SCILAB~1.2/modules/time/i! ! ncludes" -I"C:/PROGRA~1/SCILAB~1.2/modules/windows_tools/includes" -I"C:/PROGRA~1/S! ! CILAB~1.2/libs/f2c" -I"C:/PROGRA~1/SCILAB~1.2/libs/hashtable" -I"C:/PROGRA~1/SCILAB! ! ~1.2/libs/intl" -m64 lim_int_comp.c ! ! ! !lim_int_comp.c: In function 'lim_int': ! ! ! !lim_int_comp.c:76:7: warning: implicit declaration of function 'get_phase_simulation' [-! ! Wimplicit-function-declaration] ! ! ! ! if(get_phase_simulation() == 1) ! ! ! ! ^~~~~~~~~~~~~~~~~~~~ ! ! ! !------------- Link files -------------- ! ! ! !x86_64-w64-mingw32-gcc.exe --shared lim_int_comp.o -L"c:\cygwin64\x86_64-w64-mingw32\li! ! b" -LC:\Users\Stepan\AppData\Roaming\Scilab\scilab-5.5.2\mingwlib_x64 -lstdc++ -lgf! ! ortran -lMALLOC -lblasplus -lf2c -llapack -lcore -lcore_f -lintersci -loutput_strea! ! m -ldynamic_link -linteger -loptimization_f -ljvm -lscilocalization -lintl -llinpac! ! k_f -lcall_scilab -ltime -lapi_scilab -lscilab_windows -lscicos -lscicos_blocks -ls! ! cicos_blocks_f -lscicos_f -o liblim_int.dll -Wl,--out-implib=liblim_int.a -Wl,--ex! ! port-all-symbols -Wl,--enable-auto-import -Wl ! ! ! !x86_64-w64-mingw32-gcc.exe: error: unrecognized command line option '-Wl'; did you mean ! ! '-W'? ! ! ! !Makelib:102: recipe for target 'liblim_int.dll' failed ! ! ! !make: *** [liblim_int.dll] Error 1 ! !--error 10000 ilib_compile: Error while executing Makelib. at line 25 of function dlwCompile called by : at line 51 of function ilib_compile called by : at line 94 of function ilib_for_link called by : ilib_for_link('lim_int','lim_int_comp.c',[],"c") It seems to me that the problem is that prototype for get_phase_simulation function is missing. Has anybody already encountered this problem? Thanks for any suggestions. -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From sl1800 at rochester.rr.com Tue Aug 13 21:08:58 2019 From: sl1800 at rochester.rr.com (VTX1801) Date: Tue, 13 Aug 2019 12:08:58 -0700 (MST) Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> Message-ID: <1565723338873-0.post@n3.nabble.com> Samuel, Observations: The Windows 10 Snipping Tool has a window mode that accurately captures the selected window. Additionally, if you hold down the Alt key when you press the Print Screen key the window that has focus is captured. Therefore, there must be a Windows command to capture the window that has focus. This command might be available to execute from the gui2bitmap code. Found this information regarding the window command: WIN32 API GetActiveWindow will return the top-level window that is associated with the input focus. GetFocus will return the handle of the window that has the input focus. This article might help: http://www.microsoft.com/msj/0397/Win32/Win320397.aspx Hope this helps. Best regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html From perrichon.pierre at wanadoo.fr Tue Aug 13 21:41:55 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Tue, 13 Aug 2019 21:41:55 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: <1565723338873-0.post@n3.nabble.com> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <1565723338873-0.post@n3.nabble.com> Message-ID: 1000 messages. I don"t understand that sreen captures need to be in the whole world, if this is correctly done with a sabnshoop of windows. Could Scilab team improves palette on Xcos. Here is a real question, and certainlny not Gougeon pixel routines . Keep serious please Before printing, think about ENVIRONMENTAL responsabity -----Message d'origine----- De?: users De la part de VTX1801 Envoy??: mardi 13 ao?t 2019 21:09 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] gui2bitmap 1.0 is released Samuel, Observations: The Windows 10 Snipping Tool has a window mode that accurately captures the selected window. Additionally, if you hold down the Alt key when you press the Print Screen key the window that has focus is captured. Therefore, there must be a Windows command to capture the window that has focus. This command might be available to execute from the gui2bitmap code. Found this information regarding the window command: WIN32 API GetActiveWindow will return the top-level window that is associated with the input focus. GetFocus will return the handle of the window that has the input focus. This article might help: http://www.microsoft.com/msj/0397/Win32/Win320397.aspx Hope this helps. Best regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246. html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users From perrichon.pierre at wanadoo.fr Tue Aug 13 21:53:20 2019 From: perrichon.pierre at wanadoo.fr (Perrichon) Date: Tue, 13 Aug 2019 21:53:20 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <1565723338873-0.post@n3.nabble.com> Message-ID: Samuel Gougeon, This is a very bad road, also change direction and move Your soft doesn't correctly go on Before printing, think about ENVIRONMENTAL responsabity -----Message d'origine----- De?: Perrichon Envoy??: mardi 13 ao?t 2019 21:42 ??: 'Users mailing list for Scilab' Objet?: RE: [Scilab-users] gui2bitmap 1.0 is released 1000 messages. I don"t understand that sreen captures need to be in the whole world, if this is correctly done with a sabnshoop of windows. Could Scilab team improves palette on Xcos. Here is a real question, and certainlny not Gougeon pixel routines . Keep serious please Before printing, think about ENVIRONMENTAL responsabity -----Message d'origine----- De?: users De la part de VTX1801 Envoy??: mardi 13 ao?t 2019 21:09 ??: users at lists.scilab.org Objet?: Re: [Scilab-users] gui2bitmap 1.0 is released Samuel, Observations: The Windows 10 Snipping Tool has a window mode that accurately captures the selected window. Additionally, if you hold down the Alt key when you press the Print Screen key the window that has focus is captured. Therefore, there must be a Windows command to capture the window that has focus. This command might be available to execute from the gui2bitmap code. Found this information regarding the window command: WIN32 API GetActiveWindow will return the top-level window that is associated with the input focus. GetFocus will return the handle of the window that has the input focus. This article might help: http://www.microsoft.com/msj/0397/Win32/Win320397.aspx Hope this helps. Best regards, Ted -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246. html _______________________________________________ users mailing list users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users -------------- next part -------------- A non-text attachment was scrubbed... Name: PERRICHON Pierre.vcf Type: text/x-vcard Size: 3135 bytes Desc: not available URL: From p.muehlmann at gmail.com Tue Aug 13 21:58:01 2019 From: p.muehlmann at gmail.com (P M) Date: Tue, 13 Aug 2019 21:58:01 +0200 Subject: [Scilab-users] gui2bitmap 1.0 is released In-Reply-To: <1565723338873-0.post@n3.nabble.com> References: <5520557c-56cf-99e7-dd29-63fc1b8dc981@free.fr> <1565723338873-0.post@n3.nabble.com> Message-ID: Ted, if one is able to execute following commands from Scilab: - GetActiveWindow - GetFocus What is the result? - a window handle to the active window - a handle to the window that has the keyboard focus I am no hardcore programmer, but to my understanding still there was no screenshot taken. So what still would be necessary: Call win10 snipping tool from scilab in such a way that it performs the screenshot on the window that has the focus. BR Philipp Am Di., 13. Aug. 2019 um 21:09 Uhr schrieb VTX1801 : > Samuel, > Observations: > The Windows 10 Snipping Tool has a window mode that accurately captures the > selected window. > > Additionally, if you hold down the Alt key when you press the Print Screen > key the window > that has focus is captured. > Therefore, there must be a Windows command to capture the window that has > focus. > This command might be available to execute from the gui2bitmap code. > > > Found this information regarding the window command: > > WIN32 API > GetActiveWindow will return the top-level window that is associated > with the input focus. GetFocus will return the handle of the window > that has the input focus. > > This article might help: > http://www.microsoft.com/msj/0397/Win32/Win320397.aspx > > Hope this helps. > Best regards, > Ted > > > > -- > Sent from: > http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users > -------------- next part -------------- An HTML attachment was scrubbed... URL: From francois.vogel.fv at gmail.com Thu Aug 15 14:32:34 2019 From: francois.vogel.fv at gmail.com (Francois Vogel) Date: Thu, 15 Aug 2019 14:32:34 +0200 Subject: [Scilab-users] [ANN] Scipad-8.76 Message-ID: ANNOUNCE: Scipad version 8.76 ============================= A new version of the Scipad text editor for Scilab and Scicoslab is available. CHANGES SINCE PREVIOUS VERSION ============================== NEW OR IMPROVED FEATURES: ?* Dealt with deprecation warnings spat by Scilab-6.0.2 when installing ?? Scipad (tbx_build_loader, tbx_build_cleaner, with_tk, eval), and tuned ?? configuration flags to support Scilab-6 ?* Reformat lines now features reformatting "paragraph by paragraph" ?* Improved friendliness of incremental find: when the controls need to ?? open (e.g. on F3), no search is launched anymore and search term is ?? cleared, except if there is a selection in which case a search is ?? launched using this selection as a search term ?* The results window for "Find in files" raises even if it was in iconic ?? state ?* Suppressed foreground switching of files detected as having changed on ?? disk ?* Added accelerator binding for Reformat lines ?* Added binding for searching in files ?* Added menu entry saving the current layout to the last opened or saved ?? layout filename ?* Added display of the number of selected characters in the bottom bar of ?? Scipad FIXED BUGS: ?* Fixed bugs in Scipad window geometry restoration (restored size could be ?? wrong; Tcl error could be triggered in some cases) ?* Fixed bug in window centering procedure happening when the secondary ?? screen is on the left (negative coordinates) of the main screen (Thanks ?? to Harald Oehlmann) ?* Stopped silent failing of the loading of the Scipad preferences file, in ?? such a case provide information to the user about the error encountered ?* Fixed preferences file loading error due to Tcl special characters ?* Fixed bug in Reformat lines: the last \n of the selection shall not vanish ?* Fixed missing recording of the search string in incremental find when ?? launching the incremental find feature manually ?* Fixed latent bugs detected by Nagelfar static code checker ?* Fixed bug with incremental find feature when reverting the file to its ?? saved version between highlighting of two matches ?* Fixed bug with automatic move of the Find/Replace dialog so that it does ?? not obscure the currently found match ?* Fixed bug with Tcl/Tk 8.6: the up and down arrow keys did no longer ?? move the insertion cursor ?* Fixed blinking of matching braces when typing, which may have not been ?? working depending on the specific keyboard layout used ?* Fixed Reformat Lines for Linux ?* Fixed usability bindings on Linux ?* Fixed bug with the width of the dropdown listbox of the incremental find ?? combobox, that did not work correctly when the combobox was wider than ?? the largest entry of the listbox ?* Fixed bug triggering "nothing to undo" error upon undo action (happened ?? because it was possible to paste the empty string in Scipad) BUGS THAT WERE FIXED BUT BROKE AGAIN: ?* Restored working checks for Scipad updates since SourceForge broke them ?? sometime in the 1st half of 2016 --> I just discovered SF broke it again! MISCELLANEOUS: ?* Factorized source code for file name selection with the open or save dialog ?* Made use of Tcl/Tk TIP #446 - [.text edit canundo/canredo] - for Tk ?? versions featuring it ?* Made use of Tcl/Tk TIP #449 - Ranges impacted by [.text edit undo/redo] - ?? for Tk versions featuring it (this improves performance of undo/redo ?? on large texts) ?* [revised_text] Removed event loop run when entering a tagged area showing ?? a tooltip. This could cause processing of "enter" event during the ?? processing of the same "enter" event, leading to Tcl error "window name ?? "bubble" already exists in parent". Happens with Tk's "revised_text" branch, ?? but not with the legacy code WHAT IS SCIPAD ? ================ Scipad is a powerful editor and graphical debugger for programs written in Scilab language. It is a mature and highly configurable programmer's editor, including features like syntax colorization, regexp search/replace, parentheses matching, logical/physical line numbering, peer windows, line and block text editing, and much more. Scipad can be used along with Scicoslab or Scilab, but even as a standalone text editor. Used as internal Sci(cos)lab editor, it interacts tightly with the interpreter, allowing: ?- Scilab code execution control ?- conditional breakpointing ?- variable retrieval and tooltip display ?- Scilab help lookup ?- access to source code of Scilab library function ?- control of Scilab facilities for Matlab code and creation of ?? help documents ?- and much more Scipad also includes basic Modelica and XML syntax colorization; it is currently localized in 13 languages and further localizations can easily be added. Scipad is entirely written in Tcl/Tk and Scilab language. It has been tested and developed under various versions of Windows and Linux. WHERE CAN SCIPAD BE FOUND? ========================== Project page @ SourceForge.net: http://sourceforge.net/p/scipad/ Direct download: ? - for Scilab: http://sourceforge.net/projects/scipad/files/scipad-8.76/scipad-8.76-Scilab5.zip/download ? - for Scicoslab: http://sourceforge.net/projects/scipad/files/scipad-8.76/scipad-8.76-Scicoslab.zip/download Installation instructions: http://sourceforge.net/p/scipad/wiki/Installation/ Details regarding the tested platforms: http://sourceforge.net/p/scipad/wiki/Tested%20on/ LICENSE ======= Scipad is a free software distributed under the terms of the GPL (V2) license. From j.s.strom at hslmg.de Fri Aug 16 11:54:33 2019 From: j.s.strom at hslmg.de (Jens Simon Strom) Date: Fri, 16 Aug 2019 11:54:33 +0200 Subject: [Scilab-users] Exclamation mark in variables Message-ID: Hallo Scilab friends, can anyone roughly predict when e. g. "*!x*" will become a legal variable name again? Kind regards Jens -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.muehlmann at gmail.com Fri Aug 23 10:24:08 2019 From: p.muehlmann at gmail.com (P M) Date: Fri, 23 Aug 2019 10:24:08 +0200 Subject: [Scilab-users] Scilab + neural Networks (CNN / FCNN) Message-ID: Dear experts, I am investigating if Scilab is capable to build a CNN or FCNN. So far I understood the ANN-Toolbox is not able to build these neural network types. Also the Neural-Network-Module does not seem to support CNN's or FCNN's. However it seems to be possible by using caffee together with scilab's python toolbox. see: http://scilabipcv.tritytech.com/2017/08/21/deep-learning-cnn-with-scilab-using-caffe-model/ Question: Is there work ongoing to implement CNN's and / or FCNN's into the Scilab modules mentioned above? Best regards, Philipp -------------- next part -------------- An HTML attachment was scrubbed... URL: From chinluh at tritytech.com Fri Aug 30 17:29:27 2019 From: chinluh at tritytech.com (Tan Chin Luh) Date: Fri, 30 Aug 2019 23:29:27 +0800 Subject: [Scilab-users] Scilab + neural Networks (CNN / FCNN) In-Reply-To: References: Message-ID: Hi Philipp, Currently the only module which could deal with the CNN directly is IPCV, but it is just for inferencing, means we load the pre-trained model into Scilab thought IPCV and use it for forward pass (prediction). Currently the module could import models from caffe, tensorflow, and onnx (some bugs detected on important ONNX, will fix it). The link you sent was our initial approach to try using the caffe-python binding and use the scilab-python (PIMS) module to import the model for inferencing as well. While PIMS is good for importing the python modules and use in Scilab, however, the syntax would be very similar to the Python, and some datatype are not compatible between 2. In this case, might as well we just use the python for training? We also used caffe framework for CNN training before (using the binary) and using the Scilab to control the setting, since their binary is reading some external files for hyperparameters, and the google prototxt to design the CNN, which make the design much easier. This went quite well but the I could not see the future of caffe and seems that the attention was shifted to caffe2 which is now merge into pytorch. This, infact is a good news, as pytorch does have a C++ interface, libtorch, which could be much easier to be integrated into Scilab, and we have done some testing on the integration and it seems working well, but to make this happened, I would call upon more developers for Scilab to contribute ideas and their experiences especially in C++ so the project could move fast. In a few weeks time, I will create a git project, if any Scilab + C++ experts are interested, please continue this conversation, I believe we could make something up. Thanks. Regards, Chin Luh On 23/8/2019 4:24 PM, P M wrote: > Dear experts, > > I am investigating if Scilab is capable to build a CNN or FCNN. > > So far I understood the ANN-Toolbox is not able to build these neural > network types. > Also the Neural-Network-Module does not seem to support CNN's or FCNN's. > > However it seems to be possible?by using caffee together with?scilab's > python toolbox. > see: > http://scilabipcv.tritytech.com/2017/08/21/deep-learning-cnn-with-scilab-using-caffe-model/ > > > Question: > Is there work ongoing to implement CNN's and / or FCNN's into the > Scilab modules mentioned above? > > Best regards, > Philipp > > _______________________________________________ > users mailing list > users at lists.scilab.org > http://lists.scilab.org/mailman/listinfo/users -- Tan Chin Luh Trity Technologies Sdn Bhd Tel : +603 80637737 HP : +6013 3691728 -------------- next part -------------- An HTML attachment was scrubbed... URL: