[ncl-talk] NCL plot: Three output files

Rick Brownrigg brownrig at ucar.edu
Wed Jun 5 09:53:02 MDT 2019


Hi Lara,

Do you have these resources set:

  res at gsnDraw = False
  res at gsnFrame = False

These are True by default; setting them to False prevents the plots from
being drawn immediately, allowing one to then call the overlay procedure,
and then explicitly draw and frame.

Rick

On Wed, Jun 5, 2019 at 9:20 AM Lara Quitián Hernández <
laraquitianhernandez at gmail.com> wrote:

> Good afternoon,
>
> When I use the overlay function:
>
>
>
>
>
>
> *plot = gsn_csm_contour_map(wks,eth,res)         ; create a default
> plotplot2 = gsn_csm_contour(wks,slp,slp_res)         ; create a default
> plot  overlay(plot,plot2)                       ; overlay the slp plot on
> the eth plot  draw(plot)                                    frame(wks)*
>
> I obtain three different files:
>
> *ETH2-slp_Ophelia1_66.000001.png*
>
> *ETH2-slp_Ophelia1_66.000002.png*
>
> *ETH2-slp_Ophelia1_66.000003.png*
>
> What should I do to avoid that? I only need the last one (the overlay of
> the 1st and 2nd plot).
> I have tried to comment the draw() and frame() function, but it doesn't
> work.
>
> Thanks in advance.
>
> Regards,
> Lara
> --
>
>
> *Lara Quitián Hernández, PhD Student*
> Department of Earth Physics and Astrophysics
> Faculty of Physical Sciences
> Ciudad Universitaria, Plaza Ciencias, 1
> 28040 Madrid. Spain
> Email: lquitian at ucm.es <mlunar at aemet.es>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190605/5b194739/attachment.html>


More information about the ncl-talk mailing list