<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Aha!<br>
    That was it, problem fixed by setting mpFillOn to True.<br>
    =)<br>
    Thanks for your help, i think the mpFillOn = False, came from one of
    the examples i copied from maps-only examples, which is fine for the
    map on it's own, but not when annotating to another plot.<br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 22/02/2016 6:14 PM, Guido Cioni
      wrote:<br>
    </div>
    <blockquote
      cite="mid:C35FA7A4-7495-4D4D-B7EC-B41AB727DE62@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      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
          class="" face="Menlo">mpFillOn=True</font>) Is there a
        particular reason why are you using False? <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
              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 10:56, Jatin Kala &lt;<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>&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? </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 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"
                          class="moz-txt-link-freetext"
                          href="http://guidocioni.altervista.org/"><a class="moz-txt-link-freetext" href="http://guidocioni.altervista.org">http://guidocioni.altervista.org</a></a> </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"
                            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 moz-do-not-send="true"
                              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 moz-do-not-send="true" 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>
    </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>