<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m pretty sure that the problem relies in the difference between xy plot object and map object. The function that I gave you tries to fill the space between lines with the specified color. However, when map object is passed to the function, it is not able to find the lines so that it doesn’t fill the space between…but that’s just my guess.<div class=""><br class=""></div><div class="">Unfortunately now I can’t see your original plot attached, but have you tried playing around with the map resources so that land/ocean area are filled with color? (<font face="Menlo" class="">mpFillOn=True</font>) Is there a particular reason why are you using False?&nbsp;<br 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 href="http://guidocioni.altervista.org" class="">http://guidocioni.altervista.org</a>&nbsp;</div>

</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 22 Feb 2016, at 10:56, Jatin Kala &lt;<a href="mailto:jatin.kala.jk@gmail.com" class="">jatin.kala.jk@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class="">
  
    <meta content="text/html; charset=windows-1252" http-equiv="Content-Type" class="">
  
  <div bgcolor="#FFFFFF" text="#000000" class="">
    Thanks Guido,<br class="">
    I don't know why, but it's not working in my script, the map is
    still transparent.<br class="">
    Modified script is attached.<br class="">
    Cheers,<br class="">
    Jatin<br class="">
    <br class="">
    <div class="moz-cite-prefix">On 22/02/2016 5:13 PM, Guido Cioni
      wrote:<br class="">
    </div>
    <blockquote cite="mid:8C7FC508-4BAC-4C41-92E4-70EA4DF86F8A@gmail.com" type="cite" class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      Hi Jatin,
      <div class="">did you try creating a new function that fill the
        background of an annotated plot?&nbsp;</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">&nbsp; getvalues plot</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; &nbsp; "trXMinF" &nbsp;: xmin</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; &nbsp; "trXMaxF" &nbsp;: xmax</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; &nbsp; "trYMinF" &nbsp;: ymin</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; &nbsp; "trYMaxF" &nbsp;: ymax</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; end getvalues</font></div>
        <div class=""><font class="" face="Menlo"><br class="">
          </font></div>
        <div class=""><font class="" face="Menlo">&nbsp; xbox =
            (/xmin,xmax,xmax,xmin,xmin/)</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; 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">&nbsp; gres &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            = True</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; gres@gsFillColor &nbsp; &nbsp;
            = color</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; gres@tfPolyDrawOrder
            = "PreDraw" &nbsp; &nbsp;; This is necessary so that the&nbsp;</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
            &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ; 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">&nbsp; dum =
            gsn_add_polygon(wks,plot,xbox,ybox,gres)</font></div>
        <div class=""><font class="" face="Menlo">&nbsp; 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.&nbsp;</div>
        <div class="">Hope this helps.</div>
        <div class=""><br class="">
        </div>
        <div class="">Cheers</div>
        <div class=""><br class="">
        </div>
      </div>
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      <br class="">
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br class="">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252" class="">
      <div class="">
        <div class="">
          <div style="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="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><a class="moz-txt-link-freetext" href="http://guidocioni.altervista.org/">http://guidocioni.altervista.org</a>&nbsp;</div>
        </div>
        <br class="">
        <div class="">
          <blockquote type="cite" class="">
            <div class="">On 22 Feb 2016, at 06:51, Jatin Kala &lt;<a moz-do-not-send="true" href="mailto:jatin.kala.jk@gmail.com" class=""></a><a class="moz-txt-link-abbreviated" href="mailto:jatin.kala.jk@gmail.com">jatin.kala.jk@gmail.com</a>&gt;
              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" class="">&lt;plot_Trudy_precip.ncl&gt;</span><span id="cid:41EDEE1C-79A3-44AF-A87E-F635DC868958@mpi.zmaw.de" class="">&lt;Trudy_precip_map.pdf&gt;</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 class="">
    <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>
  </div>

<span id="cid:87183F96-E3E2-48A7-9098-38BD2CD18141@mpi.zmaw.de">&lt;plot_Trudy_precip.ncl&gt;</span></div></blockquote></div><br class=""></div></body></html>