Re: [Scilab-users] Transparent rectangle?

2014-01-20 Thread Stefan Du Rietz

On 2014-01-20 11:04, Serge Steer wrote:


Hi Antoine,

I understand that I could draw the lines after the coloured rectangle
to get them visible, but I cannot do that. So, I need the rectangle to
be transparent.


What do you mean by "rearrange the order"?


Here is an example
clf;
xpoly([0 1],[0,1]);p=gce();
xfrect([0.2 0.3 0.2 0.2]);r=gce();r.background=5;
swap_handles(p,r)


Hi Serge,
I thank you for this reply to *me*.

Your suggestion showed up to be the best solution for me.

My problem was that I had two different axes with the same rectangle. 
I had to draw two different rectangles in the two axes to make it work.


Stefan


Serge
___
users mailing list
users@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] Transparent rectangle?

2014-01-20 Thread Calixte Denizet

Hi Antoine,

yes it is planned to handle transparency... but it is not easy since it 
will probably break the compatibility (every function which directly use 
the colormap is expecting three color components... not four).
As said previously, it is possible to workaround in using Matplot1 or 
Matplot which now (since 5.5 beta 1) is able to handle RGBA colors 
directly (without using the colormap).


Calixte

On 19/01/2014 21:15, Antoine Monmayrant wrote:
  
Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz  a écrit:
  

Hi all,
is it possible to draw a filled coloured rectangle after lines so that
those lines can still be seen trough it?

Hi Stefan,

I am not sure what you are asking for:
- do you ask for transparency? (if yes, bad luck, no transparency for the 
moment, but things could change, hein Calixte?)
- do you want to get the lines atop the rectangle? Why not plotting them 
afterwards or rearrange the order later on.

If you can elaborate a bit more, we might get a better idea of what you want to 
do.

Antoine


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


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



--
Calixte Denizet
Software Development Engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
http://www.scilab-enterprises.com

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


Re: [Scilab-users] Transparent rectangle?

2014-01-20 Thread Calixte Denizet

Hi Stefan,

Yes it is possible:
plot([1:2],[3:4;5:6;7:8;9:10]);
Matplot1(uint32(65408), [1 3 2 10])

65408=255*256+128, in hex notation 65408 is xFF80 (so it's a 
semi-transparent blue)
When Matplot first argument is uint32, data are considered to be in 
format RGBA, there are more information at image_type entry:

http://help.scilab.org/docs/5.5.0-beta-1/en_US/Matplot_properties.html

Best regards

Calixte

On 19/01/2014 20:12, Stefan Du Rietz wrote:

Hi all,
is it possible to draw a filled coloured rectangle after lines so that 
those lines can still be seen trough it?


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



--
Calixte Denizet
Software Development Engineer
---
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
http://www.scilab-enterprises.com

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


Re: [Scilab-users] Transparent rectangle?

2014-01-20 Thread Serge Steer

Hi Antoine,

I understand that I could draw the lines after the coloured rectangle
to get them visible, but I cannot do that. So, I need the rectangle to
be transparent.


What do you mean by "rearrange the order"?


Here is an example
clf;
xpoly([0 1],[0,1]);p=gce();
xfrect([0.2 0.3 0.2 0.2]);r=gce();r.background=5;
swap_handles(p,r)

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


Re: [Scilab-users] Transparent rectangle?

2014-01-19 Thread Claus Futtrup

On 1/19/2014 21:31, Stefan Du Rietz wrote:

On 2014-01-19 21:28, Stefan Du Rietz wrote:


On 2014-01-19 21:15, Antoine Monmayrant wrote:



Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz
 a écrit:


Hi all,
is it possible to draw a filled coloured rectangle after lines so that
those lines can still be seen trough it?


Hi Stefan,

I am not sure what you are asking for:
- do you ask for transparency? (if yes, bad luck, no transparency
for the moment, but things could change, hein Calixte?)
- do you want to get the lines atop the rectangle? Why not plotting
them afterwards or rearrange the order later on.

If you can elaborate a bit more, we might get a better idea of what
you want to do.


Hi Antoine,
I understand that I could draw the lines after the coloured rectangle
to get them visible, but I cannot do that. So, I need the rectangle to
be transparent.


What do you mean by "rearrange the order"?
Pardon, but today you you print the line first. Later you print the 
rectangle (box). Since colors are solid, box color covers the line.


If you somehow can find a way to rearrange your source-code so that you 
print the box first, then later print the line, then line will be visible.


Alternatively if you print line, then print box, then print the line 
again - second line print will be visible through the box area.


/Claus




Stefan


Antoine



Regards
Stefan
___
users mailing list
users@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




---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com

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


Re: [Scilab-users] Transparent rectangle?

2014-01-19 Thread Stefan Du Rietz

On 2014-01-19 21:28, Stefan Du Rietz wrote:


On 2014-01-19 21:15, Antoine Monmayrant wrote:



Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz
 a écrit:


Hi all,
is it possible to draw a filled coloured rectangle after lines so that
those lines can still be seen trough it?


Hi Stefan,

I am not sure what you are asking for:
- do you ask for transparency? (if yes, bad luck, no transparency
for the moment, but things could change, hein Calixte?)
- do you want to get the lines atop the rectangle? Why not plotting
them afterwards or rearrange the order later on.

If you can elaborate a bit more, we might get a better idea of what
you want to do.


Hi Antoine,
I understand that I could draw the lines after the coloured rectangle
to get them visible, but I cannot do that. So, I need the rectangle to
be transparent.


What do you mean by "rearrange the order"?


Stefan


Antoine



Regards
Stefan
___
users mailing list
users@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] Transparent rectangle?

2014-01-19 Thread Stefan Du Rietz

On 2014-01-19 21:15, Antoine Monmayrant wrote:



Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz  a 
écrit:


Hi all,
is it possible to draw a filled coloured rectangle after lines so that
those lines can still be seen trough it?


Hi Stefan,

I am not sure what you are asking for:
- do you ask for transparency? (if yes, bad luck, no transparency for the 
moment, but things could change, hein Calixte?)
- do you want to get the lines atop the rectangle? Why not plotting them 
afterwards or rearrange the order later on.

If you can elaborate a bit more, we might get a better idea of what you want to 
do.


Hi Antoine,
I understand that I could draw the lines after the coloured rectangle 
to get them visible, but I cannot do that. So, I need the rectangle to 
be transparent.


Stefan


Antoine



Regards
Stefan
___
users mailing list
users@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] Transparent rectangle?

2014-01-19 Thread Antoine Monmayrant
 
Le Dimanche 19 Janvier 2014 20.12 CET, Stefan Du Rietz  a 
écrit: 
 
> Hi all,
> is it possible to draw a filled coloured rectangle after lines so that 
> those lines can still be seen trough it?

Hi Stefan,

I am not sure what you are asking for:
- do you ask for transparency? (if yes, bad luck, no transparency for the 
moment, but things could change, hein Calixte?)
- do you want to get the lines atop the rectangle? Why not plotting them 
afterwards or rearrange the order later on.

If you can elaborate a bit more, we might get a better idea of what you want to 
do.

Antoine

> 
> Regards
> Stefan
> ___
> users mailing list
> users@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] Transparent rectangle?

2014-01-19 Thread Stefan Du Rietz

Hi all,
is it possible to draw a filled coloured rectangle after lines so that 
those lines can still be seen trough it?


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