[ncl-talk] NCL plot: Three output files

Lara Quitián Hernández laraquitianhernandez at gmail.com
Thu Jun 6 02:21:15 MDT 2019


Hello Rick,

Thank you very much!

I have tried to set those resources to False, but it still generates two
images: one with only the contour plot and the other one with the correct
figure (contour over the shaded field).

Best regards,
Lara



El mié., 5 jun. 2019 a las 17:53, Rick Brownrigg (<brownrig at ucar.edu>)
escribió:

> 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
>>
>

-- 


*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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190606/30a536ca/attachment.html>


More information about the ncl-talk mailing list