[Scilab-users] GIF with transparent color

2013-11-04 Thread SCHULZ Wolfgang
Hello,
I'm creating contour plots and it would be nice to have certain regions 
(colors) of a GIF file transparent. Is that possible with SCILAB?
Thanks in advance.
Best regards
Wolfgang
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] GIF with transparent color

2013-11-04 Thread Dang, Christophe
Hello, 

-Message d'origine-
De : SCHULZ Wolfgang
Envoyé : lundi 4 novembre 2013 17:02

> it would be nice to have certain regions (colors) of a GIF file 
> transparent. Is that possible with SCILAB?

You've got a filled or fill_mode attribute for every object.

You should set it to "off" for given objects.

See for example
http://help.scilab.org/docs/5.4.1/en_US/axes_properties.html

Hope this helps.

-- 
Christophe Dang Ngoc Chan
Mechanical calculation engineer

__

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error), please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
__
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] GIF with transparent color

2013-11-04 Thread Samuel Gougeon

Le 04/11/2013 17:01, SCHULZ Wolfgang a écrit :

Hello,
I'm creating contour plots and it would be nice to have certain regions 
(colors) of a GIF file transparent. Is that possible with SCILAB?
I am afraid that not, not directly. May be post-processing an export 
through Java from Scilab? Java has so many libraries...
You may post a wish on bugzilla. PNG format may also support a 
transparent color.


Samuel

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


Re: [Scilab-users] GIF with transparent color

2013-11-05 Thread Antoine Monmayrant

On 11/04/2013 05:01 PM, SCHULZ Wolfgang wrote:

Hello,
I'm creating contour plots and it would be nice to have certain regions 
(colors) of a GIF file transparent. Is that possible with SCILAB?
Thanks in advance.
Best regards
Wolfgang
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Hi Wolfgang,

I don't have a solution, but might propose a workaround: why don't you 
replace a certain range of values (those that you want transparent) by %nan?

If I remember correctly, this should open a hole in the filled contour plot.

Hope it helps,

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


Re: [Scilab-users] GIF with transparent color

2013-11-05 Thread Samuel Gougeon

Le 04/11/2013 17:01, SCHULZ Wolfgang a écrit :

Hello,
I'm creating contour plots and it would be nice to have certain regions 
(colors) of a GIF file transparent.
By the way, as far as i know, GIF and PNG allow to define only /one/ 
transparent color.
So, if you want several regions of distinct colors of the same plot 
being transparent,
PNG and GIF would not allow that. I don't know any other common image 
formats

able to do that.
If you are looking for transparency of the foreground in order to see 
the figure's background
instead of the image's one, tricks given by Christophe and Antoine will 
certainly work.


In the end, you may have a look at /help pixel_drawing_mode/ . This 
feature for instance

used to help plotting stacked objects without hidding stacked parts.
But Scilab 5.4 has killed it : 
http://bugzilla.scilab.org/show_bug.cgi?id=12017


Best regards
Samuel

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