[ncl-talk] Animate overlay plot

Buzan, Jonathan jbuzan at purdue.edu
Mon Apr 12 10:10:58 MDT 2021


Thanks Adam,

I will try this!

Cheers,
-Jonathan



On Apr 12, 2021, at 6:06 PM, Adam Phillips <asphilli at ucar.edu<mailto:asphilli at ucar.edu>> wrote:

Hi Jonathan,
I am guessing that this is a draw/frame issue. Make sure that when you create the plot to be overlaid, that gsnDraw/gsnFrame are set to False. A skinny outline would look like this:

res = True
res at gsnDraw = False
res at gsnFrame = False
....
plot(0) = gsn_csm_contour_map(wks,....,res) ; create ANN correlation plot
plot(1) = gsn_csm_contour_map(wks,....,res) ; create DJF correlation plot
plot(2) = gsn_csm_contour_map(wks,....,res) ; create JJA correlation plot
...
cres = True
cres at gsnDraw = False
cres at gsnFrame = False
oplot = gsn_csm_contour(wks,...cres)
overlay(plot(0),oplot) ; note that if you want to add the overlay to each plot, you will have to create three oplots

panres = True
panres at gsnPanelRowSpec = True
...
gsn_panel(wks,plot,(/1,2/),panres)

If the above does not help, please include the graphics portion of your script in your reply.
Adam


On Mon, Apr 12, 2021 at 9:12 AM Buzan, Jonathan via ncl-talk <ncl-talk at mailman.ucar.edu<mailto:ncl-talk at mailman.ucar.edu>> wrote:
Hi NCL-Talk,

I am attempting to make an animation.

My image consists of a figure that has an overlay. When I produce the file, there are 2 images. The overlay and the original plot. But, to animate I need single slide of the combined image. Is there a way to remove the excess images in ncl to save only the panel?

Example below:

Cheers,
-Jonathan


<Screen Shot 2021-04-12 at 5.04.21 PM.png>

<Screen Shot 2021-04-12 at 5.04.39 PM.png>


_______________________________________________
ncl-talk mailing list
ncl-talk at mailman.ucar.edu<mailto:ncl-talk at mailman.ucar.edu>
List instructions, subscriber options, unsubscribe:
https://mailman.ucar.edu/mailman/listinfo/ncl-talk


--
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/<http://www.cgd.ucar.edu/staff/asphilli/>   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20210412/54499226/attachment.html>


More information about the ncl-talk mailing list