[ncl-talk] Polyline not displaying
Kacie Shourd
Kacie.Shourd at dri.edu
Thu Feb 23 12:54:38 MST 2017
Ok, so I added a couple of lines to your script (new version attached; with comments so you can easily identify new lines):
radres at gsnFrame = False
added to your plot resources, and then
frame(wks)
after adding the polyline on top of your plot (I also changed "PreDraw" to "PostDraw" so that the line goes on top of your contours).
Let me know if this works! If not, we can similarly add "gsnDraw = False" and "draw(plot)" where needed, but I think the changes made should do the trick.
Best,
Kacie
________________________________
From: Ryan Connelly [rconne01 at gmail.com]
Sent: Thursday, February 23, 2017 11:38 AM
To: Kacie Shourd
Cc: ncl-talk
Subject: Re: [ncl-talk] Polyline not displaying
Hey Kacie,
Yup, tried that. That was my first thought.
Here's the whole script (attached), if it helps.
Thanks,
Ryan
On Thu, Feb 23, 2017 at 2:35 PM, Kacie Shourd <Kacie.Shourd at dri.edu<mailto:Kacie.Shourd at dri.edu>> wrote:
Hiya Ryan,
Have you tried changing
gres at cnLineDrawOrder = "PreDraw"
to
gres at cnLineDrawOrder = "PostDraw"
??
Without seeing more of your script or your output that's all I can suggest!
Best,
Kacie
---
Kacie N. Shourd
드림
Graduate Research Assistant
Desert Research Institute
Kacie.Shourd at dri.edu<mailto:Kacie.Shourd at dri.edu>
Work: (775) 674-7049<tel:(775)%20674-7049>
________________________________
From: ncl-talk-bounces at ucar.edu<mailto:ncl-talk-bounces at ucar.edu> [ncl-talk-bounces at ucar.edu<mailto:ncl-talk-bounces at ucar.edu>] on behalf of Ryan Connelly [rconne01 at gmail.com<mailto:rconne01 at gmail.com>]
Sent: Thursday, February 23, 2017 11:31 AM
To: ncl-talk
Subject: [ncl-talk] Polyline not displaying
Hi,
I added this small section to the bottom of a script:
plot = gsn_csm_contour_map(wks,rd_plane,radres)
; Construct a polyline to show cross-section location
gres = True
gres at gsFillColor = "black"
gres at cnLineDrawOrder = "PreDraw"
gres at gsLineThicknessF = 5.0
lat = (/44.4, 42.9/)
lon = (/-71.3, -69.3/)
dum = gsn_add_polyline(wks,plot,lon,lat,gres)
draw(plot)
But can't seem to get the line to appear. Can anyone tell me what I'm doing wrong?
Thanks,
Ryan
--
Ryan Connelly
M.S. Student in Atmospheric Sciences, Stony Brook University
B.S. in Meteorology with Minors in Mathematics and GIS, Valparaiso University
rconne01 at gmail.com<mailto:rconne01 at gmail.com>
ryan.connelly at stonybrook.edu<mailto:ryan.connelly at stonybrook.edu>
PUBLIC RECORDS NOTICE: In accordance with NRS Chapter 239, this email and responses, unless otherwise made confidential by law, may be subject to the Nevada Public Records laws and may be disclosed to the public upon request.
--
Ryan Connelly
M.S. Student in Atmospheric Sciences, Stony Brook University
B.S. in Meteorology with Minors in Mathematics and GIS, Valparaiso University
rconne01 at gmail.com<mailto:rconne01 at gmail.com>
ryan.connelly at stonybrook.edu<mailto:ryan.connelly at stonybrook.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170223/3459db7a/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: radar_KGYX_KNSedit.ncl
Type: application/octet-stream
Size: 5596 bytes
Desc: radar_KGYX_KNSedit.ncl
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170223/3459db7a/attachment.obj
More information about the ncl-talk
mailing list