On Sat, Nov 19, 2011 at 1:12 PM, Joe Moore <span dir="ltr">&lt;<a href="mailto:joe@wxjoe.com">joe@wxjoe.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello!<br><br>Can you provide the code you are trying to use? I&#39;m having trouble understanding exactly what you mean.<br><br>Overlaying two shaded displays will result in the first being covered by the second unless you specify to only shade certain values of the second. While it is possible to set a shaded value to transparent using the latest GrADS version (use <span style="font-family:courier new,monospace">set gxout shade2</span> and set the color to -1 to be transparent), it is not possible (not my knowledge) to do any kind of partial transparency. <br>
<font color="#888888">

<br></font></blockquote><div><br></div><div>Yes, youn can, with the the &quot;set_rgba&quot; command in opengrads. It works just like &quot;set rgb&quot; but in addition to the red/green/blue values you specify an &quot;alpha&quot; value that controls the opacity of that color, see below. The caveat is that you do not see the transparency on the screen, only when you create the output with gxyat (png, svg, pdf or ps). (When Grads 2.1 is released I believe we will be able to extend this feature to screen output as well.)</div>
<div><br></div><div>    Arlindo</div><div><br></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><b>NAME</b></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     set_rgba - define color including alpha channel</font></div><div><br></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><b>SYNOPSIS</b></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     set_rgba color red green blue alpha [mask]</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><b>DESCRIPTION</b></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     This User Defined Command (UDC) defines *color* given its</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     RGB triplet along with its *alpha* channel.</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     color   integer in the range [16-255]</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     red, </font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     green,</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     blue    integers in the range [0-255]</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">     alpha   float, with alpha ranging from 0.0 (fully transparent)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">             to 1.0 (fully opaque).</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    The optional parameter *mask* determines whether the color below</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    it is visible or not.</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    mask=0  --- if alpha&lt;1, *color* will be semi-transparent and the</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">                colors below it will be visible (default)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    mask=1  --- if alpha&lt;1, *color* will be semi-transparent but the</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">                colors below it will *not* be visible </font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br>
</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><b>EXAMPLE</b></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    In order to emulate the -t option in printim </font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">       ga-&gt; set rgb 60 125 125 125</font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace">       ga-&gt; printim img.png -t 60</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">       Specify alpha=0 and mask=1</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">       ga-&gt; set_rgba 60 125 125 125 0 1</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">       ga-&gt; gxyat img.png</font></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888">-Joe</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Nov 19, 2011 at 3:21 AM, Cuba <span dir="ltr">&lt;<a href="mailto:jakubguzikowski@o2.pl" target="_blank">jakubguzikowski@o2.pl</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hellow Gradsuser,<br>
I try make two gxout shaded value in one plot, but this not go.<br>
I know as make shaded value and countur in one plot, but in this time i needs two shaded value.<br>
Please for help.<br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>