Re: [Scilab-users] save and *.sod broken in scilab6 ?

2018-08-27 Thread antoine monmayrant
ropriate type failed to close file - in scilab 6.0.0 : NOK (other bug): ./scilab-6.0.0/bin/scilab Cannot find this look and feel: [GTK look and feel - com.sun.java.swing.plaf.gtk.GTKLookAndFeel] not supported on this platform Segmentation fault (core dumped) Le 27/08/2018 à 15:47, antoine m

Re: [Scilab-users] save and *.sod broken in scilab6 ?

2018-08-27 Thread antoine monmayrant
Le 27/08/2018 à 15:39, Samuel Gougeon a écrit : Le 27/08/2018 à 15:31, philippe a écrit : Le 27/08/2018 à 12:24, Samuel Gougeon a écrit : Hello Philippe, No problem for me. You may have used listvarinfile() at a moment during your trials or work. no Samuel, the file val.sod doesn't exists

Re: [Scilab-users] {EXT} xs2svg and complex grayplot: room for improvements?

2018-08-23 Thread Antoine Monmayrant
the material in this e-mail is strictly forbidden. -- +++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoine.monmayr...@laas.fr permanent ema

[Scilab-users] xs2svg and complex grayplot: room for improvements?

2018-08-22 Thread antoine . monmayrant
proach automatically (maybe using an optional parameter)? Could this be the basis for a SEP? Thanks for you feedback, Antoine ¹ Matlab -- +++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE

Re: [Scilab-users] ?==?utf-8?q? Installing Scilab under Linux (Mint?==?utf-8?q? / aka Ubuntu)

2018-07-25 Thread Antoine Monmayrant
Hello Claus, I usually untar the scilab archive in a local folder in my home directory ("~/bin" for example) and I had the path to this folder in my $PATH variable. To launch scilab, I open a terminal and just type "scilab" (or scilab-cli, or whatever version you want to use). I don't have fancy

Re: [Scilab-users] submatrix issue

2018-06-01 Thread antoine monmayrant
Hello, What do you wan to achieve exactly? As Stéphane pointed out, the sizes are not the same. When you assign something like: A=B; You have two different situations: 1) size(A)==size(B) 2) size(B)=[1,1] In the first case, you assign each element of B to each element of A. In the latter ca

[Scilab-users] weird bug with scicv: can you help me reproduce it & report it correctly?

2018-04-11 Thread antoine monmayrant
Hi all, I'm facing a weird bug with scicv atoms in scilab6.0.1. Under certain conditions, trying to access an image that has been deleted crashes scilab. Here is a script to reproduce the bug (almost straight from imread help page): // scicv_Init(); img = imread(ge

[Scilab-users] scilab 6.0.1 in Ubuntu 18.04 repos has a broken Atoms Manager

2018-04-11 Thread antoine monmayrant
Hi all, I think I found a bug but I am not sure where to report it (ie Ubuntu or Scilab). The current Ubuntu 18.04 (beta) ships with scilab 6.0.1 in its repos, but atoms fail: $ scilab -version Scilab version "6.0.1.1518683525" scilab-6.0.1 Clicking on the AtomManager icon gives me the foll

Re: [Scilab-users] surf & isoview: bug or unexpected "feature"

2018-02-21 Thread Antoine Monmayrant
about the absence of cube_scaling mention on the help pages of surf() and isoview() ? Antoine Le 21/02/2018 à 10:59, Antoine Monmayrant a écrit : Hi all, I am a bit surprised by the way isoview acts on a surf plot. It seems to just scale the x,y,z axis so that the plot is inside an isometric 3D c

[Scilab-users] surf & isoview: bug or unexpected "feature"

2018-02-21 Thread Antoine Monmayrant
he x/Y plane but we have square Am I the only one to expect this behaviour? Antoine -- +++++++ Antoine Monmayrant LAAS - CNRS 7 avenue du Colonel Roche BP 54200 31031 TOULOUSE Cedex 4 FRANCE Tel:+33 5 61 33 64 59 email : antoin

Re: [Scilab-users] More rapid calculation

2018-02-14 Thread antoine monmayrant
Hello, If your problem is embarrassingly parallel (ie you run your simulations many times independently for different random matrices), you might speed up the overall simulation by running more than one instance of scilab in parallel. Antoine Le 14/02/2018 à 18:00, Stéphane Mottelet a éc

Re: [Scilab-users] ?==?utf-8?q? macOs High Sierra

2018-02-06 Thread Antoine Monmayrant
Hello Philippe, I agree with you that any regression when Scilab, your graphic drivers or your OS gets updated is a real pain in the beep. It's also clear that Scilab has some stability issues, in particular concerning its oversensitivity to graphic drivers¹. However, from my (limited) experienc

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= {EXT} need a more efficient and faster code: suggestions welcom

2018-01-31 Thread Antoine Monmayrant
plication instead) > > S. > > Le 31/01/2018 à 11:22, Antoine Monmayrant a écrit : > > Hello Stéphane, > > > > Sorry to hijack the discussion but I didn't know that there was such a > > difference between A.*A and A.^2. > > Could you tell us mor

Re: [Scilab-users] ?==?utf-8?q? {EXT} need a more efficient and faster code: suggestions welcome

2018-01-31 Thread Antoine Monmayrant
Hello Stéphane, Sorry to hijack the discussion but I didn't know that there was such a difference between A.*A and A.^2. Could you tell us more about it? Why is is twice faster to use the A.*A form? Is this documented somewhere? Cheers, Antoine Le Mercredi, Janvier 31, 2018 10:53 CET, Stép

Re: [Scilab-users] Scilab 6 crashes all the time

2018-01-28 Thread antoine monmayrant
Hi Claus, It might be related to graphic drivers. Did you try to run scilab in console mode (scilab -nogui or something like that)? Can you for example take one of the scripts that randomly crashes and run it repeatedly in console mode¹ and see if it works reliably? If it works, your problem co

Re: [Scilab-users] ?==?utf-8?q? Both scilab 5.5.2 & 6.0 stopped working (java issue under linux)

2018-01-19 Thread antoine monmayrant
MESA_EXTENSION_OVERRIDE [https://www.mesa3d.org/envvars.html]. Regards, -- Clément Le lundi 04 décembre 2017 à 16:38 +0100, Antoine Monmayrant a écrit : Hi all, Answering my own post: it was a graphic driver issue, as usual. I switch to another driver and now scilab starts, but all the graphics

Re: [Scilab-users] Dump the output of a function

2018-01-17 Thread antoine monmayrant
Hello all, I might say something really stupid, but can't we define a special variable like %eps, %i, etc to act as a black hole ? Something like %null (like piping to /dev/null or a null pointer) or a better name (%blackhole, %lostforever, %byebye, ;-) ). The idea being that no memory is allo

Re: [Scilab-users] circshift() : Scilab Enhancement Proposal

2018-01-03 Thread antoine monmayrant
Hi Samuel, Thanks a lot for this nice SEP. I have a couple of comments: 1) I think I should be good to also show some multidimensional examples using "shifts" and using both "shifts" and "dims". Sometimes in the scilab documentation, the user is served with examples only covering the most ba

Re: [Scilab-users] ?==?utf-8?q? Both scilab 5.5.2 & 6.0 stopped working (java issue under linux)

2017-12-04 Thread Antoine Monmayrant
Hi all, Answering my own post: it was a graphic driver issue, as usual. I switch to another driver and now scilab starts, but all the graphics windows are empty! Antoine On Monday, December 04, 2017 16:12 CET, "Antoine Monmayrant" wrote: > Hi everyone, > > It seems

[Scilab-users] Both scilab 5.5.2 & 6.0 stopped working (java issue under linux)

2017-12-04 Thread Antoine Monmayrant
Hi everyone, It seems that some automatic update have broken scilab on my linux station (16.04.3 64bits). Any java related feature is broken and only scilab-cli is working. As any of you any idea on how to investigate this issue? Thanks in advance, Antoine PS: Here is the crash log: $ scilab

Re: [Scilab-users] ?==?utf-8?q? fortran example call_scilab api

2017-11-21 Thread Antoine Monmayrant
Hello David, Did you try with scilab 5.5.2 on the same machine? There might be a bug in the example with scilab 6.0 as contrary to 5.5.2 we do not interact with the stack. Antoine Le Mardi, Novembre 21, 2017 16:38 CET, David Chèze a écrit: > Hi, > > W7x64 scilab 6 + IntelVisualFortran

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? frame, plot & non working zoom: your help for a bug report and a possible workaround

2017-11-10 Thread Antoine Monmayrant
> Your example does not involve uicontrol tab. So tabs can't be the cause > here. I know, but this is my minimum bugging example. In my code, I first encountered this bug with a plot inside a tab. I think that the bug is present whenever a plot is not directly a children of the figure, but the c

[Scilab-users] frame, plot & non working zoom: your help for a bug report and a possible workaround

2017-11-10 Thread Antoine Monmayrant
Hello Scilab users, I'm facing a bug that prevents zooming on a plot inside a frame (or a tab). Here is my minimum working (or bugging) example: // // Two axes in one figure: // left one is inside a frame // right one is directly attached to the figure // GUI zoom

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Bug?: plot with nan values (Linux Ubuntu 17.04

2017-10-19 Thread Antoine Monmayrant
It seems the bug report was 4 years ago: https://bugzilla.scilab.org/show_bug.cgi?id=13060 I added my test script and plots. Antoine Le Jeudi, Octobre 19, 2017 10:21 CEST, "Antoine Monmayrant" a écrit: > Thank you all for your answers. > It does look like a graphic

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

2017-10-19 Thread Antoine Monmayrant
Thank you all for your answers. It does look like a graphic bug that is only affecting some Linux machines. I refined my test script to compare the obtained plots when plotting on the screen and directly in a file ('driver'). It seems graphic direver related to me. I'll fill a bug report. Cheers,

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= )

2017-10-18 Thread Antoine Monmayrant
Antoine, > > I observe the "No bug" behavior (i.e., gaps when plotting nans) in both > Scilab 5.5.2 and Scilab 6.0.0 installations on Win7 64-bit PC. > > Regards, > Rafael > > > -Original Message- > From: users [mailto:users-boun...@lists.scilab.org]

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

2017-10-18 Thread Antoine Monmayrant
Update: 1) Here is a simpler minimal working example: /// x=1:100; y=rand(x); th=0.1; rg=find(y a écrit: > Hi everyone, > > I think I stumble upon a weird bug when plotting data with nan values: > instead of a gap in the plot line, I have segments

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

2017-10-18 Thread Antoine Monmayrant
Hi everyone, I think I stumble upon a weird bug when plotting data with nan values: instead of a gap in the plot line, I have segments that go go towards the center of my plots. This bug is present on Ubuntu 17.04, but not on Ubuntu 16.04 and it affects both scilab 5.5.2 and 6.0. I attached the

Re: [Scilab-users] Strange floating point issue below %eps

2017-09-19 Thread antoine monmayrant
Thanks a lot Bruno! I knew I had read something like that but could not remember what it was called. Cheers, Antoine PS: Samuel, do you think you could close the bug by pointing to this "round to even" rule? Le 19/09/2017 à 11:16, Pinçon Bruno a écrit : Le 18/09/2017 à 20:54, Samuel Gou

Re: [Scilab-users] Strange floating point issue below %eps

2017-09-19 Thread antoine monmayrant
10 So the first two are different while the last two are bit identical. I anyone can point to the specific bit in IEEE spec for this, I'll be happy! Antoine Le 19/09/2017 à 08:58, antoine monmayrant a écrit : Houps, my bad, julia does ex

Re: [Scilab-users] Strange floating point issue below %eps

2017-09-19 Thread antoine monmayrant
Houps, my bad, julia does exactly the same when using Float64, not Int64: println((2.0^53 + 2.0^2) + 1.0 == (2.0^53 + 2.0^2)) true println((2.0^53 + 2.0^1) + 1.0 == (2.0^53 + 2.0^1)) false It has to be some normal IEEE thing but I did not manage to find the proper reference for it. Anto

Re: [Scilab-users] Strange floating point issue below %eps

2017-09-18 Thread antoine monmayrant
Hello Samuel, Is this some IEEE standard overflow wraparound? For information, Julia (0.6) does not behave exactly in the same way. Both 'print((2^53 + 2^2) + 1 == (2^53 + 2^2))' and  'print((2^53 + 2^1) + 1 == (2^53 + 2^1))' return false. Antoine _

Re: [Scilab-users] ?==?utf-8?q? maintenance version for Scilab 6.0.X for Win32bit

2017-08-22 Thread Antoine Monmayrant
Le Lundi, Août 21, 2017 11:31 CEST, Hermes a écrit: > I tried to access the win 32bit link from the "maintenance version for Scilab > 6.0.X". And I get the following message: > > http://downloadarea.scilab.org/download/2017-07-18/scilab-branch-6.0-1500302649.exe > *"The webpage cannot be found

Re: [Scilab-users] ?==?utf-8?q? Keyboard shortcut to switch scinote and console

2017-06-23 Thread Antoine Monmayrant
Le Vendredi, Juin 23, 2017 05:57 CEST, Issei Ogasawara a écrit: > Hi everyone, > > Dose anyone know a keyboard shortcut to switch between scinotes and console? > Are there such function of scilab ? > If such shortcut works, we don't need to use mouse while coding. If you are on MacOS, I thin

Re: [Scilab-users] ?==?utf-8?q? Replacing predef() with an actual varprot(): a top-5 priority for Scilab 6.1?==?utf-8?q? <= At last, protecting user variables one by one

2017-06-08 Thread Antoine Monmayrant
Le Jeudi, Juin 08, 2017 19:51 CEST, Samuel Gougeon a écrit: > Hello, > > Scilab 6.0 is released. With respect to previous major releases, the > storage and management of variables have been completely changed. This > was one of the major purposes for this release. > > Yet, after 30 years of

Re: [Scilab-users] ?==?utf-8?q? Changes in command "abort"

2017-06-06 Thread Antoine Monmayrant
Hello, Could you provide us with a minimum working example of this behavior? Because on my setups (Win7 or Ubuntu 16.04->17.04), the abort command of scilab 6.0 seems to work like it used to on scilab 5.x. Cheers, Antoine Le Mardi, Juin 06, 2017 15:30 CEST, Adelson Oliveira a écrit: > I

Re: [Scilab-users] ?==?utf-8?q? Exporting graphic figure and its calcs

2017-05-31 Thread Antoine Monmayrant
Hello again, To add more details to my previous answer, here is the function I hastily hacked together to workaround the bug that prevent exporting uicontrols: function exportHack() // Export figure with uicontrols to png using X server & import (imagemagick) // Horrible hack that should

Re: [Scilab-users] ?==?utf-8?q? Exporting graphic figure and its calcs

2017-05-30 Thread Antoine Monmayrant
Le Mardi, Mai 30, 2017 15:58 CEST, Alexis Cros a écrit: > Hello, > > I have created a graphic figure which contains several things : > > - uicontrol frames which contain axes (polarplot, plot2d...) > > - uicontrol texts > > gui_sumup = figure(55, 'Position', [0 0

Re: [Scilab-users] ?==?utf-8?q? {EXT} stripchart?

2017-04-26 Thread Antoine Monmayrant
Le Mercredi, Avril 26, 2017 15:50 CEST, "Dang Ngoc Chan, Christophe" a écrit: > Hello > > > De : sho...@energetiq.com > > Envoyé : mercredi 26 avril 2017 15:31 > > > > I would like to plot this data on a "stripchart" - to show only the (say) > > latest 10 seconds of data, > > with the plot s

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? stripchart?

2017-04-26 Thread Antoine Monmayrant
Hi Steve, I don't think stripcharts exist in Scilab. That being said, you can emulate them pretty easily. See below the most simple example of such an emulation. In a more realistic scenario, you could replace my loop by a callback function that updates the plot everytime a new datapoint is measu

Re: [Scilab-users] ?==?utf-8?q? Scilab Computer Vision Module

2017-04-26 Thread Antoine Monmayrant
> From the look of it, the scicv seems to have solved the first 2 issues, > and near to 1k functions in OPENCV seems to have included in the dll, > which I believe it break the bottle neck of which others (including me) > facing. I wonder was it hand-coded? They might have used SWIG ( http://

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Scilab checkerboard plot (grayplot

2017-04-21 Thread Antoine Monmayrant
nc)] I plot it in a second axis next to the one with the actual data and than set the ticks labels by hand to display the nc values. Antoine > > Kind regards, > > Ekin > > > On 21/04/17 14:25, Antoine Monmayrant wrote: > > Le Vendredi, Avril 21, 2017 11:19

Re: [Scilab-users] ?==?utf-8?q? Scilab checkerboard plot (grayplot)

2017-04-21 Thread Antoine Monmayrant
Le Vendredi, Avril 21, 2017 11:19 CEST, Ekin Akoglu a écrit: > Dear all, > > I am producing a checkerboard plot with Scilab and the plot seems > erroneously colored. The matrix I plot is attached as well as the > scripts to plot and the plot produced by Scilab. > > The problem is that the

Re: [Scilab-users] ?==?utf-8?q? Use of optimized ATLAS binary with Scilab (on?==?utf-8?q? linux)

2017-04-11 Thread Antoine Monmayrant
t;http://atoms.scilab.org/toolboxes/Mathieu/>,**Nikolay Strelkov.* > > 11 апр. 2017 г. 14:59 пользователь "Antoine Monmayrant" < > antoine.monmayr...@laas.fr> написал: > > > Hi all, > > > > I wonder whether any of you has tried to use optimized ATLAS bin

[Scilab-users] Use of optimized ATLAS binary with Scilab (on linux)

2017-04-11 Thread Antoine Monmayrant
Hi all, I wonder whether any of you has tried to use optimized ATLAS binary instead of the default one provided by Scilab (in the SCI/lib/thirdparty). I read that it can greatly increase Scilab speed for some linear algebra computations (see Programming in Scilab by Michaël Baudin, p135, availab

Re: [Scilab-users] ?==?utf-8?q? scilab beta tester

2017-03-21 Thread Antoine Monmayrant
Le Mardi, Mars 21, 2017 16:18 CET, Philipp Mühlmann a écrit: > Dear Scilab developers, > > as Antoine offered beeing beta tester for Image Processing Toolbox I wonder > if toolbox developers could provide some code along with their toolbox for > testing the toolbox at other PC's or OS. Well,

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Install image processing toolbo

2017-03-21 Thread Antoine Monmayrant
;> Atoms portal does not handle the third parties library an atoms-module > >> required, and the dependencies of the module which could also crashed > >> with the version of libraries carried by the Scilab binary. > >> > >> So with all these problem, I tried to

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Install image processing toolbo

2017-03-21 Thread Antoine Monmayrant
> So with all these problem, I tried to come out with the "less" effort > way for the user to make it works on linux, still causing crash for the > first time, but with extra 1-2 steps will solve the problem. > > Thanks. > > Regards, > Chin Luh > > On

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Install image processing toolbo

2017-03-20 Thread Antoine Monmayrant
CET, "Antoine Monmayrant" a écrit: > Le Samedi, Mars 18, 2017 16:03 CET, Adailton Júnior > a écrit: > > > Hello, > > > > atomsInstall("IPCV") didn't work right away, and I tried in more than > > one computer. Although, after usi

Re: [Scilab-users] ?==?utf-8?q? Install image processing toolbox

2017-03-20 Thread Antoine Monmayrant
Le Samedi, Mars 18, 2017 16:03 CET, Adailton Júnior a écrit: > Hello, > > atomsInstall("IPCV") didn't work right away, and I tried in more than > one computer. Although, after usingatomsSystemUpdate(), it worked. > So, thanks for the quick reply. And good work. Now, I can proceed with > my

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

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

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

2017-03-08 Thread Antoine Monmayrant
CET, Pierre Vuillemin a écrit: > Following Antoine's idea, find enclosed an example on how you can > automate the process of improving your plots. This is obviously > incomplete but it gives a general idea. > > Hope it helps, > > Pierre > > Le 08.03.20

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

2017-03-08 Thread Antoine Monmayrant
It's definetly possible to do it. In my group, we usually: - set decent default values for the default figure ( hd=gdf() ): increase font size, ... - fix the ticks madness (ie replace [0. 0.167 0.333 0.5 0.667 0.833 1. ] ticks by [0. 0.25 0.5 0.75 1.]) - use the latex rendering for all the text,

Re: [Scilab-users] ?==?utf-8?q? overlay data onto image

2016-12-07 Thread Antoine Monmayrant
Hi Philipp, I sounds like a plan to me, I think I would do the same. Alternatively, you can plot the image inside a uicontrol, as a regular image, not a matrix and then overlay your data. But this alternative method would be less convenient, as it's unclear to me how you could reliably determine

Re: [Scilab-users] ?==?utf-8?q? xsetetch and xgetetch incompatible definitions of "frect"

2016-11-26 Thread Antoine Monmayrant
('background', color("lightgray"), box, 'on') as an equivalent to : a=newaxes() a.background=color("lightgray") a.box="on" What do you think? Le Samedi, Novembre 26, 2016 17:09 CET, Samuel Gougeon a écrit: > Le 26/11/2016 16:14, Sam

Re: [Scilab-users] ?==?utf-8?q? xsetetch and xgetetch incompatible definitions of "frect"

2016-11-26 Thread Antoine Monmayrant
Le Samedi, Novembre 26, 2016 17:09 CET, Samuel Gougeon a écrit: > Le 26/11/2016 16:14, Samuel Gougeon a écrit : > > Le 26/11/2016 08:52, Antoine Monmayrant a écrit : > > .../... > >> Two issues: > >> > >> 1) the help pages are missing description of m

[Scilab-users] xsetetch and xgetetch incompatible definitions of "frect"

2016-11-25 Thread Antoine Monmayrant
Hi all, Following my questions about axis breaks, I started playing with "xsetech" and "xgetech" that didn't know previously. Two issues: 1) the help pages are missing description of most of the parameters, 2) the two functions are apparently not using the same definition of frect: plot2d();

Re: [Scilab-users] ?==?utf-8?q? Axis break with Scilab

2016-11-25 Thread Antoine Monmayrant
Le Vendredi, Novembre 25, 2016 08:39 CET, sgoug...@free.fr a écrit: > >De: "Antoine Monmayrant" > > > >OK, that's what I understood from your last post but saddly it does not work > >on my setup with scilab-6.0.0-beta-2. > >I tried on two differ

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Axis break with Scilab

2016-11-24 Thread Antoine Monmayrant
Le Jeudi, Novembre 24, 2016 19:24 CET, Samuel Gougeon a écrit: > Le 24/11/2016 14:09, Antoine Monmayrant a écrit : > > Le Mercredi, Novembre 23, 2016 17:51 CET, sgoug...@free.fr a écrit: > > > >>> But anyway, with subplots, I haven't found a reliable way to

Re: [Scilab-users] ?==?utf-8?q? grayplot - colorbar

2016-11-24 Thread Antoine Monmayrant
Le Jeudi, Novembre 24, 2016 13:01 CET, SCHULZ Wolfgang a écrit: > Hi Rafael, > wow - thanks a lot. This is exactly what I need. > Thanks also to Samuel for his answer. > > For my understanding: I do not understand why you have to scale the matrix > and also how to scale. Could you explain wh

Re: [Scilab-users] ?==?utf-8?q? grayplot - colorbar

2016-11-24 Thread Antoine Monmayrant
Le Mercredi, Novembre 23, 2016 18:06 CET, Rafael Guerra a écrit: > Hi Wolfgang, > > Please check the code below using Matplot1() function. > It was not easy to write proper code, as the help file is relatively poor for > the Matplot1 function. He, he, your turn to write a bug report, no? ;

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= Axis break with Scilab

2016-11-24 Thread Antoine Monmayrant
Le Mercredi, Novembre 23, 2016 17:51 CET, sgoug...@free.fr a écrit: > >But anyway, with subplots, I haven't found a reliable way to get "zoom > >synchronization" across several subplots... > > This feature was broken since Scilab 5.4.0, but is repaired in Scilab 6.0-b: > the zoom box can aga

Re: [Scilab-users] ?==?utf-8?q? Axis break with Scilab ?

2016-11-23 Thread Antoine Monmayrant
:10 20.1:0.33:25 60:0.25:100]; > y0= exp(x0/30).*(1+0.5*sin(x0)); > dx_break= 3; // adjust this threshold to define breaks > > a=plotbreaks(x0,y0,dx_break) > > //END OF CODE > > > Regards, > Rafael > > > -Original Message- > From: users [mailto:

Re: [Scilab-users] ?==?utf-8?q? Axis break with Scilab ?

2016-11-23 Thread Antoine Monmayrant
it. As for %nan, it can be used to hide a certain part of the plot, but not skip the corresponding range. Thank you anyway for sharing your scilab-fu! Antoine > > Best regards > Samuel > > - Mail original - > De: "Antoine Monmayrant" > À: users@lis

[Scilab-users] Axis break with Scilab ?

2016-11-22 Thread Antoine Monmayrant
Hi all, I just got a question from one of my colleagues: "Is this possible to get axis breaks when plotting with Scilab?" (ie a plot where a bit of the scale in x, y or even both is missing, see : http://www.originlab.com/doc/Tutorials/Multiple-Axis-Breaks ). As far as I know, I don't see any di

Re: [Scilab-users] ?==?utf-8?q? uman 2.1 is released

2016-11-17 Thread Antoine Monmayrant
t minute. I don't see exactly what it would take to "merge" it with core scilab and whether Scilab devs and the uman dev would agree on this... Antoine > > and thanks too. > > From: users [mailto:users-boun...@lists.scilab.org] On Behalf Of Antoine > Monmayrant >

Re: [Scilab-users] uman 2.1 is released

2016-11-16 Thread Antoine Monmayrant
bitget lru' did not display the parameters section * 'uman author> wb' without section and item yielded an error. * 'uman figure_size wb' did not select '... Fig.figure_size=sizes ...' * 'uman [ wb' missed '[a b c ..]' and other entr

[Scilab-users] Exporting figures containing uicontrols to any format

2016-11-01 Thread Antoine Monmayrant
Hi everyone, After a long fight to build fancy graphics with uicontrols to demo some physics, I am now stuck because of bug 14502 ( https://bugzilla.scilab.org/show_bug.cgi?id=14502 ). Basically, I have no way to export my figure to any format (ie no exportUI(gcf()) and no xs2something). As any

Re: [Scilab-users] ?==?utf-8?q? Scilab control after an impossible calculation

2016-10-06 Thread Antoine Monmayrant
Hi Paul, Here are a couple of things you can do: - as already mentioned, try/catch structures can be used to handle problems instead of crashing. - can't you bullet-proof your code? I mean check x!=0 if you have 1/x somewhere in your code. - just change your parametrization to use y=1/x as a p

Re: [Scilab-users] ?==?utf-8?q? shift phase in fft

2016-09-29 Thread Antoine Monmayrant
Hi Paul, What are you trying to achieve exactly? If you apply a phase shift, you actually just multiple your signal by exp(i*phi), both in the time and frequency domain. Not much to see actually. Now, if you apply a linear a phase shift in time ie S1(t)->S1(t)*exp(i*Omega*t), this will result

Re: [Scilab-users] ?==?utf-8?q? LateX support and verbatim

2016-08-28 Thread Antoine Monmayrant
Le Samedi, Août 27, 2016 19:24 CEST, philippe a écrit: > Hi, > > Le 26/08/2016 à 15:00, Antoine Monmayrant a écrit : > > Hi all, > > > > I tried to use verbatim text inside some latex string, but without success: > > > >titlepage("$\verb| \a

[Scilab-users] LateX support and verbatim

2016-08-26 Thread Antoine Monmayrant
Hi all, I tried to use verbatim text inside some latex string, but without success: titlepage("$\verb| \alpha |$") Is this normal? Is "\verb" a TeX and not a LaTeX command? Cheers, Antoine ___ users mailing list users@lists.scilab.org http://list

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? [EXTERNAL] Re: Whay False

2016-08-23 Thread Antoine Monmayrant
Hello Paul, We all make the same mistake at some point. I did it few years ago and someone mentioned this article: "What every computer scientist should know about floating-point arithmetic" by David Goldberg. It's available online, for example here: http://perso.ens-lyon.fr/jean-michel.muller/

Re: [Scilab-users] ?==?utf-8?q? plot2d problem

2016-08-21 Thread Antoine Monmayrant
Hi Gerhard, Try: plot2d(x, [y ; z]); Here is my guess: in the example "plot2d(x,[sin(x) sin(2*x) sin(3*x)])", x and all the other vectors are Nx1 so "[sin(x) sin(2*x) sin(3*x)]" is Nx3 which is fine for plotting with respect to a Nx1 x vector. In your example, I think x, y and z are 1xN (not

Re: [Scilab-users] ?==?utf-8?q? Regex problem

2016-08-19 Thread Antoine Monmayrant
Hi Gerhard, One stupid question and one possible workaround: - 1) Are you sure that your pattern matching is supported by scilab ? Last time I tried, I had issues with capturing groups. I tried your regexpr on https://regex101.com/#pcre and it seems OK. -2) Do you really need to use regexp? Ca

Re: [Scilab-users] ?==?utf-8?q? help for RS232 programming

2016-08-16 Thread Antoine Monmayrant
Hi, Here are few pointsI usually check when facing communication issues with RS232/GPIB: - Are you sure you have set the serial port correctly (delimiter, baud rate, parity, ...) ? - Are you sure your controller is supposed to answer something to this command ? - Is the syntax for passing the a

Re: [Scilab-users] scilab 6.0 beta, command line history and freezes

2016-05-02 Thread Antoine Monmayrant
thout a backtrace, and it didn't happen with most system configurations (besides it "froze" scilab leaving you no choice but to kill it without having the material to report) Thanks a bunch for the update. Le 29/04/2016 08:43, Antoine Monmayrant a écrit : The command below r

Re: [Scilab-users] scilab 6.0 beta, command line history and freezes

2016-04-28 Thread Antoine Monmayrant
The command below requires a sudo on my system: |sudo gdb --pid=$(pidof scilab-bin scilab-cli-bin lt-scilab-bin lt-scilab-cli-bin) --eval-command='thread apply all bt'| This will attach gdb to your stuck scilab, you can then post the back trace and we can analyze where the problem is. Er, OK

Re: [Scilab-users] scilab 6.0 beta, command line history and freezes

2016-04-28 Thread Antoine Monmayrant
Le 04/28/2016 06:47 PM, Pierre-Aimé Agnel a écrit : LD_PRELOAD="/lib/x86_64-linux-gnu/libncurses.so.5" bin/scilab -nw That solved the problem! Thanks a lot. I'll update the bug report. Cheers, Antoine ___ users mailing list users@lists.scilab.org h

[Scilab-users] scilab 6.0 beta, command line history and freezes

2016-04-28 Thread antoine . monmayrant
Hi everyone, I think I found a bug (regression) in the current beta and I wonder whether it is related to my own setup (os, config, ...) or whether it's more general. Is anyone here routinely using the current beta in command line mode (ie "scilab -nw" or "scilab-cli") ? If yes, did you observ

[Scilab-users] porting an atom module from 5.5.x?==?utf-8?q? -> 6.0

2016-04-09 Thread Antoine Monmayrant
Hi everyone, I just tried to install in 6.0 an atom module developed by one of my colleagues for 5.5.X, without success. I tough naively that just bumping the version requirement from 5.X wih X>=2 to X.0 with X>=6, in addition to small fixes in the loader/builder would do it but I was wrong.

Re: [Scilab-users] Reintroducing stacksize on Scilab 6 ? was (Re: multiple element by element between large matrix and vector)

2016-03-23 Thread Antoine Monmayrant
Le 09/28/2015 12:01 PM, Clément David a écrit : Hello all, Also, if you don't already know about it, stacksize is a handy Scilab function if you're working with large data arrays. "stacksize max" will either give you the biggest Scilab stack that can be had or crash your machine, depending on

Re: [Scilab-users] Finding data_bounds

2016-03-22 Thread Antoine Monmayrant
Le 03/22/2016 11:39 AM, Jens a écrit : xdel(); figure('BackgroundColor',[1 1 1]); f1=gcf(); f1.figure_size=[1000 900]; f1.figure_position = [300,0]; subplot(2,3,1)//setting estimated plot bounds to maintain during loop cafix=gca(); cafix.data_bounds = 5

Re: [Scilab-users] leastsq question : what is 'gopt' useful for?

2016-03-22 Thread Antoine Monmayrant
Le 03/22/2016 10:55 AM, Stéphane Mottelet a écrit : Hello, Le 22/03/2016 10:41, antoine.monmayr...@laas.fr a écrit : Hi everyone, I have a very general and naive question concerning leastsq: what am I to do with "gopt", the "gradient of f at xopt"? Is there a way to link it to the confidenc

[Scilab-users] leastsq question : what is 'gopt' useful for?

2016-03-22 Thread antoine . monmayrant
Hi everyone, I have a very general and naive question concerning leastsq: what am I to do with "gopt", the "gradient of f at xopt"? Is there a way to link it to the confidence interval for each parameter of my fit? For the moment, I know how to estimate these confidence intervals when I have

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= creating ROI from mouse click

2016-03-11 Thread Antoine Monmayrant
Le Vendredi 11 Mars 2016 10:21 CET, Samuel Gougeon a écrit: > Hello, > Le 11/03/2016 10:11, Philipp Mühlmann a écrit : > > Thanks, but wouldn't this limit the ROI shape to be a rectangle? > > > > My purpose would be to have a ROI of any possible shape one can get > > with mouse clicks, havin

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= creating ROI from mouse click

2016-03-11 Thread Antoine Monmayrant
box. > But this also deals only with rectangles and ellipses > > BR > Philipp > > > 2016-03-11 8:59 GMT+01:00 Antoine Monmayrant : > > > > > Le Vendredi 11 Mars 2016 06:39 CET, Philipp Mühlmann < > > p.muehlm...@gmail.com> a écrit: >

Re: [Scilab-users] ?==?utf-8?q? creating ROI from mouse clicks

2016-03-11 Thread Antoine Monmayrant
Le Vendredi 11 Mars 2016 06:39 CET, Philipp Mühlmann a écrit: > Dear all, > > how can I use mouse clicks to create a region of interest (ROI) for image > processing without using IPD toolbox? > > > My current aproach is something like this: > > > > 1.) display an 2-D array, e.g.: a gra

Re: [Scilab-users] plot bug in scilab 6.0 beta1

2016-03-02 Thread Antoine Monmayrant
Le 03/02/2016 11:06 AM, Jan Åge Langeland a écrit : On 02.03.2016 10:23, antoine.monmayr...@laas.fr wrote: Hi all, I found a bug in scilab 6.0 beta1. Plot seems to fail for some curves when trying to specify a color different than the default one: It works OK for me with Windows 10 and 6.0

[Scilab-users] plot bug in scilab 6.0 beta1

2016-03-02 Thread antoine . monmayrant
Hi all, I found a bug in scilab 6.0 beta1. Plot seems to fail for some curves when trying to specify a color different than the default one: //BUG PLOT: i=[-100:100]; i0=10; di=4.0.^((i/i0)^2); //OK, no error scf(); plot(i,di); // Error: Invalid index scf(); plot(i,di,'r'); in builtin

Re: [Scilab-users] Update: Maximum allocation with Scilab 6.0 beta

2016-02-26 Thread Antoine Monmayrant
Le 02/26/2016 01:41 PM, Samuel Gougeon a écrit : Le 26/02/2016 13:24, antoine.monmayr...@laas.fr a écrit : Le 02/26/2016 01:17 PM, antoine.monmayr...@laas.fr a écrit : Hi all, For testing purposes, I am trying to allocate big chunks of memory with scilab 6.0beta. I have ~256GB of free ram on

[Scilab-users] Update: Maximum allocation with Scilab 6.0 beta

2016-02-26 Thread antoine . monmayrant
Le 02/26/2016 01:17 PM, antoine.monmayr...@laas.fr a écrit : Hi all, For testing purposes, I am trying to allocate big chunks of memory with scilab 6.0beta. I have ~256GB of free ram on my machine, however, Scilab fails creating variables that are way smaller than that: --> a=rand(10,100

[Scilab-users] Maximum allocation with Scilab 6.0 beta

2016-02-26 Thread antoine . monmayrant
Hi all, For testing purposes, I am trying to allocate big chunks of memory with scilab 6.0beta. I have ~256GB of free ram on my machine, however, Scilab fails creating variables that are way smaller than that: --> a=rand(10,10); Can not allocate 8.00 MB memory. Any idea what is

Re: [Scilab-users] ?==?utf-8?q? disp(a,b,c)?==?utf-8?q? => display a,?==?utf-8?q? b, and finally c ; not c, b and then a <=?==?utf-8?q? Re: News: Scilab 6 Beta, VISA Toolbox, Embedded World 2016

2016-02-24 Thread Antoine Monmayrant
Le Mercredi 24 Février 2016 14:43 CET, Samuel Gougeon a écrit: > Le 17/02/2016 15:50, Samuel Gougeon a écrit : > > Le 17/02/2016 15:12, amonm...@laas.fr a écrit : > >> > >> What about adding to the list the infamous forgotten ";" after a huge > >> matrix, aka "huge matrix display scrolling

Re: [Scilab-users] ?==?utf-8?q? Bug of input function in Scilab 6.0 beta 1

2016-02-23 Thread Antoine Monmayrant
Le Mardi 23 Février 2016 17:16 CET, Clément David a écrit: > Hi Wolfgang, > > It seems to be a bug, please report it. Is this related to the previous 'input()' bug reported here (crashing for long input string)? Antoine > > -- > Clément > > Le mardi 23 février 2016 à 14:48 +, SCHU

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= How to replicate what "load" does (aka creating variable in the current workspace from inside a function)

2016-02-22 Thread Antoine Monmayrant
> Not sure if it is related to `who` or to the special use of `resume`. I can confirm that it comes from the bug in who for scilab 6.0. See also my solution that uses 'resume' and not 'who' and work in both 5.5 and 6.0 Cheers, Antoine ___ users mai

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= How to replicate what "load" does (aka creating variable in the current workspace from inside a function)

2016-02-22 Thread Antoine Monmayrant
Hi all, For information, I found a solution that works fine in both 5.5.X and 6.0.X: function myload() txt=["a=1";"b=2"]; execstr(txt);//load local variables defined in txt; //build comma separated list of variables in txt csvar=strsubst(txt,'/=.*/',',','r').'; csvar=part(strcat(cs

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= How to replicate what "load" does (aka creating variable in the current workspace from inside a function)

2016-02-22 Thread Antoine Monmayrant
This bug (who results are always sorted) was already reported here : http://bugzilla.scilab.org/show_bug.cgi?id=14352 ___ users mailing list users@lists.scilab.org http://lists.scilab.org/mailman/listinfo/users

Re: [Scilab-users] ?==?utf-8?q? ?==?utf-8?q? ?= How to replicate what "load" does (aka creating variable in the current workspace from inside a function)

2016-02-22 Thread Antoine Monmayrant
Le Lundi 22 Février 2016 12:04 CET, "Antoine Monmayrant" a écrit: > > Le Lundi 22 Février 2016 11:51 CET, Serge Steer a > écrit: > > > The following function does the job: > > > > function myload() > >txt=["a=1";"

Re: [Scilab-users] ?==?utf-8?q? How to replicate what "load" does (aka creating variable in the current workspace from inside a function)?

2016-02-22 Thread Antoine Monmayrant
l"); >vars=vars(1:size(vars,'*')-ncur-1) >args=strcat(vars,",") >execstr("["+args+"]=resume("+args+")") > endfunction Thank you Serge! It does work on 5.5.0, but it does not work on 6.6.0-beta1. It might be due to the way va

<    1   2   3   4   5   >