<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks Guido,<br>
I don't know why, but it's not working in my script, the map is
still transparent.<br>
Modified script is attached.<br>
Cheers,<br>
Jatin<br>
<br>
<div class="moz-cite-prefix">On 22/02/2016 5:13 PM, Guido Cioni
wrote:<br>
</div>
<blockquote
cite="mid:8C7FC508-4BAC-4C41-92E4-70EA4DF86F8A@gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
Hi Jatin,
<div class="">did you try creating a new function that fill the
background of an annotated plot? </div>
<div class=""><br class="">
</div>
<div class="">
<div class=""><font class="" face="Menlo">function
fill_background(wks,plot,color)</font></div>
<div class=""><font class="" face="Menlo">local
xmin,xmax,ymin,yma,gres,xbox,ybox</font></div>
<div class=""><font class="" face="Menlo">begin</font></div>
<div class=""><font class="" face="Menlo"> getvalues plot</font></div>
<div class=""><font class="" face="Menlo"> "trXMinF" : xmin</font></div>
<div class=""><font class="" face="Menlo"> "trXMaxF" : xmax</font></div>
<div class=""><font class="" face="Menlo"> "trYMinF" : ymin</font></div>
<div class=""><font class="" face="Menlo"> "trYMaxF" : ymax</font></div>
<div class=""><font class="" face="Menlo"> end getvalues</font></div>
<div class=""><font class="" face="Menlo"><br class="">
</font></div>
<div class=""><font class="" face="Menlo"> xbox =
(/xmin,xmax,xmax,xmin,xmin/)</font></div>
<div class=""><font class="" face="Menlo"> ybox =
(/ymin,ymin,ymax,ymax,ymin/)</font></div>
<div class=""><font class="" face="Menlo"><br class="">
</font></div>
<div class=""><font class="" face="Menlo">;---Resources for
filling the polygon</font></div>
<div class=""><font class="" face="Menlo"> gres
= True</font></div>
<div class=""><font class="" face="Menlo"> gres@gsFillColor
= color</font></div>
<div class=""><font class="" face="Menlo"> gres@tfPolyDrawOrder
= "PreDraw" ; This is necessary so that the </font></div>
<div class=""><font class="" face="Menlo">
; fill doesn't cover the curves.</font></div>
<div class=""><font class="" face="Menlo"><br class="">
</font></div>
<div class=""><font class="" face="Menlo">;---Attach polygon to
existing plot and return</font></div>
<div class=""><font class="" face="Menlo"> dum =
gsn_add_polygon(wks,plot,xbox,ybox,gres)</font></div>
<div class=""><font class="" face="Menlo"> return(dum)</font></div>
<div class=""><font class="" face="Menlo">end</font></div>
<div class=""><br class="">
</div>
<div class="">Attached you find an example of an application
with pdf and NCL source file used to generate the plot. </div>
<div class="">Hope this helps.</div>
<div class=""><br class="">
</div>
<div class="">Cheers</div>
<div class=""><br class="">
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div class="">
<div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class=""><br
class="Apple-interchange-newline">
Guido Cioni</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;
font-size: 12px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; orphans: auto;
text-align: start; text-indent: 0px; text-transform: none;
white-space: normal; widows: auto; word-spacing: 0px;
-webkit-text-stroke-width: 0px;" class=""><a
moz-do-not-send="true"
href="http://guidocioni.altervista.org" class=""><a class="moz-txt-link-freetext" href="http://guidocioni.altervista.org">http://guidocioni.altervista.org</a></a> </div>
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 22 Feb 2016, at 06:51, Jatin Kala <<a
moz-do-not-send="true"
href="mailto:jatin.kala.jk@gmail.com" class=""><a class="moz-txt-link-abbreviated" href="mailto:jatin.kala.jk@gmail.com">jatin.kala.jk@gmail.com</a></a>>
wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hi,<br class="">
I am annotating a map on top of a contour plot. However,
the map is being plotted as transparent rather than with
white background.<br class="">
See attached, any suggestions on how to fix this? I've
tried a couple of things, none have worked so far.<br
class="">
Cheers,<br class="">
Jatin<br class="">
<span
id="cid:FA5F92B9-4015-42B5-B9E4-7DE3DCEF4052@mpi.zmaw.de"><plot_Trudy_precip.ncl></span><span
id="cid:41EDEE1C-79A3-44AF-A87E-F635DC868958@mpi.zmaw.de"><Trudy_precip_map.pdf></span>_______________________________________________<br
class="">
ncl-talk mailing list<br class="">
<a moz-do-not-send="true"
href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br
class="">
List instructions, subscriber options, unsubscribe:<br
class="">
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br
class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Dr. Jatin Kala
Lecturer in Atmospheric Science
Murdoch University,Perth, Western Australia
Tel: (+618) 9360 6297
<a class="moz-txt-link-freetext" href="http://www.jatinkala.com/">http://www.jatinkala.com/</a>
</pre>
</body>
</html>