Re: [Scilab-users] Generic plot command draws automatically _which_ coloured curves

2023-03-22 Thread Jean-Yves Baudais

Hello,

Le 21/03/2023 à 19:55, Stéphane Mottelet a écrit :

The colors and order of color cycling when using multiple pairs (x,y)
is arbitrary in Scilab.



Ok, no problem with that, but where is it defined? As Heinz Nabielik
wrote, if I want to use the same color (which are nice :-), I need to
know the definition. The problem is that "color_map" cannot help to find
the definition.


Jean-Yves
___
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] Generic plot command draws automatically _which_ coloured curves

2023-03-21 Thread Heinz Nabielek
On 21.03.2023, at 17:17, Jean-Yves Baudais  
wrote:
>
> Hello,
>
> Le 20/03/2023 à 14:40, Samuel Gougeon a écrit :
>> getcolor() tells it to you, in the infobar for the selected color:
>
> > plot((1:10)',rand(10,6),"-*");legend("1","2","3","4","5","6")


Sorry, colleagues, I am still at a loss. At first, I am plotting 7 arrays in a 
sequence of pre-defined colours (that I find nowhwere in the Scilab help 
functions)

A=rand(10,7);
plot((1:10)',A,"-*");
xgrid(color('grey70'));
legend("1","2","3","4","5","6","7");

Now, I would like to redraw array #6 with a thicker line of the same colour as 
in the original colour sequence, thus:
plot((1:10)',A(:,6),"-",'linewidth',3);

How can I specify the 6th colour in the plot command?
Heinz
___
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] Generic plot command draws automatically _which_ coloured curves

2023-03-21 Thread Stéphane Mottelet

The colors and order of color cycling when using multiple pairs (x,y)
(or plotting (x,y) when at least y is a matrix) is arbitrary in Scilab.
Scilab mimics (very approximately) Matlab behavior, but Matlab has a
"ColorOrder" property (even a "LineStyleOrder") which defines the colors
(by r,g,b triplet) and their order. Scilab does not have this property,
that's why I said "approximately"...

S.

Le 21/03/2023 à 17:17, Jean-Yves Baudais a écrit :

Hello,

Le 20/03/2023 à 14:40, Samuel Gougeon a écrit :

getcolor() tells it to you, in the infobar for the selected color:


> plot((1:10)',rand(10,6),"-*");legend("1","2","3","4","5","6")
> gcf().color_map

gvf().color_map gives the same color as getcolor() does, but it is not
the six colors used by the plot (the first color in the plot it's not
the black given by getcolor(), the green in the plot is not the primary
green in getcolor...). Why?

Jean-Yves
___
users mailing list - users@lists.scilab.org
Click here to unsubscribe: 
https://antispam.utc.fr/proxy/v3?i=WjB4M1dJWGJJMnNGTHV5MuAPDwEdQko7KGyaWIIeme0=Skk2OVhvdXl2cm1uOWJtRLRPDrgr4YiCABksjbHu_Gv8eNkcUiMzd6MxV8KbAPI5=M2FwZHlGNnU1aUlkc09ZNN6FtQAZUfRagBYPQiUfaoT45ZkXHKKVm0cOGvv2yMCS=https%3A//lists.scilab.org/mailman/listinfo/users=CXOq

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://antispam.utc.fr/proxy/v3?i=WjB4M1dJWGJJMnNGTHV5MuAPDwEdQko7KGyaWIIeme0=Skk2OVhvdXl2cm1uOWJtRLRPDrgr4YiCABksjbHu_Gv8eNkcUiMzd6MxV8KbAPI5=M2FwZHlGNnU1aUlkc09ZNN6FtQAZUfRagBYPQiUfaoT45ZkXHKKVm0cOGvv2yMCS=https%3A//www.3ds.com/privacy-policy/contact/=CXOq


--
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: 
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] Generic plot command draws automatically _which_ coloured curves

2023-03-21 Thread Jean-Yves Baudais

Hello,

Le 20/03/2023 à 14:40, Samuel Gougeon a écrit :

getcolor() tells it to you, in the infobar for the selected color:


> plot((1:10)',rand(10,6),"-*");legend("1","2","3","4","5","6")
> gcf().color_map

gvf().color_map gives the same color as getcolor() does, but it is not
the six colors used by the plot (the first color in the plot it's not
the black given by getcolor(), the green in the plot is not the primary
green in getcolor...). Why?

Jean-Yves
___
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] Generic plot command draws automatically _which_ coloured curves

2023-03-20 Thread Samuel Gougeon

Le 20/03/2023 à 13:13, Heinz Nabielek a écrit :

size(E4)=   81.   1.
size(D) =81.   7.
plot (E4,D,'-')

This generic plot command draws automatically coloured curves in blue, green, 
red, etcetera

What are the following colours? I know that 8 is white


getcolor() tells it to you, in the infobar for the selected color:

[cid:part1.LqMLl9Rl.GuGn90eB@free.fr]


--> c = gdf().color_map; [(1:size(c,1))', c]
ans  =

  1.0.  0.  0.
  2.0.  0.  1.
  3.0.  1.  0.
  4.0.  1.  1.
  5.1.  0.  0.
  6.1.  0.  1.
  7.1.  1.  0.
  8.1.  1.  1.
  9.0.  0.  0.5647059
  10.   0.  0.  0.6901961
  11.   0.  0.  0.8156863
  12.   0.5294118   0.8078431   1.
  13.   0.  0.5647059   0.
  14.   0.  0.6901961   0.
  15.   0.  0.8156863   0.
  16.   0.  0.5647059   0.5647059
  17.   0.  0.6901961   0.6901961
  18.   0.  0.8156863   0.8156863
  19.   0.5647059   0.  0.
  20.   0.6901961   0.  0.
  21.   0.8156863   0.  0.
  22.   0.5647059   0.  0.5647059
  23.   0.6901961   0.  0.6901961
  24.   0.8156863   0.  0.8156863
  25.   0.5019608   0.1882353   0.
  26.   0.6274510.2509804   0.
  27.   0.7529412   0.3764706   0.
  28.   1.  0.5019608   0.5019608
  29.   1.  0.6274510.627451
  30.   1.  0.7529412   0.7529412
  31.   1.  0.8784314   0.8784314
  32.   1.  0.8431373   0.


Samuel


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