On Sat, Nov 19, 2011 at 1:12 PM, Joe Moore <span dir="ltr"><<a href="mailto:joe@wxjoe.com">joe@wxjoe.com</a>></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'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 "set_rgba" command in opengrads. It works just like "set rgb" but in addition to the red/green/blue values you specify an "alpha" 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="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><b>NAME</b></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> set_rgba - define color including alpha channel</font></div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace"><b>SYNOPSIS</b></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> set_rgba color red green blue alpha [mask]</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><b>DESCRIPTION</b></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> This User Defined Command (UDC) defines *color* given its</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> RGB triplet along with its *alpha* channel.</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> color integer in the range [16-255]</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> red, </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> green,</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> blue integers in the range [0-255]</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> alpha float, with alpha ranging from 0.0 (fully transparent)</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> to 1.0 (fully opaque).</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> The optional parameter *mask* determines whether the color below</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> it is visible or not.</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> mask=0 --- if alpha<1, *color* will be semi-transparent and the</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> colors below it will be visible (default)</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> mask=1 --- if alpha<1, *color* will be semi-transparent but the</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> colors below it will *not* be visible </font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><b>EXAMPLE</b></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> In order to emulate the -t option in printim </font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> ga-> set rgb 60 125 125 125</font></div><div>
<font class="Apple-style-span" face="'courier new', monospace"> ga-> printim img.png -t 60</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> Specify alpha=0 and mask=1</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> ga-> set_rgba 60 125 125 125 0 1</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> ga-> 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"><<a href="mailto:jakubguzikowski@o2.pl" target="_blank">jakubguzikowski@o2.pl</a>></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>