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

2024-01-22 Thread Stefan Du Rietz

Hello Jens, this line in your function or script returns its file name as you 
requested:

[filepath,filename]=get_absolute_file_path();

Best regards
Stefan

On 2024-01-18 11:42, Jens Simon Strom wrote:

Hi,
I look for a command which -- as part of a script -- returns  a string 
containing the file name or full path name of the current script.

uigetfile() seemed to be close but does something else.

Regards
Jens


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://lists.scilab.org/mailman/listinfo/users


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


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

2024-01-18 Thread Stefan Du Rietz

Hi Jens, this line in your function or script gives the filename as you 
requested:

[filepath,filename]=get_absolute_file_path();

Regards
Stefan



On 18/01/2024 11.42, Jens Simon Strom wrote:
Hi,
I look for a command which -- as part of a script -- returns  a string 
containing the file name or full path name of the current script.

uigetfile() seemed to be close but does something else.

Regards
Jens


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://lists.scilab.org/mailman/listinfo/users


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Using Scilab on Linux Mint

2023-10-15 Thread Stefan Du Rietz

On a laptop computer of mine with Intel (8:th gen.) integrated graphics, the 
environment variable

_JAVA_OPTIONS="-Djogl.disable.openglcore"
makes some lines in a plot wrongly drawn, but

LIBGL_ALWAYS_SOFTWARE=1
makes them correct.

Stefan


On 14/10/2023 13.50, Samuel Enibe wrote:
This has been a recurring problem since SCILAB version 6.1

Following suggestions on this forum, I solved it on my UBUNTU installation by 
typing the following commands on the console:

export _JAVA_OPTIONS="-Djogl.disable.openglcore"

scilab &

Samuel Ogbonna Enibe
BEng (Nig), MSc (Reading, England), PhD (Nig)
Professor of Mechanical Engineering
Formerly Dean, Faculty of Engineering (01/08/2014 to 31/07/2016)
University of Nigeria, Nsukka, Nigeria

On Fri, Oct 13, 2023 at 9:12 PM Federico Miyara 
mailto:fmiy...@fceia.unr.edu.ar>> wrote:

Dear All,

I'm trying to use Scilab on Linux Mint 21.2 (which is similar to or
derived from Ubuntu) and I can't plot anything. The figure window is
created but it appears completely blank when plot() is used.

Any help, please?

Thanks in advance.

Regards,

Federico Miyara


--
Este correo electrónico ha sido analizado en busca de virus por el software 
antivirus de Avast.
www.avast.com
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://lists.scilab.org/mailman/listinfo/users


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Using Scilab on Linux Mint

2023-10-14 Thread Stefan Du Rietz

The strange thing is that at the moment, after

$ sudo apt update && sudo apt upgrade

the plotting works without setting a new environment variable! However, when I 
start Scilab from the command line, lots of Java errors are still reported.

Stefan


On 14/10/2023 13.50, Samuel Enibe wrote:
This has been a recurring problem since SCILAB version 6.1

Following suggestions on this forum, I solved it on my UBUNTU installation by 
typing the following commands on the console:

export _JAVA_OPTIONS="-Djogl.disable.openglcore"

scilab &

Samuel Ogbonna Enibe
BEng (Nig), MSc (Reading, England), PhD (Nig)
Professor of Mechanical Engineering
Formerly Dean, Faculty of Engineering (01/08/2014 to 31/07/2016)
University of Nigeria, Nsukka, Nigeria

On Fri, Oct 13, 2023 at 9:12 PM Federico Miyara 
mailto:fmiy...@fceia.unr.edu.ar>> wrote:

Dear All,

I'm trying to use Scilab on Linux Mint 21.2 (which is similar to or
derived from Ubuntu) and I can't plot anything. The figure window is
created but it appears completely blank when plot() is used.

Any help, please?

Thanks in advance.

Regards,

Federico Miyara


--
Este correo electrónico ha sido analizado en busca de virus por el software 
antivirus de Avast.
www.avast.com
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 

https://lists.scilab.org/mailman/listinfo/users


This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Using Scilab on Linux Mint

2023-10-14 Thread Stefan Du Rietz

Frederico,

First: How did you install Scilab in Linux Mint 21.2?
Version 6.1.1 with Software Manager or from the terminal (both from the 
repositories) or version 2023.1.0 from the Scilab download page?
I can then send a working desktop file to you.

Second: It is all about graphic drivers. I found this:
https://askubuntu.com/questions/1333764/scilab-graphic-window-appear-but-it-is-blank-there-is-no-plot-ubuntu-20-04-lts

Your questions:

1, 2) It can be either a global file in /usr/share/applications or a user-specific 
file in /home//.local/share/applications
Both will be visible in the Start menu.

3) Yes.

4) By searching the Internet (see above).

5) I hand over this one to the Scilab team or Samuel G!

Stefan


On 14/10/2023 03.53, Federico Miyara wrote:

Stefan,

Thank you very much for your valuable help. However, it is embarrassing for me 
to confess that I'm quite new to Linux so I need a little more help:

1) Is the desktop file a system (global) file or an application file?
2) Where can I find it?
3) I assume once located I can edit it with any text editor, am I right?
4) Optional :)   How does one discover workarounds like this?
5) Is this a bug to be reported or it is a normal situation to have to tweak 
the desktop file? So far I haven't had this kind of problem with other programs 
using graphic capabilities.

Thank you again.

Regards.

Federico

On 13/10/2023 19:45, Stefan Du Rietz wrote:
Hello Federico, I had to set an environment variable in my desktop file:

Exec=env LIBGL_ALWAYS_SOFTWARE=1
/usr/local/scilab/scilab-2023.1.0/bin/scilab

Regards
Stefan

On 13/10/2023 22.10, Federico Miyara wrote:

Dear All,

I'm trying to use Scilab on Linux Mint 21.2 (which is similar to or
derived from Ubuntu) and I can't plot anything. The figure window is
created but it appears completely blank when plot() is used.

Any help, please?

Thanks in advance.

Regards,

Federico Miyara


--
Este correo electrónico ha sido analizado en busca de virus por el
software antivirus de Avast.
www.avast.com<http://www.avast.com>
___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/

___
users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org>
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org>
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/





This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data prote

Re: [Scilab-users] Using Scilab on Linux Mint

2023-10-13 Thread Stefan Du Rietz

Hello Federico, I had to set an environment variable in my desktop file:

Exec=env LIBGL_ALWAYS_SOFTWARE=1
/usr/local/scilab/scilab-2023.1.0/bin/scilab

Regards
Stefan

On 13/10/2023 22.10, Federico Miyara wrote:


Dear All,

I'm trying to use Scilab on Linux Mint 21.2 (which is similar to or
derived from Ubuntu) and I can't plot anything. The figure window is
created but it appears completely blank when plot() is used.

Any help, please?

Thanks in advance.

Regards,

Federico Miyara


--
Este correo electrónico ha sido analizado en busca de virus por el
software antivirus de Avast.
www.avast.com
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the
individual or entity to whom it is addressed and may be confidential
and/or privileged.

If you are not one of the named recipients or have received this email
in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete
this email and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to
our data privacy policy as described on our website. Should you have
any questions related to personal data protection, please contact 3DS
Data Protection Officer https://www.3ds.com/privacy-policy/contact/


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://lists.scilab.org/mailman/listinfo/users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systèmes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.


Please be informed that your personal data are processed according to our data 
privacy policy as described on our website. Should you have any questions 
related to personal data protection, please contact 3DS Data Protection Officer 
https://www.3ds.com/privacy-policy/contact/



Re: [Scilab-users] Basic query - mprintf

2023-01-11 Thread Stefan Du Rietz

On 2023-01-11 00:11, Samuel Gougeon wrote:

Le 07/04/2022 à 09:50, Lester Anderson a écrit :

Hello all,

Very basic query but how do you print all the values from a result via 
mprintf?


e.g.

fac = factor(1729)
7 13 19

mprintf('Factors of 1729 are: %d\n', fac)
just prints 'Factors of 1729 are: 7

You may also use a Fortran syntax -- that supports automatic inline 
iterations, unlike C syntaxes -- instead of a  C one:


--> fac = factor(1729);
--> write(%io(2), fac, "(''Factors of 1729 are:'', 10(i2,2x))")

Factors of 1729 are: 7  13  19

Samuel

PS : i no longer receive messages from users@ since 2022-10-05 (last 
received).
So for the time being, i answer to old threads, to not break recent ones 
to which i can't reply, just read archives.




Too print all elements, the argument must be a column vector: fac'
And to avoid repeating the first wording, you can print it separately:

--> mprintf("Factors of 1729 are: "), mprintf("%d  ", fac')
Factors of 1729 are: 7  13  19

Stefan




___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Long delay before callback

2022-09-22 Thread Stefan Du Rietz

Stéphane, thank you very much for your example!

However, everyone of my callback functions is short-lived: it just does 
a few things and exits. Sometimes the response is instantaneous but 
sometimes it takes a long time. I have not so far managed to notice any 
pattern in that.


Stefan


On 2022-09-20 14:06, Stéphane Mottelet wrote:
Depending on what you want to do, some have to be interruptible, and 
some have to prioritary. For example in the following example, where you 
can start/stop incrementing a slider,  the "start" callback must be 
interruptible but the "stop" callback must be prioritary :


function stop() set("button","userdata",%t) endfunction function start() 
try but = get("button") but.string="stop" but.callback="stop()" 
but.callback_type=10; but.userdata = %f; sl = get("slider"); for 
t=tuser(tuser>=sl.value) if but.userdata break; end sl.value = t; 
title(msprintf("t=%g",t)) end but.callback_type=0; 
but.callback="start()" but.string="start" catch end endfunction 
tuser=0:0.001:1; sl=uicontrol("style","slider",... "tag","slider",... 
"units","normalized",... "position",[0.1 0 0.9 0.05],... "background",[1 
1 1],... "min",t(1),"max",t($),"sliderstep",(t(2)-t(1))*[1 1]); 
but=uicontrol("style","pushbutton",... "units","normalized",... 
"position",[0 0 0.1 0.05],... "string","start",... "tag","button",... 
"string","start",... "callback","start()")


Le 20/09/2022 à 13:41, Stefan Du Rietz a écrit :

Hi, thanks.
Yes, but it doesn't seem to make much difference. And I don't exactly 
understand the different options.


Stefan


On 2022-09-20 12:03, Stéphane Mottelet wrote:

Hi,

Did you try to play wth callback_type (interruptible or not) ?

Le 20/09/2022 à 10:48, Stefan Du Rietz a écrit :

Hello Stéphane,

a minimal example works OK all the time ...

So, there must be something in my rather complex GUI environment, 
with many private functions, that does not. But since I get no 
warning or error messages, I don't know how to proceed.


Can the delays be due to timeouts?

Regards
Stefan


On 2022-09-19 08:45, Stéphane Mottelet wrote:

Hello Stefan,

Can you  give a minimal and reproductible example ?

S.

Le 18/09/2022 à 12:18, Stefan Du Rietz a écrit :

Hello,
I have a problem with GUI: when I choose a menu or press a button, 
sometimes it takes half a minute before the callback starts. 
Scilab is then using 100% of CPU, according to Bash top. I suppose 
it has something to do with Java? What can I do?


--> ver
 ans  =
  "Scilab Version: "    "6.1.1.1626343451"
  "Operating System: "  "Linux 5.4.0-125-generic"
  "Java version: "  "1.8.0_292"
  "Java runtime information: "  "OpenJDK Runtime 
Environment (build 1.8.0_292-b10)"
  "Java Virtual Machine information: "  "OpenJDK 64-Bit Server VM 
(build 25.292-b10, mixed mode)"

  "Vendor specification: "  "Oracle Corporation"

Regards
Stefan
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
<mailto:users-unsubscr...@lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet


___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users

___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Long delay before callback

2022-09-20 Thread Stefan Du Rietz

Hi, thanks.
Yes, but it doesn't seem to make much difference. And I don't exactly 
understand the different options.


Stefan


On 2022-09-20 12:03, Stéphane Mottelet wrote:

Hi,

Did you try to play wth callback_type (interruptible or not) ?

Le 20/09/2022 à 10:48, Stefan Du Rietz a écrit :

Hello Stéphane,

a minimal example works OK all the time ...

So, there must be something in my rather complex GUI environment, with 
many private functions, that does not. But since I get no warning or 
error messages, I don't know how to proceed.


Can the delays be due to timeouts?

Regards
Stefan


On 2022-09-19 08:45, Stéphane Mottelet wrote:

Hello Stefan,

Can you  give a minimal and reproductible example ?

S.

Le 18/09/2022 à 12:18, Stefan Du Rietz a écrit :

Hello,
I have a problem with GUI: when I choose a menu or press a button, 
sometimes it takes half a minute before the callback starts. Scilab 
is then using 100% of CPU, according to Bash top. I suppose it has 
something to do with Java? What can I do?


--> ver
 ans  =
  "Scilab Version: "    "6.1.1.1626343451"
  "Operating System: "  "Linux 5.4.0-125-generic"
  "Java version: "  "1.8.0_292"
  "Java runtime information: "  "OpenJDK Runtime Environment 
(build 1.8.0_292-b10)"
  "Java Virtual Machine information: "  "OpenJDK 64-Bit Server VM 
(build 25.292-b10, mixed mode)"

  "Vendor specification: "  "Oracle Corporation"

Regards
Stefan
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Long delay before callback

2022-09-20 Thread Stefan Du Rietz

Hello Stéphane,

a minimal example works OK all the time ...

So, there must be something in my rather complex GUI environment, with 
many private functions, that does not. But since I get no warning or 
error messages, I don't know how to proceed.


Can the delays be due to timeouts?

Regards
Stefan


On 2022-09-19 08:45, Stéphane Mottelet wrote:

Hello Stefan,

Can you  give a minimal and reproductible example ?

S.

Le 18/09/2022 à 12:18, Stefan Du Rietz a écrit :

Hello,
I have a problem with GUI: when I choose a menu or press a button, 
sometimes it takes half a minute before the callback starts. Scilab is 
then using 100% of CPU, according to Bash top. I suppose it has 
something to do with Java? What can I do?


--> ver
 ans  =
  "Scilab Version: "    "6.1.1.1626343451"
  "Operating System: "  "Linux 5.4.0-125-generic"
  "Java version: "  "1.8.0_292"
  "Java runtime information: "  "OpenJDK Runtime Environment 
(build 1.8.0_292-b10)"
  "Java Virtual Machine information: "  "OpenJDK 64-Bit Server VM 
(build 25.292-b10, mixed mode)"

  "Vendor specification: "  "Oracle Corporation"

Regards
Stefan
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Long delay before callback

2022-09-18 Thread Stefan Du Rietz

Hello,
I have a problem with GUI: when I choose a menu or press a button, 
sometimes it takes half a minute before the callback starts. Scilab is 
then using 100% of CPU, according to Bash top. I suppose it has 
something to do with Java? What can I do?


--> ver
 ans  =
  "Scilab Version: ""6.1.1.1626343451" 

  "Operating System: "  "Linux 5.4.0-125-generic" 

  "Java version: "  "1.8.0_292" 

  "Java runtime information: "  "OpenJDK Runtime Environment 
(build 1.8.0_292-b10)"
  "Java Virtual Machine information: "  "OpenJDK 64-Bit Server VM 
(build 25.292-b10, mixed mode)"
  "Vendor specification: "  "Oracle Corporation" 



Regards
Stefan
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Basic query - mprintf

2022-04-07 Thread Stefan Du Rietz

Of course you don't need to make the string s.

You have to transpose fac to get a column vector for mprintf and then 
transpose the column string vector to get a row string vector:


--> fac = msprintf("%d\n", fac')'
 fac  =
  "7"  "13"  "19"

and then concatenate the string so that it works for a variable number 
of elements in fac:


--> mprintf("Factors of 1729 are:  %s", strcat(fac,"  "))

Stefan


On 2022-04-07 11:30, Stefan Du Rietz wrote:

Hello Lester,

--> s = msprintf("Factors of 1729 are:  ");
  s  =
   "Factors of 1729 are:  "
--> fac = msprintf("%d\n", fac')'
  fac  =
   "7"  "13"  "19"
--> mprintf("%s%s", s, strcat(fac, "  "))
Factors of 1729 are:  7  13  19

Regards
Stefan


On 2022-04-07 09:50, Lester Anderson wrote:

Hello all,

Very basic query but how do you print all the values from a result via 
mprintf?


e.g.

fac = factor(1729)
7 13 19

mprintf('Factors of 1729 are: %d\n', fac)
just prints 'Factors of 1729 are: 7

Sorry for the basic question!
Cheers
Lester

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

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

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


Re: [Scilab-users] Basic query - mprintf

2022-04-07 Thread Stefan Du Rietz

Hello Lester,

--> s = msprintf("Factors of 1729 are:  ");
 s  =
  "Factors of 1729 are:  "
--> fac = msprintf("%d\n", fac')'
 fac  =
  "7"  "13"  "19"
--> mprintf("%s%s", s, strcat(fac, "  "))
Factors of 1729 are:  7  13  19

Regards
Stefan


On 2022-04-07 09:50, Lester Anderson wrote:

Hello all,

Very basic query but how do you print all the values from a result via 
mprintf?


e.g.

fac = factor(1729)
7 13 19

mprintf('Factors of 1729 are: %d\n', fac)
just prints 'Factors of 1729 are: 7

Sorry for the basic question!
Cheers
Lester

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

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


Re: [Scilab-users] Is this behavior of ifft / isreal correct?

2022-04-07 Thread Stefan Du Rietz

Hello Federico,

--> isreal(%i^2, %eps)
 ans  =
  T

--> %i^2 == -1
 ans  =
  T

Regards
Stefan


On 2022-04-07 05:24, Federico Miyara wrote:


Dear all,

Consider

M = 16
w = [ones(1,M/4),zeros(1,M/4)]
w = [w(1:M/2), 0, conj(w($:-1:2))]
v = ifft(w)
isreal(v)

The first 3 lines defines a real spectrum of a real signal, then the 
real signal is recovered and finally it is checked whether it is real or 
not.


What puzzles me is that the result is T (true). However, the definition 
of the ifft() involves complex operations, so at some point the numbers 
must be converted to a complex representation such as


1. + 0.i

so I would expect that the result included 0i so the result of the test 
should be F. Where is this null imaginary component removed?


I don't say this is wrong, but it is perplexing if compared to much more 
simple operations such as


sqrt(%i^4)

which yields 1. + 0.i, a complex representation of real scalar 1.

Maybe the fftw package is so refined to detect whether the result is 
actually real and removes the useless 0.i components?


Regards,

Federico Miyara



 
	Libre de virus. www.avast.com 
 



<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

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

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


Re: [Scilab-users] Cannot start Scilab 6.1.1

2022-03-30 Thread Stefan Du Rietz
When I did that, this message did not appear at startup in the Scilab 
command window:


"at line56 of function xmlGetValues ( 
/usr/local/scilab/scilab-6.1.1/share/scilab/modules/xml/macros/xmlGetValues.sci 
line 69 )
at line22 of function help ( 
/usr/local/scilab/scilab-6.1.1/share/scilab/modules/helptools/macros/help.sci 
line 34 )


xmlGetValues: Invalid XPath request."

However, the messages in the terminal remained, seemingly (from the 
content) because of the nVidia graphics driver.


After changing to "X.Org X server -- Noveau display driver from 
xserver-xorg-video-nouveau (open source)" they did not appear.


So, *with the nVidia driver*, if I start Scilab from a .desktop-file 
with JAVA_OPTIONS..., then no error messages are visible and the 
graphics seem to work.


Is there any possible disadvantage?

Regards
Stefan


On 2022-03-30 00:13, Stephane Mottelet wrote:

Can you try, on the command line :

_JAVA_OPTIONS="-Djogl.disable.openglarbcontext=1" ./bin/scilab &



---
Stephane Mottelet

Le 2022-03-29 21:43, Stefan Du Rietz a écrit :

Hi Stéphane,

Thank you very much, your command worked!
$ sudo apt install libtinfo5

Then Scilab started OK, but with many messages:

stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ ./bin/scilab &
[1] 276737
stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ X Error of failed
request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  110
  Current serial number in output stream:  111
javax.media.opengl.GLException: X11GLXDrawableFactory - Could not
initialize shared resources for :0.0
  at
jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:317) 

  at 
jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:295)

  at java.lang.Thread.run(Thread.java:748)
Caused by: javax.media.opengl.GLException: main-SharedResourceRunner:
Unable to create temp OpenGL context(1)
  at 
jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:343)
  at 
jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:696)

  at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:589)
  at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:539)
  at
jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:293) 


  ... 2 more
[Fatal Error] :1:1: Premature end of file.

/Stefan


On 2022-03-29 16:02, Stéphane Mottelet wrote:

Hi Stefan,

Did you try to google with

"libtinfo.so.5: cannot open shared object file: No such file or 
directory"


There is a bunch of possible fixes. did you try :

sudo apt install libtinfo5

?

S.


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

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

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


Re: [Scilab-users] Cannot start Scilab 6.1.1

2022-03-29 Thread Stefan Du Rietz

Hi Stéphane,

Thank you very much, your command worked!
$ sudo apt install libtinfo5

Then Scilab started OK, but with many messages:

stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ ./bin/scilab &
[1] 276737
stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ X Error of failed 
request:  BadValue (integer parameter out of range for operation)

  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  110
  Current serial number in output stream:  111
javax.media.opengl.GLException: X11GLXDrawableFactory - Could not 
initialize shared resources for :0.0
  at 
jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:317)

  at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:295)
  at java.lang.Thread.run(Thread.java:748)
Caused by: javax.media.opengl.GLException: main-SharedResourceRunner: 
Unable to create temp OpenGL context(1)

  at jogamp.opengl.x11.glx.X11GLXContext.createImpl(X11GLXContext.java:343)
  at 
jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:696)

  at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:589)
  at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:539)
  at 
jogamp.opengl.x11.glx.X11GLXDrawableFactory$SharedResourceImplementation.createSharedResource(X11GLXDrawableFactory.java:293)

  ... 2 more
[Fatal Error] :1:1: Premature end of file.

/Stefan


On 2022-03-29 16:02, Stéphane Mottelet wrote:

Hi Stefan,

Did you try to google with

"libtinfo.so.5: cannot open shared object file: No such file or directory"

There is a bunch of possible fixes. did you try :

sudo apt install libtinfo5

?

S.


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


[Scilab-users] Cannot start Scilab 6.1.1

2022-03-29 Thread Stefan Du Rietz

Hello all,
I am trying to get Scilab 6.1.1 running in a new Computer (Xubuntu Linux 
20-04, nVidia T-600 with proprietary driver) from 
scilab-6.1.1.bin.linux-x86_64.tar.gz in the same way as in another 
computer with the same OS but with Java 8,


But when I try to start from the terminal:

stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ ./bin/scilab &
[1] 261325
stefan@LenovoTS:/usr/local/scilab/scilab-6.1.1$ X Error of failed 
request:  BadValue (integer parameter out of range for operation)

  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  110
  Current serial number in output stream:  111
scilab-bin: error while loading shared libraries: libtinfo.so.5: cannot 
open shared object file: No such file or directory


I have uninstalled Java 11 and installed Java 8 to no avail.

If I install Scilab from Ubuntu repositories with

  $ sudo apt install scilab

I get a working version 6.1.0 (including graphics!), except for 
Preferences in both command window and Scinotes! So I can't change font 
in either of them.


Can anybody help?

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


Re: [Scilab-users] Scinotes background color

2022-01-25 Thread Stefan Du Rietz

Hello Stéphane,
I could just add to Bug #16735.

Thanks
Stefan


On 2022-01-25 14:24, Stéphane Mottelet wrote:

Hello Stefan,

First if all, please create a new issue in bugzilla.scilab.org. Then, 
can you try a with a different window manager (other than xfce) ?


S.

Le 25/01/2022 à 13:09, Stefan Du Rietz a écrit :

Hello,
with Scilab 6.1.1 and Linux (Ubuntu with XFCE) the background color in 
Scinotes turned grey, which makes almost all text unreadable. In 
Scinotes Preferences and in the Command window it is white.


Is there anything I can do?

Regards
Stefan


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



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


[Scilab-users] Scinotes background color

2022-01-25 Thread Stefan Du Rietz

Hello,
with Scilab 6.1.1 and Linux (Ubuntu with XFCE) the background color in 
Scinotes turned grey, which makes almost all text unreadable. In 
Scinotes Preferences and in the Command window it is white.


Is there anything I can do?

Regards
Stefan


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


Re: [Scilab-users] xdel replaced by close()

2022-01-22 Thread Stefan Du Rietz

Hello,

On 2022-01-21 23:54, Samuel Gougeon wrote:

Hello Claus,

Le 21/01/2022 à 20:58, Claus Futtrup a écrit :

Hi Scilabers

Today I tried to replace xdel(winsid()) in one of my scripts with 
close(winsid()) because Scilab shows a warning in the console:


Warning: Feature xdel(...) is obsolete and will be permanently removed 
in Scilab 6.2


Warning: Please use close(...) instead.

I am negatively surprised that the close() command takes a long time 
to execute with 5-10 windows open (a few seconds per window). The 
xdel() command can do it in a split second.




The issue comes not from close() but from the change offindobj() that it 
calls , noticeably 
to perform findobj("figure_id",id) in 6.1.1.
It does not impact only  close() for 
this case, that was processed as a special accelerated case 
 
in the former findobj().


This downgradingwas reported 
 7 months before 
releasing 6.1.1, and knowingly ignored, while it is perfectly fixable by 
restoring the fast special case.





What is the motivation for replacing xdel with close?


Both do the same thing. Scilab does not need duplicates.

Regards
Samuel



scf(id) is much faster than findobj("figure_id",id)

--> winsid()
 ans  =
   0.   1.

--> tic, f = []; for k=winsid(), f = [findobj("figure_id",k); f]; end, toc
 ans  =
   0.281087

--> tic, f = []; for k=winsid(), f = [scf(k); f]; end, toc
 ans  =
   0.000237

So, this is how to do it:

--> for k=winsid(), delete(scf(k)); end

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


Re: [Scilab-users] Scilab crashes on x_choose_modeless

2021-10-25 Thread Stefan Du Rietz

But as Samuel G wrote in
https://bugzilla.scilab.org/show_bug.cgi?id=14652

this function would be redundant if x_choose() had.an argument "modal".

Stefan


On 2021-10-25 09:41, Clément David wrote:

Hello,

Yep I was able to reproduce, it looks that's a known bug 
https://bugzilla.scilab.org/show_bug.cgi?id=14905

Thanks,
Clément


-Original Message-
From: users  On Behalf Of Stefan Du Rietz
Sent: Monday, October 25, 2021 9:34 AM
To: users@lists.scilab.org
Subject: Re: [Scilab-users] Scilab crashes on x_choose_modeless

Hello, I get the same result (nothing but the title: "Scilab Choose
Message") with Scilab 6.1.1 under Linux. And Scilab hangs ...

Stefan


On 2021-10-25 09:06, Stéphane Mottelet wrote:

Hi,

Let us see if someone reacts to/cares about  this message...

S.

Le 24/10/2021 à 22:58, P M a écrit :

Hi,

What is the expected behaviour of x_choose_modeless ?

Executing the help example

grafik.png


I get the window below and Scilab does not react to anything.

Experienced under Scilab 6.1.0 (64-bit) on a Win10 PC.

grafik.png

Philipp

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


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels Sorbonne Universités -
Université de Technologie de Compiègne CS 60319, 60203 Compiègne

cedex

Tel : +33(0)344234688 http://www.utc.fr/~mottelet


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


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

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


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


Re: [Scilab-users] Scilab crashes on x_choose_modeless

2021-10-25 Thread Stefan Du Rietz
Hello, I get the same result (nothing but the title: "Scilab Choose 
Message") with Scilab 6.1.1 under Linux. And Scilab hangs ...


Stefan


On 2021-10-25 09:06, Stéphane Mottelet wrote:

Hi,

Let us see if someone reacts to/cares about  this message...

S.

Le 24/10/2021 à 22:58, P M a écrit :

Hi,

What is the expected behaviour of x_choose_modeless ?

Executing the help example

grafik.png


I get the window below and Scilab does not react to anything.

Experienced under Scilab 6.1.0 (64-bit) on a Win10 PC.

grafik.png

Philipp

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


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet


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


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


Re: [Scilab-users] Messagebox - button pre-selection

2021-10-22 Thread Stefan Du Rietz

Sorry, I didn't read yor message to the end ...

On 2021-10-22 14:18, Stefan Du Rietz wrote:

Hello Philipp,
you can change the button labels.

Regards
Stefan


On 2021-10-22 12:56, P M wrote:

Dear,

in a messagebox:

Is it possible to have a button other than the first one pre-selected?

e.g.: I'd like to have "No" pre-selected in the example below?

In my application the buttons must stay in their order as they 
are...so simply changing the order (button label) is no option.


Thank you,
Philipp

grafik.png



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


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

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


Re: [Scilab-users] Messagebox - button pre-selection

2021-10-22 Thread Stefan Du Rietz

Hello Philipp,
you can change the button labels.

Regards
Stefan


On 2021-10-22 12:56, P M wrote:

Dear,

in a messagebox:

Is it possible to have a button other than the first one pre-selected?

e.g.: I'd like to have "No" pre-selected in the example below?

In my application the buttons must stay in their order as they are...so 
simply changing the order (button label) is no option.


Thank you,
Philipp

grafik.png



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


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


Re: [Scilab-users] datatips in multiple axes plot

2021-10-01 Thread Stefan Du Rietz

Sorry,

I missed a "2":

function y = yblu(yin)
  y = -1 + log10(yin)*2/3
endfunction

Stefan


On 2021-10-01 12:58, Stefan Du Rietz wrote:

Hello David,

if you don't need automatic scaling, you could use drawaxis() to get the 
second and third y-axis and then scale the y-data of those lines to plot 
them in the first axes. In your figure:


function y = yblu(yin)
   y = -1 + log10(yin)/3
endfunction

function y = yred(yin)
   y = -1 + yin * 2/240
endfunction

Then plot x and the function value of y.

Regards
Stefan


On 2021-09-30 09:56, CHEZE David 227480 wrote:

Dear all,

I found a limitation in the datatip manager of any figure window, as 
illustrated in the screen capture below, from the “multiple scaled 
plots” example : the datatip manager can catch only the last axe that 
was plotted, in the example only the red curve. This is a pity since 
it might be needed to ask datatip for other curves as well when 
analysing experimental data for instance.


I tried to set first axe as the current axes, sca(gcf().children(3)), 
but I didn’t manage to get the datatips for the first black curve.


Do you see any reason for this limitation? Enhancement suggestion ?

David


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


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

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


Re: [Scilab-users] datatips in multiple axes plot

2021-10-01 Thread Stefan Du Rietz

Hello David,

if you don't need automatic scaling, you could use drawaxis() to get the 
second and third y-axis and then scale the y-data of those lines to plot 
them in the first axes. In your figure:


function y = yblu(yin)
  y = -1 + log10(yin)/3
endfunction

function y = yred(yin)
  y = -1 + yin * 2/240
endfunction

Then plot x and the function value of y.

Regards
Stefan


On 2021-09-30 09:56, CHEZE David 227480 wrote:

Dear all,

I found a limitation in the datatip manager of any figure window, as 
illustrated in the screen capture below, from the “multiple scaled 
plots” example : the datatip manager can catch only the last axe that 
was plotted, in the example only the red curve. This is a pity since it 
might be needed to ask datatip for other curves as well when analysing 
experimental data for instance.


I tried to set first axe as the current axes, sca(gcf().children(3)), 
but I didn’t manage to get the datatips for the first black curve.


Do you see any reason for this limitation? Enhancement suggestion ?

David


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


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


Re: [Scilab-users] 6.1.1 startup error

2021-09-23 Thread Stefan Du Rietz

Hello and many thanks for your replies!

Samuel,
Unfortunately, deleting SCIHOME/configuration.xml did not help (I have a 
vague memory that it worked previously). I agree with all your later 
comments.


Stéphane,
my changed line

gets replaced by

so it did not help.

Clément,
Deleting all the configuration files helped, BUT THEN ALL MY OWN FOLDERS 
WERE DELETED (a regression?)! Therefore all the changes I had made in my 
functions were lost!


Regards
Stefan


On 2021-09-22 17:35, Clément David wrote:

Hi Stéphane, hi Samuel, hi all,

The idea behind SCIHOME is to have a version specific directory to avoid 
any issues when upgrading from Scilab versions to Scilab versions ; IMHO 
implementing an upgrade for files stored into this directory is for me a 
non-sense ; the upgrade could be done manually (as Samuel described) for 
the few users that copy the files between SCIHOMEs.


Clément

*From:* users  *On Behalf Of *Stéphane 
Mottelet

*Sent:* Wednesday, September 22, 2021 5:19 PM
*To:* users@lists.scilab.org
*Subject:* Re: [Scilab-users] 6.1.1 startup error

Hi,

The version of Scilab which generated the configuration.xml should be 
contained in some attribute of the top level element, i.e.


     

This would allow to trigger a proper upgrade of the file when the Scilab 
version differs or a regeneration if the file cannot be upgraded.


S.

Le 22/09/2021 à 17:10, Samuel Gougeon a écrit :

Hello Stefan,


This kind of error might arise when the content of the SCIHOME
directory of a previous scilab version is copied into the SCIHOME of
the current 6.1.1 version, for instance to avoid respecifying all
users preferences.
Unfortunately, when the template of some configuration file is
changed from one version to the next one, the file must be regenerated.

The issue should be fixed either by deleting the
SCIHOME/configuration.xml file, and regenerating it automatically
from scratch (quit Scilab and rerun it),
or by editing it and changing or adding the line just before the
 one, for instance with





Regards
Samuel

Le 22/09/2021 à 12:08, Stefan Du Rietz a écrit :

Hello,
when starting Scilab 6.1.1 with

   $ /usr/local/scilab/scilab-6.1.1/bin/scilab

I get the message:

Startup execution:
   loading initial environment
at line    81 of function xmlGetValues   (

/usr/local/scilab/scilab-6.1.1/share/scilab/modules/xml/macros/xmlGetValues.sci
line 94 )
at line    22 of function help   (

/usr/local/scilab/scilab-6.1.1/share/scilab/modules/helptools/macros/help.sci
line 34 )
at line    14 of function helpbrowser_update (

/usr/local/scilab/scilab-6.1.1/share/scilab/modules/helptools/macros/helpbrowser_update.sci
line 25 )

xmlGetValues: Invalid attribute name: lang.

in Ubuntu Linux after a successful (apart from this)
installation from
scilab-6.1.1.bin.linux-x86_64.tar.gz

What can I do?

Regards
Stefan




___

users mailing list

users@lists.scilab.org  <mailto:users@lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users  
<http://lists.scilab.org/mailman/listinfo/users>

--

Stéphane Mottelet

Ingénieur de recherche

EA 4297 Transformations Intégrées de la Matière Renouvelable

Département Génie des Procédés Industriels

Sorbonne Universités - Université de Technologie de Compiègne

CS 60319, 60203 Compiègne cedex

Tel : +33(0)344234688

http://www.utc.fr/~mottelet  <http://www.utc.fr/~mottelet>


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


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


[Scilab-users] 6.1.1 startup error

2021-09-22 Thread Stefan Du Rietz

Hello,
when starting Scilab 6.1.1 with

  $ /usr/local/scilab/scilab-6.1.1/bin/scilab

I get the message:

Startup execution:
  loading initial environment
at line81 of function xmlGetValues   ( 
/usr/local/scilab/scilab-6.1.1/share/scilab/modules/xml/macros/xmlGetValues.sci 
line 94 )
at line22 of function help   ( 
/usr/local/scilab/scilab-6.1.1/share/scilab/modules/helptools/macros/help.sci 
line 34 )
at line14 of function helpbrowser_update ( 
/usr/local/scilab/scilab-6.1.1/share/scilab/modules/helptools/macros/helpbrowser_update.sci 
line 25 )


xmlGetValues: Invalid attribute name: lang.

in Ubuntu Linux after a successful (apart from this) installation from
scilab-6.1.1.bin.linux-x86_64.tar.gz

What can I do?

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


[Scilab-users] Remove a Scilab version in Ubuntu Linux

2021-09-22 Thread Stefan Du Rietz

Hello,
can I remove the version 6.0.1 from the terminal with

  $ sudo rm -r /usr/local/scilab/scilab-6.1.0/

or is that not enough?

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


Re: [Scilab-users] Loop query

2021-08-15 Thread Stefan Du Rietz



On 2021-08-15 15:54, Samuel Gougeon wrote:

Le 15/08/2021 à 11:28, Lester Anderson a écrit :

Hello Samuel,

The size of ns (number of steps) and seq (sequence of values) are 
variable depending on the integer input, and this seems to be one issue.


For this reason, seq must be a list, leading to

function  [ns, seq] = collatz(p)
 seq  =  p
 while  %T
 if  pmodulo(p, 2)
 p  =  p*3+1
 else
 p  =  p/2
 end
 seq  =  [seq  p]
 if  p==1
 ns  =  length(seq)
 break
 end
 end
endfunction

prime = primes(20); [ns, seq] = ([],list()); for  i  =  1:length(prime)
 [ns(i),  seq(i)]  =  collatz(prime(i));
end --> ns' ans = 2. 8. 6. 17. 15. 10. 13. 21. --> seq seq = (1) = [2,1] 
(2) = [3,10,5,16,8,4,2,1] (3) = [5,16,8,4,2,1] (4) = 
[7,22,11,34,17,52,26,13,40,20,10,5,16,8,4,2,1] (5) = 
[11,34,17,52,26,13,40,20,10,5,16,8,4,2,1] (6) = 
[13,40,20,10,5,16,8,4,2,1] (7) = [17,52,26,13,40,20,10,5,16,8,4,2,1] (8) 
= [19,58,29,88,44,22,11,34,17,52,26,13,40,20,10,5,16,8,4,2,1]


Samuel

Of course, Samuel, I didn't realize that the length of seq was not 
monotonically increasing (which I had if I had looked at the displayed 
matrix ...)!


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


Re: [Scilab-users] Loop query

2021-08-15 Thread Stefan Du Rietz

One solution:

// Run the last (largest):
[ns, seq] = collatz(prime($))

// insert in new zeros vector:
ns = [zeros(prime-1), ns]
// insert seq in new zeros matrix:
seq = [zeros(length(seq), length(ns)-1), seq];

for  i = 1:length(prime)-1
  // Run collatz to get the new ns:
  [nsi, seqi] = collatz(prime(i));
  // insert in vector ns and matrix seq:
  ns(i) = nsi;
  seq(1:nsi, i) = seqi;
end

dispalay ns above seq:
[ns; seq]

Stefan


On 2021-08-15 13:03, Lester Anderson wrote:

Hi Stefan,

Thank you for clarifying the meaning of the error message.

Lester

On Sun, 15 Aug 2021 at 11:59, Stefan Du Rietz <mailto:s...@durietz.se>> wrote:


Hello Lester,
the problem is that seq in each loop is a vector of increasing length!

Stefan


On 2021-08-15 12:05, Lester Anderson wrote:
 > Hi Stefan,
 >
 > I did try that before, but got an error - "Submatrix incorrectly
defined"
 >
 > Lester
 >
 > On Sun, 15 Aug 2021 at 10:56, Stefan Du Rietz mailto:s...@durietz.se>
 > <mailto:s...@durietz.se <mailto:s...@durietz.se>>> wrote:
 >
 >
 >
 >     On 2021-08-15 09:00, Lester Anderson wrote:
 >      > Hello,
 >      >
 >      > Basic query. I have a simple code that applies the Collatz
 >     conjecture
 >      > equation (3n+1) by running a function and then runs a loop
over the
 >      > values stored in prime (the first 8 Prime numbers):
 >      >
 >      > clear
 >      >
 >      > exec('collatz.sci',-1);
 >      >
 >      > prime  =  primes(20);
 >      >
 >      > for  i  =  1:length(prime)
 >      >      [ns,  seq]=collatz(prime(i))
 >      > end
 >      >
 >      > As it stands, this just runs to the end (i=8) and the
value 19.
 >     How can
 >      > I get the code to write the results of each loop pass into the
 >     variables
 >      > ns and seq, such that each contains the results of the 8
passes?
 >      >
 >      > Can no longer search the forums online from the website.
 >      >
 >      > Thanks
 >      > Lester
 >
 >
 >     // Before the for loop:
 >     ns = zeros(prime);
 >     seq = ns;
 >
 >     // Changed for loop
 >     for  i  =  1:length(prime)
 >           [ns(i),  seq(i)]=collatz(prime(i))
 >     end
 >
 >     Regards
 >     Stefan
 >     ___
 >     users mailing list
 > users@lists.scilab.org <mailto:users@lists.scilab.org>
<mailto:users@lists.scilab.org <mailto:users@lists.scilab.org>>
 > http://lists.scilab.org/mailman/listinfo/users
<http://lists.scilab.org/mailman/listinfo/users>
 >     <http://lists.scilab.org/mailman/listinfo/users
<http://lists.scilab.org/mailman/listinfo/users>>
 >
 >
 > ___
 > users mailing list
 > users@lists.scilab.org <mailto:users@lists.scilab.org>
 > http://lists.scilab.org/mailman/listinfo/users
<http://lists.scilab.org/mailman/listinfo/users>
 >
___
users mailing list
users@lists.scilab.org <mailto:users@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users
<http://lists.scilab.org/mailman/listinfo/users>


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


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


Re: [Scilab-users] Loop query

2021-08-15 Thread Stefan Du Rietz

Hello Lester,
the problem is that seq in each loop is a vector of increasing length!

Stefan


On 2021-08-15 12:05, Lester Anderson wrote:

Hi Stefan,

I did try that before, but got an error - "Submatrix incorrectly defined"

Lester

On Sun, 15 Aug 2021 at 10:56, Stefan Du Rietz <mailto:s...@durietz.se>> wrote:




On 2021-08-15 09:00, Lester Anderson wrote:
 > Hello,
 >
 > Basic query. I have a simple code that applies the Collatz
conjecture
 > equation (3n+1) by running a function and then runs a loop over the
 > values stored in prime (the first 8 Prime numbers):
 >
 > clear
 >
 > exec('collatz.sci',-1);
 >
 > prime  =  primes(20);
 >
 > for  i  =  1:length(prime)
 >      [ns,  seq]=collatz(prime(i))
 > end
 >
 > As it stands, this just runs to the end (i=8) and the value 19.
How can
 > I get the code to write the results of each loop pass into the
variables
 > ns and seq, such that each contains the results of the 8 passes?
 >
 > Can no longer search the forums online from the website.
 >
 > Thanks
 > Lester


// Before the for loop:
ns = zeros(prime);
seq = ns;

// Changed for loop
for  i  =  1:length(prime)
      [ns(i),  seq(i)]=collatz(prime(i))
end

Regards
Stefan
___
users mailing list
users@lists.scilab.org <mailto:users@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users
<http://lists.scilab.org/mailman/listinfo/users>


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


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


Re: [Scilab-users] Loop query

2021-08-15 Thread Stefan Du Rietz



On 2021-08-15 09:00, Lester Anderson wrote:

Hello,

Basic query. I have a simple code that applies the Collatz conjecture 
equation (3n+1) by running a function and then runs a loop over the 
values stored in prime (the first 8 Prime numbers):


clear

exec('collatz.sci',-1);

prime  =  primes(20);

for  i  =  1:length(prime)
 [ns,  seq]=collatz(prime(i))
end

As it stands, this just runs to the end (i=8) and the value 19. How can 
I get the code to write the results of each loop pass into the variables 
ns and seq, such that each contains the results of the 8 passes?


Can no longer search the forums online from the website.

Thanks
Lester



// Before the for loop:
ns = zeros(prime);
seq = ns;

// Changed for loop
for  i  =  1:length(prime)
[ns(i),  seq(i)]=collatz(prime(i))
end

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


Re: [Scilab-users] % instead of percent

2021-07-14 Thread Stefan Du Rietz

Hello Jens,
by "%%"

Stefan


On 2021-07-14 16:55, Jens Simon Strom wrote:

Hallo Scilab family,

How can I replace /percen/t by the symbol % in the command
printf('Change: %5.1f percent \n',5.0) ?

I use  Version 6.1.0

Kind regards
Jens



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


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


Re: [Scilab-users] Undocking windows

2021-06-25 Thread Stefan Du Rietz

Hello, Stéphane, thank you very much!

Stefan


On 2021-06-24 17:51, Stéphane Mottelet wrote:


Le 24/06/2021 à 17:41, Stefan Du Rietz a écrit :



On 2021-06-24 15:45, Stéphane Mottelet wrote:


Le 24/06/2021 à 13:09, Stefan Du Rietz a écrit :

Hello,
yes, and to get the useful part of the window a little higher. The 
same without toolbars (that I never use).


Isn't there a text-file with window settings somewhere?

no


But when I restart Scilab, all windows reappear in the same positions, 
Where is that information stored?


I meant the information about toolbars, dockability is not part of this 
file, which is in SCIHOME:


SCIHOME/windowsConfiguration.xml




In the console menu I can choose to hide the toolbar but it is not 
remembered


The console can be managed by the user through its handle and the 
visibility of the toolbar can be managed:


c = get(0);
c.toolbar_visible = "off";

However, this is the only non-graphical window which is available 
this way. Managing other non-graphical windows (variable browser, 
scinotes, ...) is possible but this would need some further 
developments.



Do you mean new Scilab source code?


yes.

S.



Stefan


S.



Regards
Stefan


On 2021-06-24 11:27, Stéphane Mottelet wrote:

Hi,

Why do you need this feature ? I mean, do you need a kind off 
accessibility setting to prevent docking them by accident ?


S.

Le 18/06/2021 à 21:00, Stefan Du Rietz a écrit :



On 2021-06-18 20:53, Samuel Gougeon wrote:

Hello,

Le 18/06/2021 à 18:28, Stefan Du Rietz a écrit :

Hello,
how can I make all my Scilab windows not dockable?
And how can I get rid of the toolbars?

I can do both with figure windows.


Fine. So,  with "all your Scilab windows" are you addressing the 
console, the help browser, the file browser, xcos windows, etc ?

Or GUIs based on figures like the ATOMS GUI, the demos GUI, etc?


I mean your first line, thanks.

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



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



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



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


Re: [Scilab-users] Undocking windows

2021-06-24 Thread Stefan Du Rietz



On 2021-06-24 15:45, Stéphane Mottelet wrote:


Le 24/06/2021 à 13:09, Stefan Du Rietz a écrit :

Hello,
yes, and to get the useful part of the window a little higher. The 
same without toolbars (that I never use).


Isn't there a text-file with window settings somewhere?

no


But when I restart Scilab, all windows reappear in the same positions, 
Where is that information stored?


In the console menu I can choose to hide the toolbar but it is not 
remembered


The console can be managed by the user through its handle and the 
visibility of the toolbar can be managed:


c = get(0);
c.toolbar_visible = "off";

However, this is the only non-graphical window which is available this 
way. Managing other non-graphical windows (variable browser, scinotes, 
...) is possible but this would need some further developments.



Do you mean new Scilab source code?

Stefan


S.



Regards
Stefan


On 2021-06-24 11:27, Stéphane Mottelet wrote:

Hi,

Why do you need this feature ? I mean, do you need a kind off 
accessibility setting to prevent docking them by accident ?


S.

Le 18/06/2021 à 21:00, Stefan Du Rietz a écrit :



On 2021-06-18 20:53, Samuel Gougeon wrote:

Hello,

Le 18/06/2021 à 18:28, Stefan Du Rietz a écrit :

Hello,
how can I make all my Scilab windows not dockable?
And how can I get rid of the toolbars?

I can do both with figure windows.


Fine. So,  with "all your Scilab windows" are you addressing the 
console, the help browser, the file browser, xcos windows, etc ?

Or GUIs based on figures like the ATOMS GUI, the demos GUI, etc?


I mean your first line, thanks.

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



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



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


Re: [Scilab-users] Undocking windows

2021-06-24 Thread Stefan Du Rietz

Hello,
yes, and to get the useful part of the window a little higher. The same 
without toolbars (that I never use).


Isn't there a text-file with window settings somewhere?

In the console menu I can choose to hide the toolbar but it is not 
remembered


Regards
Stefan


On 2021-06-24 11:27, Stéphane Mottelet wrote:

Hi,

Why do you need this feature ? I mean, do you need a kind off 
accessibility setting to prevent docking them by accident ?


S.

Le 18/06/2021 à 21:00, Stefan Du Rietz a écrit :



On 2021-06-18 20:53, Samuel Gougeon wrote:

Hello,

Le 18/06/2021 à 18:28, Stefan Du Rietz a écrit :

Hello,
how can I make all my Scilab windows not dockable?
And how can I get rid of the toolbars?

I can do both with figure windows.


Fine. So,  with "all your Scilab windows" are you addressing the 
console, the help browser, the file browser, xcos windows, etc ?

Or GUIs based on figures like the ATOMS GUI, the demos GUI, etc?


I mean your first line, thanks.

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



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


Re: [Scilab-users] Undocking windows

2021-06-18 Thread Stefan Du Rietz



On 2021-06-18 20:53, Samuel Gougeon wrote:

Hello,

Le 18/06/2021 à 18:28, Stefan Du Rietz a écrit :

Hello,
how can I make all my Scilab windows not dockable?
And how can I get rid of the toolbars?

I can do both with figure windows.


Fine. So,  with "all your Scilab windows" are you addressing the 
console, the help browser, the file browser, xcos windows, etc ?

Or GUIs based on figures like the ATOMS GUI, the demos GUI, etc?


I mean your first line, thanks.

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


[Scilab-users] Undocking windows

2021-06-18 Thread Stefan Du Rietz

Hello,
how can I make all my Scilab windows not dockable?
And how can I get rid of the toolbars?

I can do both with figure windows.

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


Re: [Scilab-users] callback delay

2020-10-21 Thread Stefan Du Rietz

On 2020-10-18 16:12, Stéphane Mottelet wrote:

Hello,

Did you try to play with the callback_property ? I think that making the 
callback  interruptible or non interruptible may change things.

S.


Hello Stéphane,

thanks for the proposition, which never concurred to me! But, since 
there is no delay under windows (my later reply: 2020-10-19 13:11), is 
there any use doing that?


I would, however, like to understand the different Callback_Type values. 
The Scilab help under "uicontrol properties" is not obvious to me.


What is, e.g., the difference between "a Scilab function" and "Scilab 
instructions"? Isn't "myfunction()" an instruction?


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


Re: [Scilab-users] callback delay

2020-10-19 Thread Stefan Du Rietz



On 2020-10-19 13:11, Stefan Du Rietz wrote:


On 2020-10-18 19:34, Antoine Monmayrant wrote:


On 18/10/2020 10:43, Stefan Du Rietz wrote:

Hello Antoine,

thank you very much for your replies, especially your hint about 
Java. The problem is that my GUI is rather complex with several 
levels and the delay is not always happening. However, when it does, 
it is extremely annoying!  It never happened in Scilab 6.0.2.


OK, that's a thing you can try: can you test 6.1.0 & 6.0.2 on the same 
computer, with everything else being identical but for the version of 
scilab?


Antoine

That is exactly what I have done! On a computer with 64-bit Xubuntu 
(Ubuntu with XFCE) 18.04 LTS with everything updated.


These files are exactly alike:
/usr/local/scilab/scilab-6.0.2/thirdparty/java/release
/usr/local/scilab/scilab-6.1.0/thirdparty/java/release

Please look further below!

Stefan


I will try to analyze the issue deeper according to your 
propositions, and if I manage to isolate it, I will provide an example.


Stefan


On 2020-10-18 10:10, Antoine Monmayrant wrote:
Even If you cannot measure the issue, if you have a minimum working 
example that triggers this bug, it would be helpful to share it with 
us so we can try to reproduce the issue and maybe link it to some 
version of java or your os.


By the way, did you try to take another computer and do a vanilla 
install of scilab and try to reproduce the issue?
Maybe trying different os/java jdk might give some hint at the 
source for this bug...


Antoine

I have now done that with a small, simple (Atom processor) computer with 
32-bit Windows 10 (updated) and there is no extra delay compared to 
Scilab 5.5.2 on the same computer (everything is pretty slow with Java 
GUI's compared to previous Scilab versions with Tcl/Tk!).


Stefan


And the same Java version in Window as in Linux aboves:
C:\Program Files\scilab-6.1.0\java\JRE\release
"1.8.0.151"

Stefan

On 17/10/2020 21:00, Stefan Du Rietz wrote:

Hello Stephane and Antoine,

I tried to explain why I cannot. After I have pressed the button 
with the callback, I can see that it takes a long time until the 
toc() message from the start of myfunction arrives. I don't know 
how to get the time from my button-press. Any idea?


Stefan



On 2020-10-17 17:10, Stéphane Mottelet wrote:

Hello Stefan,

Do you have a complete example using e.g. an uicontrol or else ?

S.


Le 17 oct. 2020 à 16:49, Stefan Du Rietz  a écrit :

Hello,

in the latest version Scilab 6.1.0, I have noticed that sometimes 
there is a long delay before the execution of a callback, If I 
try to measure it, e.g. by using tic()


  "callback","tic();myfunction()"

and then, in the beginning of myfunction(), having

  disp(toc())

the time is very short despite a delay of half a minute! Can 
anybody explain this and tell me how to find out what is going on?


Thanks in advance
Stefan
___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 



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


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


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

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


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

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

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


Re: [Scilab-users] callback delay

2020-10-19 Thread Stefan Du Rietz


On 2020-10-18 19:34, Antoine Monmayrant wrote:


On 18/10/2020 10:43, Stefan Du Rietz wrote:

Hello Antoine,

thank you very much for your replies, especially your hint about Java. 
The problem is that my GUI is rather complex with several levels and 
the delay is not always happening. However, when it does, it is 
extremely annoying!  It never happened in Scilab 6.0.2.


OK, that's a thing you can try: can you test 6.1.0 & 6.0.2 on the same 
computer, with everything else being identical but for the version of 
scilab?


Antoine

That is exactly what I have done! On a computer with 64-bit Xubuntu 
(Ubuntu with XFCE) 18.04 LTS with everything updated.


These files are exactly alike:
/usr/local/scilab/scilab-6.0.2/thirdparty/java/release
/usr/local/scilab/scilab-6.1.0/thirdparty/java/release

Please look further below!

Stefan


I will try to analyze the issue deeper according to your propositions, 
and if I manage to isolate it, I will provide an example.


Stefan


On 2020-10-18 10:10, Antoine Monmayrant wrote:
Even If you cannot measure the issue, if you have a minimum working 
example that triggers this bug, it would be helpful to share it with 
us so we can try to reproduce the issue and maybe link it to some 
version of java or your os.


By the way, did you try to take another computer and do a vanilla 
install of scilab and try to reproduce the issue?
Maybe trying different os/java jdk might give some hint at the source 
for this bug...


Antoine

I have now done that with a small, simple (Atom processor) computer with 
32-bit Windows 10 (updated) and there is no extra delay compared to 
Scilab 5.5.2 on the same computer (everything is pretty slow with Java 
GUI's compared to previous Scilab versions with Tcl/Tk!).


Stefan


On 17/10/2020 21:00, Stefan Du Rietz wrote:

Hello Stephane and Antoine,

I tried to explain why I cannot. After I have pressed the button 
with the callback, I can see that it takes a long time until the 
toc() message from the start of myfunction arrives. I don't know how 
to get the time from my button-press. Any idea?


Stefan



On 2020-10-17 17:10, Stéphane Mottelet wrote:

Hello Stefan,

Do you have a complete example using e.g. an uicontrol or else ?

S.


Le 17 oct. 2020 à 16:49, Stefan Du Rietz  a écrit :

Hello,

in the latest version Scilab 6.1.0, I have noticed that sometimes 
there is a long delay before the execution of a callback, If I try 
to measure it, e.g. by using tic()


  "callback","tic();myfunction()"

and then, in the beginning of myfunction(), having

  disp(toc())

the time is very short despite a delay of half a minute! Can 
anybody explain this and tell me how to find out what is going on?


Thanks in advance
Stefan
___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 



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


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


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

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


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

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


Re: [Scilab-users] callback delay

2020-10-18 Thread Stefan Du Rietz

Hello Antoine,

thank you very much for your replies, especially your hint about Java. 
The problem is that my GUI is rather complex with several levels and the 
delay is not always happening. However, when it does, it is extremely 
annoying!  It never happened in Scilab 6.0.2.


I will try to analyze the issue deeper according to your propositions, 
and if I manage to isolate it, I will provide an example.


Stefan


On 2020-10-18 10:10, Antoine Monmayrant wrote:
Even If you cannot measure the issue, if you have a minimum working 
example that triggers this bug, it would be helpful to share it with us 
so we can try to reproduce the issue and maybe link it to some version 
of java or your os.


By the way, did you try to take another computer and do a vanilla 
install of scilab and try to reproduce the issue?
Maybe trying different os/java jdk might give some hint at the source 
for this bug...


Antoine

On 17/10/2020 21:00, Stefan Du Rietz wrote:

Hello Stephane and Antoine,

I tried to explain why I cannot. After I have pressed the button with 
the callback, I can see that it takes a long time until the toc() 
message from the start of myfunction arrives. I don't know how to get 
the time from my button-press. Any idea?


Stefan



On 2020-10-17 17:10, Stéphane Mottelet wrote:

Hello Stefan,

Do you have a complete example using e.g. an uicontrol or else ?

S.


Le 17 oct. 2020 à 16:49, Stefan Du Rietz  a écrit :

Hello,

in the latest version Scilab 6.1.0, I have noticed that sometimes 
there is a long delay before the execution of a callback, If I try 
to measure it, e.g. by using tic()


  "callback","tic();myfunction()"

and then, in the beginning of myfunction(), having

  disp(toc())

the time is very short despite a delay of half a minute! Can anybody 
explain this and tell me how to find out what is going on?


Thanks in advance
Stefan
___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users 



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


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


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

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


Re: [Scilab-users] callback delay

2020-10-17 Thread Stefan Du Rietz

Hello Stephane and Antoine,

I tried to explain why I cannot. After I have pressed the button with 
the callback, I can see that it takes a long time until the toc() 
message from the start of myfunction arrives. I don't know how to get 
the time from my button-press. Any idea?


Stefan



On 2020-10-17 17:10, Stéphane Mottelet wrote:

Hello Stefan,

Do you have a complete example using e.g. an uicontrol or else ?

S.


Le 17 oct. 2020 à 16:49, Stefan Du Rietz  a écrit :

Hello,

in the latest version Scilab 6.1.0, I have noticed that sometimes there is a 
long delay before the execution of a callback, If I try to measure it, e.g. by 
using tic()

  "callback","tic();myfunction()"

and then, in the beginning of myfunction(), having

  disp(toc())

the time is very short despite a delay of half a minute! Can anybody explain 
this and tell me how to find out what is going on?

Thanks i advance
Stefan
___
users mailing list
users@lists.scilab.org
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users


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


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


[Scilab-users] callback delay

2020-10-17 Thread Stefan Du Rietz

Hello,

in the latest version Scilab 6.1.0, I have noticed that sometimes there 
is a long delay before the execution of a callback, If I try to measure 
it, e.g. by using tic()


  "callback","tic();myfunction()"

and then, in the beginning of myfunction(), having

  disp(toc())

the time is very short despite a delay of half a minute! Can anybody 
explain this and tell me how to find out what is going on?


Thanks i advance
Stefan
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] plot(x,y,':') & dotted line : is this a bug?

2020-09-14 Thread Stefan Du Rietz



On 2020-09-14 16:28, Antoine Monmayrant wrote:


Le 14/09/2020 à 16:23, Heinz Nabielek a écrit :


I get a perfect dotted line.



What?
I tested this under linux (ubuntu 18.04) & Windows10, with both 5.5.2 
and the 6.1 and I don't get a dotted line...


I attached the output of:

     scf();plot(1:10,':')



Antoine



Antoine, I get the same erroneous line as you!

Scilab 6.0.2
Linux, Ubuntu 18.04 LTS

/Stefan

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


Re: [Scilab-users] Read file (.txt)

2020-09-13 Thread Stefan Du Rietz

On 2020-09-12 16:55, Stefan Du Rietz wrote:



On 2020-09-12 00:06, Stefan Du Rietz wrote:

On 2020-09-11 19:32, Samuel Gougeon wrote:

Le 11/09/2020 à 16:51, Stefan Du Rietz a écrit :

Hello Samuel,

read() never works OK with m = -1, see your own comment in Bug 15075!

This prevented me from upgrading to Scilab 6 until I found out how 
to do it with fscanfMat(). But then I had to remove all blank lines 
in my files (which I had to quickly find different parts of my data).



For me, it perfectly works for Daniel's file, with 6.0.2 as well as 
with 6.1.0.

May be the 15075's report could be retested and updated.



With which OS? I am only using Linux (Ubuntu).

As a workaround, in Linux, you can quickly get the number of lines:
--> m = evstr(strtok(unix_g("wc -l " + filename), " "));

I will add to the bug report.

/Stefan



That does not work if the file contains empty lines because the argument 
m to read() is the number of not empty lines to read! So one must 
subtract the number of empty lines from m above ...


Why on earth was read() changed from the excellent previous version to 
one of no use???



But this does work (m is the number of not empty lines) and is about as 
fast:

--> m = evstr(unix_g("grep -vc ^$ " + filename));

So, together with
--> n = size(evstr(mgetl(filename, 1)), 2);
--> M = read(filename, m, n);

Daniel can get what he wants.

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


Re: [Scilab-users] Read file (.txt)

2020-09-12 Thread Stefan Du Rietz



On 2020-09-12 00:06, Stefan Du Rietz wrote:

On 2020-09-11 19:32, Samuel Gougeon wrote:

Le 11/09/2020 à 16:51, Stefan Du Rietz a écrit :

Hello Samuel,

read() never works OK with m = -1, see your own comment in Bug 15075!

This prevented me from upgrading to Scilab 6 until I found out how to 
do it with fscanfMat(). But then I had to remove all blank lines in 
my files (which I had to quickly find different parts of my data).



For me, it perfectly works for Daniel's file, with 6.0.2 as well as 
with 6.1.0.

May be the 15075's report could be retested and updated.



With which OS? I am only using Linux (Ubuntu).

As a workaround, in Linux, you can quickly get the number of lines:
--> m = evstr(strtok(unix_g("wc -l " + filename), " "));

I will add to the bug report.

/Stefan



That does not work if the file contains empty lines because the argument 
m to read() is the number of not empty lines to read! So one must 
subtract the number of empty lines from m above ...


Why on earth was read() changed from the excellent previous version to 
one of no use???

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


Re: [Scilab-users] Read file (.txt)

2020-09-11 Thread Stefan Du Rietz

On 2020-09-11 19:32, Samuel Gougeon wrote:

Le 11/09/2020 à 16:51, Stefan Du Rietz a écrit :

Hello Samuel,

read() never works OK with m = -1, see your own comment in Bug 15075!

This prevented me from upgrading to Scilab 6 until I found out how to 
do it with fscanfMat(). But then I had to remove all blank lines in my 
files (which I had to quickly find different parts of my data).



For me, it perfectly works for Daniel's file, with 6.0.2 as well as with 
6.1.0.

May be the 15075's report could be retested and updated.



With which OS? I am only using Linux (Ubuntu).

As a workaround, in Linux, you can quickly get the number of lines:
--> m = evstr(strtok(unix_g("wc -l " + filename), " "));

I will add to the bug report.

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


Re: [Scilab-users] Read file (.txt)

2020-09-11 Thread Stefan Du Rietz

Please replace my latest e-mail with this.

Hello Samuel,

read() never works OK with m = -1, see your own comment in Bug 15075!

This prevented me from upgrading to Scilab 6 until I found out how to do 
it with fscanfMat(). But then I had to remove all blank lines in my 
files (which I had to quickly find different parts of my data).


--> tic(), M = fscanfMat(myfile); toc()
  ans  =
0.125278

--> size(M)
  ans  =
13702.   9.

--> tic(), M = mgetl(myfile); toc()
  ans  =
0.050891
--> tic(), M = evstr(M); toc()
  ans  =
1.854611

evstr is slow with large text vectors, compared to file reading.

--> size(evstr(mgetl(myfile, 1)), 2)
  ans  =
9.
--> tic(), M = read(myfile, -1, 9); toc()
  ans  =
17.418157

So you have to know the file size completely (and when do you?)!

--> tic(), M = read(myfile", 13702, 9); toc()
  ans  =
0.085636

Regards
Stefan


On 2020-09-10 22:42, Samuel Gougeon wrote:

Hello Daniel,

In addition to Antoine simple and efficient solution, the following 
works as well (and may be a bit faster for big files. To be confirmed):


File  =  "output.txt";
m  =  read(File,-1, size(evstr(mgetl(File,1)),2));
Regards


Le 10/09/2020 à 00:03, Daniel Stringari a écrit :

Good evening everyone,

I'm integrating scilab with other software, so I need to read an output file
(.txt), like the one attached (output).

It is worth mentioning that this file does not always have the same
dimensions (matrix), so I am trying to find something robust that can deal
with this particularity. I tried to use the 'csvread' function and the
'read' function, but I still haven't been successful ... Any suggestions?

output.txt   



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


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


Re: [Scilab-users] Read file (.txt)

2020-09-11 Thread Stefan Du Rietz

Hello Samuel,

read() never works OK with m = -1, see your own comment in Bug 15075!

This prevented me from upgrading to Scilab 6 until I found out how to do 
it with fscanfMat(). But then I had to remove all blank lines in my 
files (which I had to quickly find different parts of my data).


--> tic(), M = fscanfMat(myfile.txt); toc()
 ans  =
   0.125278

--> size(M)
 ans  =
   13702.   9.

--> tic(), M = mgetl(myfile.txt); toc()
 ans  =
   0.050891
--> tic(), M = evstr(M); toc()
 ans  =
   1.854611

evstr is slow with large text vectors, compared to file reading.

--> size(evstr(mgetl(myfile, 1)), 2)
 ans  =
   9.
--> tic(), M = read(myfile.txt, -1, 9); toc()
 ans  =
   17.418157

So you have to know the file size completely (and when do you?)!

--> tic(), M = read(myfile.txt", 13702, 9); toc()
 ans  =
   0.085636

Regards
Stefan


On 2020-09-10 22:42, Samuel Gougeon wrote:

Hello Daniel,

In addition to Antoine simple and efficient solution, the following 
works as well (and may be a bit faster for big files. To be confirmed):


File  =  "output.txt";
m  =  read(File,-1, size(evstr(mgetl(File,1)),2));
Regards


Le 10/09/2020 à 00:03, Daniel Stringari a écrit :

Good evening everyone,

I'm integrating scilab with other software, so I need to read an output file
(.txt), like the one attached (output).

It is worth mentioning that this file does not always have the same
dimensions (matrix), so I am trying to find something robust that can deal
with this particularity. I tried to use the 'csvread' function and the
'read' function, but I still haven't been successful ... Any suggestions?

output.txt   



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


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


Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz

You don't *need* it, of course ;-)
cafix is the handle of your axes from plot() which you got with gca(). 
You can then set the properties of it with the dot method.


Stefan


On 2020-08-08 23:33, Stefan Du Rietz wrote:
Hello Fukashiimo, you don't nedd the last line! All is already done by 
the previous lines.


Stefan


On 2020-08-08 23:25, Fukashiimo wrote:

Hello, Mr. Stefan,

Thanks.



plot (X,Y);
cafix = gca();
cafix.tight_limits="on";
cafix.auto_scale="off";
cafix.data_bounds = [-0.5,-2;0.5,2];
set(gca(),"data_bounds", cafix.data_bounds);



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html 


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


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

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


Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz
Hello Fukashiimo, you don't nedd the last line! All is already done by 
the previous lines.


Stefan


On 2020-08-08 23:25, Fukashiimo wrote:

Hello, Mr. Stefan,

Thanks.



plot (X,Y);
cafix = gca();
cafix.tight_limits="on";
cafix.auto_scale="off";
cafix.data_bounds = [-0.5,-2;0.5,2];
set(gca(),"data_bounds", cafix.data_bounds);



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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


Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz
That is if you want to change the data_ bounds each time (for very 
different data). I thought that was what you wanted. Otherwise you could 
use it only once after the first plot, or even before if you have no 
other figure open. (thanks Samuel!)



On 2020-08-08 15:08, Stefan Du Rietz wrote:

Hello, not before but after!

Stefan


On 2020-08-08 15:03, Fukashiimo wrote:

Hello, Mr. Stefan,

Thanks.

Should we put following codes before each plot command?

cafix = gca();
cafix.tight_limits="on";
cafix.auto_scale="off";
cafix.data_bounds = [-0.5,-2;0.5,2];





--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html 


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


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

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


Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz

Hello, not before but after!

Stefan


On 2020-08-08 15:03, Fukashiimo wrote:

Hello, Mr. Stefan,

Thanks.

Should we put following codes before each plot command?

cafix = gca();
cafix.tight_limits="on";
cafix.auto_scale="off";
cafix.data_bounds = [-0.5,-2;0.5,2];





--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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


Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz

Sorry for a wrong letter in my previous mail!

Hello Fukashiimo,

1. get the handle of your axes:
--> cafix = gca();
2. set the properties:
--> cafix.tight_limits="on";
--> cafix.auto_scale="off";
--> cafix.data_bounds = [-0.5,-2;0.5,2];

Regards
Stefan


On 2020-08-08 12:15, Fukashiimo wrote:

Hello, Mr. Stefan,

Thanks. Could you please tell me how to se it?
I tried the following code. My intention is to define X: from -0.5 to +0,5
and Y from -2 to +2.
However, plot command didn't work as I expected. Any idea?

cafix.data_bounds = [-0.5,-2;0.5,2];
cafix.tight_limits="on";
cafix.auto_scale="off";
set(gca(),"data_bounds", cafix.data_bounds);


Thanks



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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


Re: [Scilab-users] How to define the Y Range of plot

2020-08-08 Thread Stefan Du Rietz

Hello,

--> help data_bounds

Regards
Stefan


On 2020-08-08 10:56, Fukashiimo wrote:

Hello,

I would like to define the Y Range of plot. Could you tell me the Scilibe
code to realize this.
If I use the plot command, Y range is automatically set by Scilab.
I would like to set the Y range, e.g. min -10 to Max 20.

Thanks for your advise



--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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


Re: [Scilab-users] ?= GUI hel

2019-11-29 Thread Stefan Du Rietz
figure() is a much more versatile function for the creation of a figure; 
you can set all(?) properties at once.


scf() is useful when you want to change an existing figure.

Regards
Stefan


On 2019-11-29 19:35, Antoine Monmayrant wrote:

Le Vendredi, Novembre 29, 2019 19:27 CET, Claus Futtrup  a 
écrit:
  

Hi Antoine, et al - anybody feel free to chime in.

I see the below example uses f=figure() ... instead of f=scf().

What's the reason for this preference?


No particular reason, I just use either scf() or figure().
I think figure() was introduced to ease the transition for Matlab users.
I think they call the same macro with different default values.

Antoine



  From my side, the only difference I can see, is that figure() generates
a place for a GUI with a grey background (background = 33) ... whereas
when I call scf() the background is white (background =  -2). I see the
same list of handles, and all other are also initialized to the same values.

Is there a difference, maybe an invisible one?

Best regards,
Claus

On 29.11.2019 18:34, Antoine Monmayrant wrote:

4) I will also look into this. My problem is the steep learning curve.
If you look at the Scilab tutorials you have the good-old Openeering
LHY_Tutorial - it's incredibly complicated and long. Is LHY_Tutorial
using the Model-Viewer-Controller approach? - Maybe the
Model-Viewer-Controller could be presented in a _simple_ tutorial - is
it possible?

Hmm, that would be a good idea.
I'll see whether I can put something together.
The thing is, MVC approach looks rather silly and overengineered on a small 
example.

I have not tried to follow a MWC approach, but here is my attempt at making a 
really simple GUI to just show the basics (see below).
It take numbers from two different types of uicontrols (a slider and an edit) 
and display the sum in a text uicontrol.
To keep things simple, I positioned and sized the uicontrols manually instead 
of using a gridbag.
I also tried to use the fancy syntax for get() and set() that do not require 
calling findobj(), as suggested by Samuel.

Hope it helps,

Antoine


f=figure();

/*  First number from slider   */
//values
nmin=-5;
nmax=10;
nini=7;
nsmallstep=1;
nsbigstep=2;
//slider position and size
x=10;
y=20;
w=100;
h=25;
//slider uicontrol creation in figure f
hslider=uicontrol(f, ...
  "style", "slider", ...
  "tag", "slider1", ...
  "backgroundcolor", [1 1 1], ...
  "position", [x y w h], ...
  "value", nini, ...
  "min", nmin, ...
  "max", nmax, ...
  "sliderstep", [nsmallstep, nsbigstep], ...
  "callback", "update_values");

/* - Second number from an editable text -  */
// initial value
editini="3.14";
//edit position and size
x2=x;
y2=y+h+5;
w2=w;
h2=h;
//edit uicontrol creation in figure f
hedit=uicontrol(f, ...
  "style", "edit", ...
  "tag", "edit2", ...
  "backgroundcolor", [1 1 1], ...
  "position", [x2 y2 w2 h2], ...
  "string", editini, ...
  "callback", "update_values");
  
/* - Sum displayed in a text uicontrol -  */

// initial value
textini="Nothing"
//edit position and size
x3=x+w+5;
y3=y;
w3=w;
h3=2*h+5;
//slider uicontrol creation
htext=uicontrol(f, ...
  "style", "text", ...
  "tag", "text3", ...
  "backgroundcolor", [1 1 1], ...
  "position", [x3 y3 w3 h3], ...
  "string", textini);

/*  callback function for slider and edit uicontrols   */
//Whenever user interacts with the slider or the edit uicontrols
//  show the sum of both numbers in the text field
function update_values()
  //temporarily deactivate the callback (don't want callback calls to stack 
up while processing the current one
  set(gcbo,"callback_type",-1);
  /*
Using the unique tag chosen at the creation time of the uicontrols
to set/get the uicontrol properties
  */
  //get both numbers from the slider and the edit uicontrols
  number1=get("slider1", "value");
  string2=get("edit2", "string");
  //do your maths & conversion
  string3=string(number1+evstr(string2));
  //change the string displayed in the text uicontrol
  set("text3", "string", string3);
  //reactivate callback
  set(gcbo,"callback_type",0);
endfunction

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



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



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


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


Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Stefan Du Rietz


On 2019-11-28 20:55, Samuel Gougeon wrote:

Le 28/11/2019 à 17:47, Antoine Monmayrant a écrit :

.../...
Also, you should better use get(a, 'propertyName') or set(a, 
'propertyName', value) instead of a.propertyName and 
a.propertyName=value in your callbacks.
I have found that this latter syntax is causing a lot of bug if your 
callback get called really often. I still don't know why.



OK. Now i remember, indeed, that some handle.prop access are badly 
parsed as reading or defining a structure instead of reading or setting 
the (expectedly) defined handle...




I have also noticed all that.

But at last I managed to get it working. ;-)

I had to
1. copy the structure from user_data
2. edit the copied structure
3. set user_data to the edited structure


To Samuel 20:35:

My GUI data.are handles exept a few things I update simultaneously when 
I change them..


Stefan

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


Re: [Scilab-users] ?= GUI hel

2019-11-28 Thread Stefan Du Rietz

Le Jeudi, Novembre 28, 2019 17:05 CET, Claus Futtrup  a 
écrit:
  
I think you can achieve what you want by setting ".visible='off'" for all the uicontrols you don't want to show initialy. You can then set  ".visible='on'" after the first call to the callback (or at each call if you are lazy).


I do that and it is very convenient. I also save my GUI data in a 
struct() in the "user_data" of the parent figure of the GUI. Then I 
don't need global variables or even findobj().


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


Re: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7

2017-12-04 Thread Stefan Du Rietz

Hello,
J managed to resolve it by reinstalling Scilab with
"Select components"
  "Graphic User Interface"
"Java Runtime (...)" deselected!!

Probably the already installed Java Runtime interfered?

Regards
Stefan

On 2017-09-03 10:08, Stefan Du Rietz wrote:



On 2017-09-02 21:39, Samuel Gougeon wrote:

Le 02/09/2017 à 20:58, rlandersen a écrit :

I still have the problem.

Anyone found a solution for this?
Please post.


Does the console version run? It does not run the Java virtual Machine.
This may make a difference in your case.
If it does, then type
--> SCIHOME // in the "safe" scilab session
and delete the correponding directory (after closing the Scilab 
session).


It is usually useless to uninstal/reinstal Scilab. Most of problems 
come

from a corrupted file in the SCIHOME directory. Uninstalling Scilab
does not remove its SCIHOME reated directory.

HTH
Samuel


I also still have the problem with 32-bit Windows 7. Not even does the 
console version run with a local installation of Scilab 5.5.2 ...


And Scilab 5.4.1 has stopped running as well (just an invisible error 
window)!


In computers with Windows 10 or Ubuntu Linux all Scilab versions run.

Regards
Stefan


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


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


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

2017-12-04 Thread Stefan Du Rietz

Hello Antoine,
I managed to fix this issue in Windows 7 
(http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html) 
by reinstalling Scilab without Java.


Regards
Stefan


On 2017-12-04 16:38, Antoine Monmayrant wrote:

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 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
Could not create a Scilab main class. Error:
Exception in thread "main" java.lang.InternalError: XXX0 profile[1]: GL3bc -> 
profileImpl GL4bc !!! not mapped
 at com.jogamp.opengl.GLProfile.computeProfileMap(GLProfile.java:2071)
 at 
com.jogamp.opengl.GLProfile.initProfilesForDeviceCritical(GLProfile.java:1954)
 at 
com.jogamp.opengl.GLProfile.initProfilesForDevice(GLProfile.java:1875)
 at 
com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1842)
 at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80)
 at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230)
 at java.security.AccessController.doPrivileged(Native Method)
 at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216)
 at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297)
 at com.jogamp.opengl.GLProfile.get(GLProfile.java:988)
 at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:722)
 at com.jogamp.opengl.GLProfile.getDefault(GLProfile.java:733)
 at org.scilab.modules.gui.SwingView.(Unknown Source)
 at org.scilab.modules.gui.SwingView.registerSwingView(Unknown Source)
 at org.scilab.modules.core.Scilab.(Unknown Source)

Scilab cannot create Scilab Java Main-Class (we have not been able to find the 
main Scilab class. Check if the Scilab and thirdparty packages are available).

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



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


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


Re: [Scilab-users] Scilab/XCos - recommendable Book

2017-10-05 Thread Stefan Du Rietz

On 2017-10-05 17:25, philippe wrote:

Le 05/10/2017 à 12:58, Yves Rambi a écrit :

Can someone recommend a good and exhaustive ebook to buy for Scilab/XCos
(introduction and further reading)?


As a French speaker I read the book wrote by Yvon Degré and Serge Steer
and I think it is very goog! It is available in paper and in many
electronic formats as pdf, html epub and you can also buy chapters
independently:

https://www.d-booker.fr/scilab-2-xcos/112-scilab-xcos.html

unfortunately it hasn't been yet translated in english ... the first
book of this collection has been translated and is available in epub  :

https://www.d-booker.fr/scilab-book1/325-scilab-fundamentals.html

you can see a preview of some chapters in pdf :

https://www.d-booker.fr/GALERIE/public/scilab-en/excerpts/_scilab-base-en-first-pages-ch21.pdf

Philippe



I bought this in 2011 from Amazon:
"Modeling and Simulation in Scilab/Scicos with ScicosLab 4.4"

Stephen L Campbell, Jean-Philippe Chancelier, Ramine Nikoukhah; Second 
edition, Hardcover; $56.90



Today:
You can find it on the Internet.

http://www.scicos.org/book.html
Chapter 7
http://www.scicos.org/book/ScilabScicosBook-Ch7.pdf

Regards
Stefan

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


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

2017-10-05 Thread Stefan Du Rietz

Hello Jens,

-->M = ['a','b';'c','d'];
-->mprintf("%s  %s\n", M)
a  b
c  d

Regards
Stefan


On 2017-10-05 10:41, Jens Simon Strom wrote:

Hi Scilab experts,
How can I print a string matrix on the console without leading and 
trailing exlamation marks (!)?


['a','b';'c','d'] should simply be returned as
a  b
c  d


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



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


Re: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7

2017-09-03 Thread Stefan Du Rietz



On 2017-09-02 21:39, Samuel Gougeon wrote:

Le 02/09/2017 à 20:58, rlandersen a écrit :

I still have the problem.

Anyone found a solution for this?
Please post.


Does the console version run? It does not run the Java virtual Machine.
This may make a difference in your case.
If it does, then type
--> SCIHOME // in the "safe" scilab session
and delete the correponding directory (after closing the Scilab session).

It is usually useless to uninstal/reinstal Scilab. Most of problems come
from a corrupted file in the SCIHOME directory. Uninstalling Scilab
does not remove its SCIHOME reated directory.

HTH
Samuel


I also still have the problem with 32-bit Windows 7. Not even does the 
console version run with a local installation of Scilab 5.5.2 ...


And Scilab 5.4.1 has stopped running as well (just an invisible error 
window)!


In computers with Windows 10 or Ubuntu Linux all Scilab versions run.

Regards
Stefan


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


Re: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7

2017-06-29 Thread Stefan Du Rietz
Is there any solution for this with Windows 7 Professional? Or only a 
switch to Ubuntu after the kernel has been fixed ... ;-)


Regards
Stefan


On 2017-06-25 23:10, Stefan Du Rietz wrote:
I have the same problem. I have uninstalled 6.0 and have then several 
times uninstalled Scilab 5.5.2, deleted SCIHOME and reinstalled Scilab 
5.5.2, which worked before(!), to no avail ...


/Stefan


On 2017-06-25 19:21, rlandersen wrote:

I have the same problem.
When I try to launch Scilab I get the the same error message described.

I had Scilab 5.5.2 installed and working when the problem started.

I tried uninstalling and installing version 6.00.
Same error.

Even deleting \AppData\Roaming\Scilab\
Still does not work.

How can I proceed?







--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-can-not-create-Scilab-Java-Main-Class-after-installation-of-SL-5-5-0-32-on-windows-7-tp4030309p4036657.html 

Sent from the Scilab users - Mailing Lists Archives mailing list 
archive at Nabble.com.

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


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


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


Re: [Scilab-users] can not create Scilab Java Main_Class after installation of SL 5.5.0.32 on windows 7

2017-06-25 Thread Stefan Du Rietz
I have the same problem. I have uninstalled 6.0 and have then several 
times uninstalled Scilab 5.5.2, deleted SCIHOME and reinstalled Scilab 
5.5.2, which worked before(!), to no avail ...


/Stefan


On 2017-06-25 19:21, rlandersen wrote:

I have the same problem.
When I try to launch Scilab I get the the same error message described.

I had Scilab 5.5.2 installed and working when the problem started.

I tried uninstalling and installing version 6.00.
Same error.

Even deleting \AppData\Roaming\Scilab\
Still does not work.

How can I proceed?







--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-can-not-create-Scilab-Java-Main-Class-after-installation-of-SL-5-5-0-32-on-windows-7-tp4030309p4036657.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


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


Re: [Scilab-users] Read matrix from text file

2017-03-20 Thread Stefan Du Rietz

Hello Frieder, have you tried just this?

Koeffizienten_Pfad = uigetfile(["*.txt"],'',"Wählen Sie die Datei 
Koeffizienten");


B = read(Koeffizienten_Pfad,-1,4)

Redards
Stefan


On 2017-03-20 17:26, Frieder Nikolaisen wrote:

Hello,

I do try to read a matrix of floating point numbers from a text file.
I want to have floating point numbers in Sciliab. (I used before mgetl
which return strings).

I have attached the example text file and scilab file. The error it
says is: read: Wrong number of output argument(s): 0 expected.

Thank you.

Greetings

Frieder



My code:

Koeffizienten_Pfad = uigetfile(["*.txt"],'',"Wählen Sie die Datei 
Koeffizienten");

Koeffizienten = mopen(Koeffizienten_Pfad)

B = read(Koeffizienten,-1,4)

disp(B)

mclose('all')





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



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


Re: [Scilab-users] Scilab 6.0.0 cannot start

2017-02-23 Thread Stefan Du Rietz

Hello Clément,
I will first tell you some odd things. It appeared that Scilab 5.5.2 
had got exactly the same issue in this computer (I had not used it for 
a while)! I know that the only changes since I last used it were, 
besides installation of Scilab 6, updates of Java and Windows 7 Pro.


I uninstalled Scilab 6, then uninstalled and reinstalled Scilab 5 to 
no avail.


As far as I can imagine, it must be a permissions issue that is not 
present in the Console?


Do you have a hint? Do you still want me to open a bug?

Best regards
Stefan


On 2017-02-20 09:27, Clément David wrote:

Hi Stefan,

Could you open a bug with all your system information please ?

As you might known, we not only build scilab but also pass the tests on the 
binary version using a
set of different machines before releasing. This is likely a bug in your local 
configuration (either
graphical card or software setup); please describe what's specific in your 
setup and post the result
of `[s,d]=getdebuginfo()` using Scilab 5.5.2.

Thanks,

--
Clément

Le dimanche 19 février 2017 à 11:09 +0100, Stefan Du Rietz a écrit :

Dear Scilab team,
thank you very much for the new version!

But when I try to start "Scilab 6.0.0" from the Windows 7 Start menu I
get this message:

"Scilab cannot create Scilab Java Main-Class (we have not been able to
find the main Scilab class. Check if the Scilab and third-party
packages are available)."

Only "Java 8 Update 121" is installed.

"Scilab Console" or "Run as Administrator" with "Scilab 6.0.0" does work.

Regards
Stefan

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

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



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


Re: [Scilab-users] Scilab 6.0.0, read()

2017-02-22 Thread Stefan Du Rietz
Here you are, Lester! A script that generates a comparatively small 
data file and then reads it is attached.


In a small laptop computer with Windows 10 and 32-bit versions of Scilab:

Scilab-5.5.2:

size(mat) = [1  7]
mat took 0.08 sec to read.
size(mat) = [1  7]

Scilab-6.0.0:

size(mat) = [1  7]
mat took 39.14 sec to read.
size(mat) = [1  7]

Regards
Stefan


On 2017-02-22 11:43, Lester Anderson wrote:

Haven't got as far as testing the functions, but just starting version
6 compared to 5.5.2 is slower; not sure what is going on. Testing on
Windows 8.1 (4 Gb RAM).

Do you have a test script to try, see if the issue can be reproduced?

Cheers
Lester

On 22 February 2017 at 10:15, Stefan Du Rietz  wrote:

Hello,
I got Scilab 6 to work in a Windows 10 laptop. However, my loading of data
with read() took almost half an hour.
From toc() and mprintf():
Loading of data took 26 min 23 sec

In Scilab 5.5.2 it took just over a second.
From toc() and mprintf():
Loading of data took 1.219 sec.

What happened?

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

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



test_read.sce
Description: application/scilab
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Scilab 6.0.0

2017-02-22 Thread Stefan Du Rietz

I have 32-bit versions.

Stefan


On 2017-02-22 11:47, Stefan Du Rietz wrote:

I agree!

Regards
Stefan

On 2017-02-22 11:41, Lester Anderson wrote:

Hi all,

Just a general query, but has anyone noticed that it takes a lot
longer to load Scilab 6 on Windows compared to v5.5.2 (64-bit)?

Only installed a little while ago, but 5.5.2 loads really promptly on
a laptop with 4 Gb of RAM and a selection of modules starting, whereas
version 6 takes a while to get going (with no modules).

Cheers

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


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


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


Re: [Scilab-users] Scilab 6.0.0

2017-02-22 Thread Stefan Du Rietz

I agree!

Regards
Stefan

On 2017-02-22 11:41, Lester Anderson wrote:

Hi all,

Just a general query, but has anyone noticed that it takes a lot
longer to load Scilab 6 on Windows compared to v5.5.2 (64-bit)?

Only installed a little while ago, but 5.5.2 loads really promptly on
a laptop with 4 Gb of RAM and a selection of modules starting, whereas
version 6 takes a while to get going (with no modules).

Cheers

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


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


[Scilab-users] Scilab 6.0.0, read()

2017-02-22 Thread Stefan Du Rietz

Hello,
I got Scilab 6 to work in a Windows 10 laptop. However, my loading of 
data with read() took almost half an hour.

From toc() and mprintf():
Loading of data took 26 min 23 sec

In Scilab 5.5.2 it took just over a second.
From toc() and mprintf():
Loading of data took 1.219 sec.

What happened?

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


[Scilab-users] Scilab 6.0.0 cannot start

2017-02-19 Thread Stefan Du Rietz

Dear Scilab team,
thank you very much for the new version!

But when I try to start "Scilab 6.0.0" from the Windows 7 Start menu I 
get this message:


"Scilab cannot create Scilab Java Main-Class (we have not been able to 
find the main Scilab class. Check if the Scilab and third-party 
packages are available)."


Only "Java 8 Update 121" is installed.

"Scilab Console" or "Run as Administrator" with "Scilab 6.0.0" does work.

Regards
Stefan

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


Re: [Scilab-users] case control statement

2017-01-22 Thread Stefan Du Rietz



Hello Claus,

you put the parentheses wrong:
 elseif or([model==3 model==4])

Regards
Stefan

On 2017-01-22 17:01, Claus Futtrup wrote:

Hi there

OK, so I converted to elseif (source code at the bottom of my post).
Now Scilab complains like this:

elseif or[(model==3) (model==4)] then // FDD-LOG / CLOG
 !--error 35
Syntax error in a 'if' instruction.
at line  11 of function getq called by :
endfunction

I'm replacing a CASE control with an ELSEIF and using the OR[] to
collect my options. I tested the OR control on the command line,
without problems, so I don't understand what Scilab is complaining about.

Please let me know if you have any idea...

Best regards,
Claus

Here's a code snippet:

// This function, getq, defines the q-values for all models.

if model==1 then // FDD
   //
   // q = 1 - this used to be 1 - beta*ln(w) also for FDD (!?!?)
q = 1;

elseif or[(model==3) (model==4)] then // FDD-LOG / CLOG
 //
 // q = 1 - beta * ln(w) - Scilab log(w) = natural log = ln(w))
q = 1 - gbeta*log(w); // gbeta - it's _not_ LOG model _lambda_

elseif model==2 then // LOG
   //
   // q = 1 - beta*ln(iw)
   //
q = 1 - gbeta*log(%i .* w);

end

On 22-01-2017 16:14, Samuel Gougeon wrote:

Hello Claus,
No it's not possible. It has been suggested here:
http://bugzilla.scilab.org/6503
But chained /elseif /statements do the same in a fully versatile way.
HTH
Samuel
PS: BTW, i don't really understand the interest in the select/case
structure wrt the elseif one.
select/case looks stiffer and less powerful.

Le 22/01/2017 15:58, Claus Futtrup a écrit :

Hi there

I'd like to use the "case" control statement to select a few
options. I'm wondering, is it possible for a case to have multiple
options, I mean like this:

select model

case 1,3,4 then

do something

case 2 then

do something

case 5 then

do something

end

Could I define [1 3 4] as a group of options and ask "CASE IN
GROUP" ... or how would I go about and implement this?

Best regards,

Claus

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





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





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



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


Re: [Scilab-users] Anonymous functions

2017-01-20 Thread Stefan Du Rietz

Hello Pierre,
is this too simple?

function outer()
  a = 1
  function inner()
mprintf("a = %i (inner: a has the value of the outer function)\n", a)
a = resume(a);
  endfunction
  inner()
  mprintf("a = %i (outer: a has got its new inner value of 2\n", a)
endfunction

/Stefan


On 2017-01-20 09:00, Pierre Vuillemin wrote:

Hi Samuel,

Indeed, the behaviour I seek to reproduce is similar to what could be
done with a global variable. Yet I would avoid to resort to global
variables.

From what I've understand about variables scoping in Scilab
(https://wiki.scilab.org/howto/global%20and%20local%20variables),
variables from the above level are only replaced/copied locally when
needed, e.g.

function outer()
  a = 1
function inner()
  disp(a) // a has the value of the outer function
  a = 2   // now a copy is made and a is locally equal to 2
endfunction
  inner()
  disp(a) // a has kept its initial value of 1
endfunction


Hence I guess that the fact that a = 1 in the scope of the outer
function is stored somewhere so that Scilab can retrieve that
information when needed. I'm wondering how it works internally and
whether I could use this to create generic lambda function?

I'm aware that this cannot be done solely in Scilab but requires to
fiddle with the C interface, but I'm curious to experiment.


Regards,

Pierre


Le 17.01.2017 14:21, Samuel Gougeon a écrit :

Le 17/01/2017 11:46, Pierre Vuillemin a écrit :

I have actually implemented a similar solution (in the previous
link) except that the data are stored in some list. This leads to
anonymous functions that behaves as in Matlab, i.e. the data of the
function is instantiated when the function is created.

In python, the value of the data 'a' is instantiated when the
function is evaluated. Therefore, if the data 'a' changes, the
function changes.

Here I could make something like

deff('y=f(x)','y = a*x')

but then the function will get the value of the variable 'a' of the
current namespace, e.g.

a = 1
function outer(x)
 a = 2
 disp(f(1))
endfunction

f(1) // will give 1
outer(1) // will give 2
a = 3
f(1) // will give 3
outer(1) // will give 2

In this example, I would like f(1) to behave identically
independently of its position.


If i understand correctly your query, the global space is unique and
aims to allow that:
deff('y=f(x)','global a; y = a*x')

This requires the only variable "a" you want to consider been declared
"global a" before some calling point. Actually, i don't see how to
refer to a unique "a" without telling to Scilab which one it must be.

Samuel



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

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


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


Re: [Scilab-users] Anonymous functions

2017-01-20 Thread Stefan Du Rietz

Sorry, I left out a line below (a = 2;)

Hello Pierre,
is this too simple?

function outer()
  a = 1
  function inner()
mprintf("a = %i (inner: a has the value of the outer function)\n",a)
a = 2;
a = resume(a);
  endfunction
  inner()
  mprintf("a = %i (outer: a has got its new inner value of 2\n", a)
endfunction

/Stefan


On 2017-01-20 09:00, Pierre Vuillemin wrote:

Hi Samuel,

Indeed, the behaviour I seek to reproduce is similar to what could be
done with a global variable. Yet I would avoid to resort to global
variables.

From what I've understand about variables scoping in Scilab
(https://wiki.scilab.org/howto/global%20and%20local%20variables),
variables from the above level are only replaced/copied locally when
needed, e.g.

function outer()
  a = 1
function inner()
  disp(a) // a has the value of the outer function
  a = 2   // now a copy is made and a is locally equal to 2
endfunction
  inner()
  disp(a) // a has kept its initial value of 1
endfunction


Hence I guess that the fact that a = 1 in the scope of the outer
function is stored somewhere so that Scilab can retrieve that
information when needed. I'm wondering how it works internally and
whether I could use this to create generic lambda function?

I'm aware that this cannot be done solely in Scilab but requires to
fiddle with the C interface, but I'm curious to experiment.


Regards,

Pierre


Le 17.01.2017 14:21, Samuel Gougeon a écrit :

Le 17/01/2017 11:46, Pierre Vuillemin a écrit :

I have actually implemented a similar solution (in the previous
link) except that the data are stored in some list. This leads to
anonymous functions that behaves as in Matlab, i.e. the data of the
function is instantiated when the function is created.

In python, the value of the data 'a' is instantiated when the
function is evaluated. Therefore, if the data 'a' changes, the
function changes.

Here I could make something like

deff('y=f(x)','y = a*x')

but then the function will get the value of the variable 'a' of the
current namespace, e.g.

a = 1
function outer(x)
 a = 2
 disp(f(1))
endfunction

f(1) // will give 1
outer(1) // will give 2
a = 3
f(1) // will give 3
outer(1) // will give 2

In this example, I would like f(1) to behave identically
independently of its position.


If i understand correctly your query, the global space is unique and
aims to allow that:
deff('y=f(x)','global a; y = a*x')

This requires the only variable "a" you want to consider been declared
"global a" before some calling point. Actually, i don't see how to
refer to a unique "a" without telling to Scilab which one it must be.

Samuel



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

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



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


Re: [Scilab-users] Number to string with padding of leading blanks by a set of characters

2016-08-28 Thread Stefan Du Rietz

Hello Jens,

T = msprintf("%3i\n", N)

Regards
Stefan


On 2016-08-28 16:17, Jens Simon Strom wrote:

Hello,
I try to  transform the number colum N containing integer elements
from 1 to 999, e. g.

N=[1;11;111]

into

T=["  1";" 11";"111"].

I tried with commands like justify, repmat, string, size, length - but
without success. Do I miss one or more better adequate command(s)?

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



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


Re: [Scilab-users] Cannot start Xcos

2016-08-16 Thread Stefan Du Rietz

Hello Paul,

x_mdialog() works fine for several inputs at once! Thanks.

Regards
Stefan


On 2016-08-16 11:29, Paul Bignier wrote:


Hello Stefan & Claus,

I manage to reproduce the bug in Scilab 5.5.2 but it has been fixed on
the master branch (Scilab 6): Xcos doesn't crash after calls to input().

You may want to port your code to Scilab 6, or as a workaround you can
use other i/o functions
<https://help.scilab.org/docs/6.0.0/en_US/section_7182261dbbb2bb2293bb9166ba5f1fb3.html>
than input().

Regards,

Paul


On 08/16/2016 12:05 AM, Stefan Du Rietz wrote:

Thank you, Claus, for confirming. But for me there is no difference
and if I just enter return, r is a space character:

-->r = input("Reply! ", "s");
-->mprintf("""%s""\n", r)
" "
-->ascii(r)
 ans  =
32.

/Stefan


On 2016-08-15 22:13, Claus Futtrup wrote:

Hi Stefan

An interesting find ... amazing. If you enter something (not just
Return), then xcos opens. If you do not enter anything, then s
contains an empty string, and xcos crashes.

/Claus

On 15-08-2016 20:04, Stefan Du Rietz wrote:

1. Launch Scilab
2. Do this
-->input("Press Return!", "s")
-->xcos()

Regards
Stefan


On 2016-08-15 17:58, Stefan Du Rietz wrote:

This line in my loadsci.sce is the culprit:

  r = input("usb2data? [n] ", "s");

The following lines don't matter. This must certainly be a bug?

Regards
Stefan


On 2016-08-12 16:23, Stefan Du Rietz wrote:

But why can I launch Xcos after running my loadsci.sce(!) if I have
launched it before? Does it remember something from the first
launch
that makes it tolerant during the second launch to what I have
done in
loadsci.sce?

Can you give me a hint?

Regards
Stefan


On 2016-08-12 15:29, Paul Bignier wrote:


You're welcome!

I don't know what is in that loadsci.sci (sounds more like a
.sce by
the way) but if it is a personal file I'd start looking into it ;)

Regards,

Paul


On 08/12/2016 03:06 PM, Stefan Du Rietz wrote:

Paul,
thank you very much for your help. Generally it is one's own
fault
when programs don't behave as expected ... So I started Scilab
with
all the same toolboxes but without my loadsci.sci and then I
could
start Xcos! But the strange thing is that if I then ran
loadsci.sci
from scilab's command line,

-->exec(SCIHOME+"/loadsci.sci", -1)

Xcos could still be started!

Am I haunted by some evil ghost?

Stefan


On 2016-08-12 11:53, Paul Bignier wrote:


Stefan,

You are launching Xcos properly, but this number of toolboxes
looks
suspicious to me, one of them may be interferring.

Can you please disable their autoload and try to launch Xcos?
If it
works, you may want to load them one by one until you can't
relaunch
Xcos ; that way we'll know which one is causing the trouble.

Thank you, best regards,

Paul


On 08/12/2016 10:45 AM, Stefan Du Rietz wrote:

Hello Paul,

I am using Scilab 5.5.2, installed from binaries in three
different
computers with Windows 7 Pro, Windows 10 Home, and Xubuntu
Linux
14.4, respectively. I have these toolboxes installed(?):

-->s = atomsSearch("toolbox");
-->mprintf("%s\n", s(:, 1))
ampl_toolbox
ANN_Toolbox
celestlab
celestlabx
CLUSTER
CWA
dace_scilab
emd_toolbox
EMTTOOL
FACT
Global_Optim_toolbox
grocer
guimaker
huffcomp
hypt
ica_toolbox
json
lsitbx
Mascaret
MDPtoolbox
metanet
microdaq
minphase_toolbox
moc_toolbox
nan
OpenRTDynamics
regtools
rltool
serial
sndfile_toolbox
socket_toolbox
stixbox
swt
toolbox_skeleton
toolbox_spgl1
usb_toolbox
XCPL

Best regards
Stefan


On 2016-08-12 08:42, Paul Bignier wrote:


Hello Stefan,

This error is not familiar, could you give us more information
please?

What version of Scilab are you using? Compiled or Binary?
OS? Do
you
have toolboxes installed?

Thanks,

Paul


On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else
disp(gettext("Please install xcos module
!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

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




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




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




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




Re: [Scilab-users] Cannot start Xcos

2016-08-15 Thread Stefan Du Rietz
Thank you, Claus, for confirming. But for me there is no difference 
and if I just enter return, r is a space character:


-->r = input("Reply! ", "s");
-->mprintf("""%s""\n", r)
" "
-->ascii(r)
 ans  =
32.

/Stefan


On 2016-08-15 22:13, Claus Futtrup wrote:

Hi Stefan

An interesting find ... amazing. If you enter something (not just
Return), then xcos opens. If you do not enter anything, then s
contains an empty string, and xcos crashes.

/Claus

On 15-08-2016 20:04, Stefan Du Rietz wrote:

1. Launch Scilab
2. Do this
-->input("Press Return!", "s")
-->xcos()

Regards
Stefan


On 2016-08-15 17:58, Stefan Du Rietz wrote:

This line in my loadsci.sce is the culprit:

  r = input("usb2data? [n] ", "s");

The following lines don't matter. This must certainly be a bug?

Regards
Stefan


On 2016-08-12 16:23, Stefan Du Rietz wrote:

But why can I launch Xcos after running my loadsci.sce(!) if I have
launched it before? Does it remember something from the first launch
that makes it tolerant during the second launch to what I have
done in
loadsci.sce?

Can you give me a hint?

Regards
Stefan


On 2016-08-12 15:29, Paul Bignier wrote:


You're welcome!

I don't know what is in that loadsci.sci (sounds more like a .sce by
the way) but if it is a personal file I'd start looking into it ;)

Regards,

Paul


On 08/12/2016 03:06 PM, Stefan Du Rietz wrote:

Paul,
thank you very much for your help. Generally it is one's own fault
when programs don't behave as expected ... So I started Scilab with
all the same toolboxes but without my loadsci.sci and then I could
start Xcos! But the strange thing is that if I then ran loadsci.sci
from scilab's command line,

-->exec(SCIHOME+"/loadsci.sci", -1)

Xcos could still be started!

Am I haunted by some evil ghost?

Stefan


On 2016-08-12 11:53, Paul Bignier wrote:


Stefan,

You are launching Xcos properly, but this number of toolboxes
looks
suspicious to me, one of them may be interferring.

Can you please disable their autoload and try to launch Xcos?
If it
works, you may want to load them one by one until you can't
relaunch
Xcos ; that way we'll know which one is causing the trouble.

Thank you, best regards,

Paul


On 08/12/2016 10:45 AM, Stefan Du Rietz wrote:

Hello Paul,

I am using Scilab 5.5.2, installed from binaries in three
different
computers with Windows 7 Pro, Windows 10 Home, and Xubuntu Linux
14.4, respectively. I have these toolboxes installed(?):

-->s = atomsSearch("toolbox");
-->mprintf("%s\n", s(:, 1))
ampl_toolbox
ANN_Toolbox
celestlab
celestlabx
CLUSTER
CWA
dace_scilab
emd_toolbox
EMTTOOL
FACT
Global_Optim_toolbox
grocer
guimaker
huffcomp
hypt
ica_toolbox
json
lsitbx
Mascaret
MDPtoolbox
metanet
microdaq
minphase_toolbox
moc_toolbox
nan
OpenRTDynamics
regtools
rltool
serial
sndfile_toolbox
socket_toolbox
stixbox
swt
toolbox_skeleton
toolbox_spgl1
usb_toolbox
XCPL

Best regards
Stefan


On 2016-08-12 08:42, Paul Bignier wrote:


Hello Stefan,

This error is not familiar, could you give us more information
please?

What version of Scilab are you using? Compiled or Binary? OS? Do
you
have toolboxes installed?

Thanks,

Paul


On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else
disp(gettext("Please install xcos module
!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

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




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




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




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



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



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



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



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


Re: [Scilab-users] Cannot start Xcos

2016-08-15 Thread Stefan Du Rietz

1. Launch Scilab
2. Do this
-->input("Press Return!", "s")
-->xcos()

Regards
Stefan


On 2016-08-15 17:58, Stefan Du Rietz wrote:

This line in my loadsci.sce is the culprit:

  r = input("usb2data? [n] ", "s");

The following lines don't matter. This must certainly be a bug?

Regards
Stefan


On 2016-08-12 16:23, Stefan Du Rietz wrote:

But why can I launch Xcos after running my loadsci.sce(!) if I have
launched it before? Does it remember something from the first launch
that makes it tolerant during the second launch to what I have done in
loadsci.sce?

Can you give me a hint?

Regards
Stefan


On 2016-08-12 15:29, Paul Bignier wrote:


You're welcome!

I don't know what is in that loadsci.sci (sounds more like a .sce by
the way) but if it is a personal file I'd start looking into it ;)

Regards,

Paul


On 08/12/2016 03:06 PM, Stefan Du Rietz wrote:

Paul,
thank you very much for your help. Generally it is one's own fault
when programs don't behave as expected ... So I started Scilab with
all the same toolboxes but without my loadsci.sci and then I could
start Xcos! But the strange thing is that if I then ran loadsci.sci
from scilab's command line,

-->exec(SCIHOME+"/loadsci.sci", -1)

Xcos could still be started!

Am I haunted by some evil ghost?

Stefan


On 2016-08-12 11:53, Paul Bignier wrote:


Stefan,

You are launching Xcos properly, but this number of toolboxes looks
suspicious to me, one of them may be interferring.

Can you please disable their autoload and try to launch Xcos? If it
works, you may want to load them one by one until you can't relaunch
Xcos ; that way we'll know which one is causing the trouble.

Thank you, best regards,

Paul


On 08/12/2016 10:45 AM, Stefan Du Rietz wrote:

Hello Paul,

I am using Scilab 5.5.2, installed from binaries in three different
computers with Windows 7 Pro, Windows 10 Home, and Xubuntu Linux
14.4, respectively. I have these toolboxes installed(?):

-->s = atomsSearch("toolbox");
-->mprintf("%s\n", s(:, 1))
ampl_toolbox
ANN_Toolbox
celestlab
celestlabx
CLUSTER
CWA
dace_scilab
emd_toolbox
EMTTOOL
FACT
Global_Optim_toolbox
grocer
guimaker
huffcomp
hypt
ica_toolbox
json
lsitbx
Mascaret
MDPtoolbox
metanet
microdaq
minphase_toolbox
moc_toolbox
nan
OpenRTDynamics
regtools
rltool
serial
sndfile_toolbox
socket_toolbox
stixbox
swt
toolbox_skeleton
toolbox_spgl1
usb_toolbox
XCPL

Best regards
Stefan


On 2016-08-12 08:42, Paul Bignier wrote:


Hello Stefan,

This error is not familiar, could you give us more information
please?

What version of Scilab are you using? Compiled or Binary? OS? Do
you
have toolboxes installed?

Thanks,

Paul


On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else
disp(gettext("Please install xcos module
!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

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




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




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




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



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



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


Re: [Scilab-users] Cannot start Xcos

2016-08-15 Thread Stefan Du Rietz

This line in my loadsci.sce is the culprit:

  r = input("usb2data? [n] ", "s");

The following lines don't matter. This must certainly be a bug?

Regards
Stefan


On 2016-08-12 16:23, Stefan Du Rietz wrote:

But why can I launch Xcos after running my loadsci.sce(!) if I have
launched it before? Does it remember something from the first launch
that makes it tolerant during the second launch to what I have done in
loadsci.sce?

Can you give me a hint?

Regards
Stefan


On 2016-08-12 15:29, Paul Bignier wrote:


You're welcome!

I don't know what is in that loadsci.sci (sounds more like a .sce by
the way) but if it is a personal file I'd start looking into it ;)

Regards,

Paul


On 08/12/2016 03:06 PM, Stefan Du Rietz wrote:

Paul,
thank you very much for your help. Generally it is one's own fault
when programs don't behave as expected ... So I started Scilab with
all the same toolboxes but without my loadsci.sci and then I could
start Xcos! But the strange thing is that if I then ran loadsci.sci
from scilab's command line,

-->exec(SCIHOME+"/loadsci.sci", -1)

Xcos could still be started!

Am I haunted by some evil ghost?

Stefan


On 2016-08-12 11:53, Paul Bignier wrote:


Stefan,

You are launching Xcos properly, but this number of toolboxes looks
suspicious to me, one of them may be interferring.

Can you please disable their autoload and try to launch Xcos? If it
works, you may want to load them one by one until you can't relaunch
Xcos ; that way we'll know which one is causing the trouble.

Thank you, best regards,

Paul


On 08/12/2016 10:45 AM, Stefan Du Rietz wrote:

Hello Paul,

I am using Scilab 5.5.2, installed from binaries in three different
computers with Windows 7 Pro, Windows 10 Home, and Xubuntu Linux
14.4, respectively. I have these toolboxes installed(?):

-->s = atomsSearch("toolbox");
-->mprintf("%s\n", s(:, 1))
ampl_toolbox
ANN_Toolbox
celestlab
celestlabx
CLUSTER
CWA
dace_scilab
emd_toolbox
EMTTOOL
FACT
Global_Optim_toolbox
grocer
guimaker
huffcomp
hypt
ica_toolbox
json
lsitbx
Mascaret
MDPtoolbox
metanet
microdaq
minphase_toolbox
moc_toolbox
nan
OpenRTDynamics
regtools
rltool
serial
sndfile_toolbox
socket_toolbox
stixbox
swt
toolbox_skeleton
toolbox_spgl1
usb_toolbox
XCPL

Best regards
Stefan


On 2016-08-12 08:42, Paul Bignier wrote:


Hello Stefan,

This error is not familiar, could you give us more information
please?

What version of Scilab are you using? Compiled or Binary? OS? Do
you
have toolboxes installed?

Thanks,

Paul


On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else
disp(gettext("Please install xcos module
!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

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




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




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




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



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


Re: [Scilab-users] Cannot start Xcos

2016-08-12 Thread Stefan Du Rietz
But why can I launch Xcos after running my loadsci.sce(!) if I have 
launched it before? Does it remember something from the first launch 
that makes it tolerant during the second launch to what I have done in 
loadsci.sce?


Can you give me a hint?

Regards
Stefan


On 2016-08-12 15:29, Paul Bignier wrote:


You're welcome!

I don't know what is in that loadsci.sci (sounds more like a .sce by
the way) but if it is a personal file I'd start looking into it ;)

Regards,

Paul


On 08/12/2016 03:06 PM, Stefan Du Rietz wrote:

Paul,
thank you very much for your help. Generally it is one's own fault
when programs don't behave as expected ... So I started Scilab with
all the same toolboxes but without my loadsci.sci and then I could
start Xcos! But the strange thing is that if I then ran loadsci.sci
from scilab's command line,

-->exec(SCIHOME+"/loadsci.sci", -1)

Xcos could still be started!

Am I haunted by some evil ghost?

Stefan


On 2016-08-12 11:53, Paul Bignier wrote:


Stefan,

You are launching Xcos properly, but this number of toolboxes looks
suspicious to me, one of them may be interferring.

Can you please disable their autoload and try to launch Xcos? If it
works, you may want to load them one by one until you can't relaunch
Xcos ; that way we'll know which one is causing the trouble.

Thank you, best regards,

Paul


On 08/12/2016 10:45 AM, Stefan Du Rietz wrote:

Hello Paul,

I am using Scilab 5.5.2, installed from binaries in three different
computers with Windows 7 Pro, Windows 10 Home, and Xubuntu Linux
14.4, respectively. I have these toolboxes installed(?):

-->s = atomsSearch("toolbox");
-->mprintf("%s\n", s(:, 1))
ampl_toolbox
ANN_Toolbox
celestlab
celestlabx
CLUSTER
CWA
dace_scilab
emd_toolbox
EMTTOOL
FACT
Global_Optim_toolbox
grocer
guimaker
huffcomp
hypt
ica_toolbox
json
lsitbx
Mascaret
MDPtoolbox
metanet
microdaq
minphase_toolbox
moc_toolbox
nan
OpenRTDynamics
regtools
rltool
serial
sndfile_toolbox
socket_toolbox
stixbox
swt
toolbox_skeleton
toolbox_spgl1
usb_toolbox
XCPL

Best regards
Stefan


On 2016-08-12 08:42, Paul Bignier wrote:


Hello Stefan,

This error is not familiar, could you give us more information
please?

What version of Scilab are you using? Compiled or Binary? OS? Do you
have toolboxes installed?

Thanks,

Paul


On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else
disp(gettext("Please install xcos module
!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

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




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




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




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


Re: [Scilab-users] Cannot start Xcos

2016-08-12 Thread Stefan Du Rietz

Paul,
thank you very much for your help. Generally it is one's own fault 
when programs don't behave as expected ... So I started Scilab with 
all the same toolboxes but without my loadsci.sci and then I could 
start Xcos! But the strange thing is that if I then ran loadsci.sci 
from scilab's command line,


-->exec(SCIHOME+"/loadsci.sci", -1)

Xcos could still be started!

Am I haunted by some evil ghost?

Stefan


On 2016-08-12 11:53, Paul Bignier wrote:


Stefan,

You are launching Xcos properly, but this number of toolboxes looks
suspicious to me, one of them may be interferring.

Can you please disable their autoload and try to launch Xcos? If it
works, you may want to load them one by one until you can't relaunch
Xcos ; that way we'll know which one is causing the trouble.

Thank you, best regards,

Paul


On 08/12/2016 10:45 AM, Stefan Du Rietz wrote:

Hello Paul,

I am using Scilab 5.5.2, installed from binaries in three different
computers with Windows 7 Pro, Windows 10 Home, and Xubuntu Linux
14.4, respectively. I have these toolboxes installed(?):

-->s = atomsSearch("toolbox");
-->mprintf("%s\n", s(:, 1))
ampl_toolbox
ANN_Toolbox
celestlab
celestlabx
CLUSTER
CWA
dace_scilab
emd_toolbox
EMTTOOL
FACT
Global_Optim_toolbox
grocer
guimaker
huffcomp
hypt
ica_toolbox
json
lsitbx
Mascaret
MDPtoolbox
metanet
microdaq
minphase_toolbox
moc_toolbox
nan
OpenRTDynamics
regtools
rltool
serial
sndfile_toolbox
socket_toolbox
stixbox
swt
toolbox_skeleton
toolbox_spgl1
usb_toolbox
XCPL

Best regards
Stefan


On 2016-08-12 08:42, Paul Bignier wrote:


Hello Stefan,

This error is not familiar, could you give us more information please?

What version of Scilab are you using? Compiled or Binary? OS? Do you
have toolboxes installed?

Thanks,

Paul


On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else
disp(gettext("Please install xcos module
!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

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




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




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


Re: [Scilab-users] Cannot start Xcos

2016-08-12 Thread Stefan Du Rietz

Hello Paul,

I am using Scilab 5.5.2, installed from binaries in three different 
computers with Windows 7 Pro, Windows 10 Home, and Xubuntu Linux 14.4, 
respectively. I have these toolboxes installed(?):


-->s = atomsSearch("toolbox");
-->mprintf("%s\n", s(:, 1))
ampl_toolbox
ANN_Toolbox
celestlab
celestlabx
CLUSTER
CWA
dace_scilab
emd_toolbox
EMTTOOL
FACT
Global_Optim_toolbox
grocer
guimaker
huffcomp
hypt
ica_toolbox
json
lsitbx
Mascaret
MDPtoolbox
metanet
microdaq
minphase_toolbox
moc_toolbox
nan
OpenRTDynamics
regtools
rltool
serial
sndfile_toolbox
socket_toolbox
stixbox
swt
toolbox_skeleton
toolbox_spgl1
usb_toolbox
XCPL

Best regards
Stefan


On 2016-08-12 08:42, Paul Bignier wrote:


Hello Stefan,

This error is not familiar, could you give us more information please?

What version of Scilab are you using? Compiled or Binary? OS? Do you
have toolboxes installed?

Thanks,

Paul


On 08/11/2016 08:26 PM, Stefan Du Rietz wrote:

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else
disp(gettext("Please install xcos module
!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

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




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


[Scilab-users] Cannot start Xcos

2016-08-11 Thread Stefan Du Rietz

Hello,
how do I start Xcos for the first time ever?

When I try from the menu: Applications - Xcos,
I get this message:

 8361  Tue Aug  9 21:14
ckobject(28);if with_module("xcos") then xcos(); else 
disp(gettext("Please install xcos module

!--error 999
xcos:
while executing a callback


And from the command line:

-->xcos
  !--error 999
xcos:


What can I do?

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


Re: [Scilab-users] SciNotes disappeared

2016-04-11 Thread Stefan Du Rietz

Hello Paul,
thanks for the answer.

Because I had all my own libraries there, I could not just delete the 
folder.


I deleted scinotesConfiguration.xml and restarted Scilab to no avail.

I made a backup of SCIHOME, deleted it and then restored most of it. 
After that it is again working.


But why did it happen?

Regards
Stefan


On 2016-04-11 14:01, Paul Bignier wrote:


Hello,

You may delete you SCIHOME folder, that way SciNotes' config will be
renewed.

Regards,
Paul

On 04/11/2016 12:46 PM, Stefan Du Rietz wrote:

Hello,
suddenly I could not start SciNotes. Before, I had by mistake
dragged a bin-file instead of a sci-file to the SciNotes window and
it crashed. However, after a restart of SciNotes it worked for a
while. But after a restart of Scilab:

-->scinotes

 -->

and nothing happens. What can I do (Scilab 5.5.2, Xubuntu 14.04)?

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




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


[Scilab-users] SciNotes disappeared

2016-04-11 Thread Stefan Du Rietz

Hello,
suddenly I could not start SciNotes. Before, I had by mistake dragged 
a bin-file instead of a sci-file to the SciNotes window and it 
crashed. However, after a restart of SciNotes it worked for a while. 
But after a restart of Scilab:


-->scinotes

 -->

and nothing happens. What can I do (Scilab 5.5.2, Xubuntu 14.04)?

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


Re: [Scilab-users] Windows shell command

2015-10-29 Thread Stefan Du Rietz
Thanks, I used the switch /LOG to check what happened when I ran the 
dos command from Scilab.


But there is a workaround without an extra file.

My first test command was (the switches are needed when I use it with 
a network server):

-->RCcmd
 RCcmd  =

 ROBOCOPY C:\Users\stefan\Documents\test 
C:\Users\stefan\Documents\new *.txt /TEE /COPY:DT /XJ /XO /FFT /DST /NP


If I add this to the first command, it works, because the output is 
via ECHO:


-->RC2cmd = "FOR /F ""usebackq delims=="" %i IN (`" + RCcmd + "`) DO 
@echo %i"

 RC2cmd  =

 FOR /F "usebackq delims==" %i IN (`ROBOCOPY 
C:\Users\stefan\Documents\test C:\Users\stefan\Documents\new *.txt 
/TEE /COPY:DT /XJ /XO /FFT /DST /NP`) DO @echo %i


But that should be handled by Scilab's functions, at least dos() and 
powershell(), shouldn't it?


Regards
Stefan


On 2015-10-28 23:53, JLan wrote:

Workaround:
[reg stat]=unix_g('robocopy C:\A D:\A  /LOG:C:\A\log.txt')
[regl statl]=unix_g('type c:\A\log.txt')

J



--
View this message in context: 
http://mailinglists.scilab.org/Scilab-users-Windows-shell-command-tp4033045p4033050.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



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


Re: [Scilab-users] Windows shell command

2015-10-28 Thread Stefan Du Rietz
If I repeat the command, which shall only update older files in the 
target directory, nothing is done, but I get


 stat  =

0.

 rep  =


!
 the output OK ... !

However, the successful command gives stat = 1 like an erroneous 
command! So there must be a bug or am I missing something?


Regards
Stefan


On 2015-10-28 00:32, Stefan Du Rietz wrote:

Hello,

I want to run and get the output from the command robocopy under
Windows 10 from Scilab. I have tried the Scilab functions unix_g(),
dos(), and powershell() but I always get the same empty output:



->[rep, stat] = unix_g(cmd)

  stat  =

 1.

  rep  =




However, the command is successful: the files are copied OK.



If I run the command (cmd) from Windows "Command Prompt" or "Select
Windows PowerShell" I get the output.



If I use xcopy I also get the output from Scilab
.


Regards

Stefan

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



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


[Scilab-users] Windows shell command

2015-10-27 Thread Stefan Du Rietz

Hello,

I want to run and get the output from the command robocopy under 
Windows 10 from Scilab. I have tried the Scilab functions unix_g(), 
dos(), and powershell() but I always get the same empty output:




->[rep, stat] = unix_g(cmd)

 stat  =

1.

 rep  =




However, the command is successful: the files are copied OK.



If I run the command (cmd) from Windows "Command Prompt" or "Select 
Windows PowerShell" I get the output.




If I use xcopy I also get the output from Scilab
.


Regards

Stefan

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


Re: [Scilab-users] Command lauch using a string

2015-05-15 Thread Stefan Du Rietz

On 2015-05-14 22:51, paul.carr...@free.fr wrote:

Dear All,

I've been thinking in creating a string in order to run specific instructions 
afterward (I'm under Windows OS for the moement);

An example of my code:
#
A = 'PATH_IMAGEMAGICK + ''\convert -delay 50 ';
for i = 1 : number
 A = A + '-repage 1218x722+0+0 sample_geometry" + string(i) + ".gif ';
end
A = A + '-loop 0 superposition_anime.gif'',''-echo''';
dos(A)
#

It fails while if I replace the string A by the complete sentence, it works 
fine showing that's probably a format issue ... but honnestly I don't find the 
right one

Any suggestion will be appreciated

Thanks

Paul


Have you tried to display the string A in Scilab?

-->PATH_IMAGEMAGICK = "c:\Path\to\Imagemagick"
 PATH_IMAGEMAGICK  =
 c:\Path\to\Imagemagick

// This is probably not what you want:
-->A = 'PATH_IMAGEMAGICK + ''\convert -delay 50 '
 A  =
 PATH_IMAGEMAGICK + '\convert -delay 50

// You probably want this:
-->A = PATH_IMAGEMAGICK + '\convert -delay 50 '
 A  =
 c:\Path\to\Imagemagick\convert -delay 50

Regards
Stefan

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


Re: [Scilab-users] Strange figure behaviour

2015-05-14 Thread Stefan Du Rietz

On 2015-05-14 20:07, Samuel Gougeon wrote:

Le 14/05/2015 19:11, Stefan Du Rietz a écrit :



PS  And who wants to rotate a 2d-plot (and in error)? If you really
want that, you should have to do something!

I rather agree. Interactive 3D rotation could be activated by default
only for 3D viewed axes. The rotation tool is still proposed in the
toolbar when the user need it.
See also: http://bugzilla.scilab.org/show_bug.cgi?id=10981 , where you
may append this request.


Thank you, Samuel. I have now done that.


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


Re: [Scilab-users] Strange figure behaviour

2015-05-14 Thread Stefan Du Rietz

On 2015-05-14 19:00, Stefan Du Rietz wrote:

On 2015-05-13 21:25, Samuel Gougeon wrote:

Le 13/05/2015 13:54, Stefan Du Rietz a écrit :


Thanks, but it changes the same axes wherever I click!

I do not get this behavior with Scilab 5.5.2 on win7_x64. Only the
clicked axes is rotated, whatever it is.


I get this behaviour with Scilab 5.5.2 on win 8.1, win 7 and Linux
(Xubuntu 14.04) in 3 different 32-bit computers.

Stefan

PS  And who wants to rotate a 2d-plot (and in error)? If you really 
want that, you should have to do something!



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


Re: [Scilab-users] Strange figure behaviour

2015-05-14 Thread Stefan Du Rietz

On 2015-05-13 21:25, Samuel Gougeon wrote:

Le 13/05/2015 13:54, Stefan Du Rietz a écrit :


Thanks, but it changes the same axes wherever I click!

I do not get this behavior with Scilab 5.5.2 on win7_x64. Only the
clicked axes is rotated, whatever it is.

I get this behaviour with Scilab 5.5.2 on win 8.1, win 7 and Linux 
(Xubuntu 14.04) in 3 different 32-bit computers.


Stefan



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


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Stefan Du Rietz

On 2015-05-13 16:19, Philipp Mühlmann wrote:

/Yes, it does, but the automatic x value should remain if I only
change the y value, shouldn't it?/
I guess no help, but:
yes, it should..question is: does it?
Did you "disp(a.x_location)" and check if the value keeps constant
after updating a.y_location by hand?
Would be interesting to see...never used something like this before.
Best wishes,
Philipp



As I tried to explain, If I set
  a.title.auto_position="on"
after drawlater() where I change the x axis and do many things, and 
not until *after* drawnow() change the y value

  a.title_position(2)=new_vertical_position
then the title gets the correct position: the automatic x value and 
the y value new_vertical_position.


Calixte, please, that must be a bug?

Best regards
Stefan


2015-05-13 14:18 GMT+02:00 Stefan Du Rietz mailto:s...@durietz.se>>:

On 2015-05-13 12:47, Philipp Mühlmann wrote:

/ But my problem is:/
/1. I change only the x-axis in the axes a/
/2. I let Scilab set the position with a.title.auto_position="on"/
/3. I change a.title_position(2)=new_vertical_position/
/4. unfortunately a.title_position(1) is not updated/
//
I guess that editing a.title after   a.title.auto_positioning =
'on';   switches off the auto positioning?


Yes, it does, but the automatic x value should remain if I only
change the y value, shouldn't it?

What about using:
/a.title_position(//1)  = new_horizontal_position/
/a.title_position(2)  = new_vertical_position/
where new_horizontal position = old_horizontal_position if
x-axes does
not change or getting a new value (depending on your data) if the
x-axes changes.


I tried that, but it is very complicated to calculate the
horizontal position so that the title is positioned in the middle ...

And it works if I change the y position after drawnow()!

Regards
Stefan

Greetings,
Philipp

2015-05-13 12:24 GMT+02:00 Philipp Mühlmann
mailto:p.muehlm...@gmail.com>
<mailto:p.muehlm...@gmail.com <mailto:p.muehlm...@gmail.com>>>:

 /I may miss something again, but when they are in their own
 drawnlater/drawnow pair -- not the one used for plotting
--, it
 seems to work./
 cool...thanks...I managed to have the cross without
blinking now
 using drawlater() / drawnow() in connection with
delete(e). didn't
 know "embrassing".
 Best regards,
 Philipp

 2015-05-13 9:54 GMT+02:00 Samuel Gougeon
mailto:sgoug...@free.fr>
 <mailto:sgoug...@free.fr <mailto:sgoug...@free.fr>>>:

 Le 13/05/2015 09:32, Samuel Gougeon a écrit :

 Le 13/05/2015 08:08, Philipp Mühlmann a écrit :

 I have also noticed that I cannot change the
position
 of a title, x-
 or y-label in-between specific drawlater/drawnow.

 If you know where to place x-y-label

 What about:

 a = gca()
 a.x_label.position =
 a.y_label.position =

 works great or me.

 For me as well (i forgot this property), even within
 drawlater/drawnow.
 About a.x_location about which i was thinking : it
works also
 within drawlater/drawnow.
 Ni issue for me (apart reminding ;)

 About the + cross: to avoid it blinking (while axes
stopped
 to), you may update their data instead of deleting and
 recreating it for each iteration, and see the result
(i did
 not try).




 ___
 users mailing list
users@lists.scilab.org <mailto:users@lists.scilab.org>
<mailto:users@lists.scilab.org <mailto:users@lists.scilab.org>>
http://lists.scilab.org/mailman/listinfo/users




 --
 There we have the salad.




--
There we have the salad.


___
users mailing list
users@lists.scilab.org <mailto:users@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org <mailto:users@lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users




--
There we have the salad.


___
users mailing list
users@lis

Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Stefan Du Rietz

On 2015-05-13 12:47, Philipp Mühlmann wrote:

/ But my problem is:/
/1. I change only the x-axis in the axes a/
/2. I let Scilab set the position with a.title.auto_position="on"/
/3. I change a.title_position(2)=new_vertical_position/
/4. unfortunately a.title_position(1) is not updated/
//
I guess that editing a.title after   a.title.auto_positioning =
'on';   switches off the auto positioning?


Yes, it does, but the automatic x value should remain if I only change 
the y value, shouldn't it?



What about using:
/a.title_position(//1)  = new_horizontal_position/
/a.title_position(2)  = new_vertical_position/
where new_horizontal position = old_horizontal_position if x-axes does
not change or getting a new value (depending on your data) if the
x-axes changes.


I tried that, but it is very complicated to calculate the horizontal 
position so that the title is positioned in the middle ...


And it works if I change the y position after drawnow()!

Regards
Stefan


Greetings,
Philipp

2015-05-13 12:24 GMT+02:00 Philipp Mühlmann mailto:p.muehlm...@gmail.com>>:

/I may miss something again, but when they are in their own
drawnlater/drawnow pair -- not the one used for plotting --, it
seems to work./
cool...thanks...I managed to have the cross without blinking now
using drawlater() / drawnow() in connection with delete(e). didn't
know "embrassing".
Best regards,
Philipp

2015-05-13 9:54 GMT+02:00 Samuel Gougeon mailto:sgoug...@free.fr>>:

Le 13/05/2015 09:32, Samuel Gougeon a écrit :

Le 13/05/2015 08:08, Philipp Mühlmann a écrit :

I have also noticed that I cannot change the position
of a title, x-
or y-label in-between specific drawlater/drawnow.

If you know where to place x-y-label

What about:

a = gca()
a.x_label.position =
a.y_label.position =

works great or me.

For me as well (i forgot this property), even within
drawlater/drawnow.
About a.x_location about which i was thinking : it works also
within drawlater/drawnow.
Ni issue for me (apart reminding ;)

About the + cross: to avoid it blinking (while axes stopped
to), you may update their data instead of deleting and
recreating it for each iteration, and see the result (i did
not try).




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




--
There we have the salad.




--
There we have the salad.


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




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


Re: [Scilab-users] Strange figure behaviour

2015-05-13 Thread Stefan Du Rietz

On 2015-05-13 13:41, sgoug...@free.fr wrote:

De: "Stefan Du Rietz"
Envoyé: Mercredi 13 Mai 2015 12:19:01

Hello all,
can anybody explain this:
I have a figure f with two axes (and some GUIs). When I move the mouse
with the right button pressed, *one* of the axes gets distorted.


Right-click rotates interactively the axes on which you have clicked.
To restore it (and all), you may do:
f = gcf();
k = f.children.type=="Axes"
f.children(k).view="2d";

SG


Thanks, but it changes the same axes wherever I click! And I would 
like to prevent the possibility to rotate the axes.


Stefan


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


[Scilab-users] Strange figure behaviour

2015-05-13 Thread Stefan Du Rietz

Hello all,
can anybody explain this:
I have a figure f with two axes (and some GUIs). When I move the mouse 
with the right button pressed, *one* of the axes gets distorted.

-->unzoom(f)
or
-->f.event_handler_enable = "off";
does not help.

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


Re: [Scilab-users] periodical X-Axis in 2d plot

2015-05-13 Thread Stefan Du Rietz

On 2015-05-13 09:54, Samuel Gougeon wrote:

Le 13/05/2015 09:32, Samuel Gougeon a écrit :

Le 13/05/2015 08:08, Philipp Mühlmann a écrit :

I have also noticed that I cannot change the position of a title, x-
or y-label in-between specific drawlater/drawnow.

If you know where to place x-y-label

What about:

a = gca()
a.x_label.position =
a.y_label.position =

works great or me.

For me as well (i forgot this property), even within drawlater/drawnow.
About a.x_location about which i was thinking : it works also within
drawlater/drawnow.
Ni issue for me (apart reminding ;)


But my problem is:
1. I change only the x-axis in the axes a
2. I let Scilab set the position with a.title.auto_position="on"
3. I change a.title_position(2)=new_vertical_position
4. unfortunately a.title_position(1) is not updated

Without 3. a.title_position(1) *is* updated!

Stefan



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


  1   2   3   >