[ncl-talk] png without station lines, pdf with??

Barry Lynn barry.h.lynn at gmail.com
Mon Feb 20 05:43:16 MST 2017


Hi:

I appreciate the suggestion.

I removed the call "frame (wks)," but the map looks the same. When writing
png output, the state lines disappear, and the box is hard to see...

Barry

On Mon, Feb 20, 2017 at 5:22 AM, Rick Brownrigg <brownrig at ucar.edu> wrote:

> Hi Barry,
>
> I'm not really sure what is going on here, but one thing that stands out
> is the call to "frame(wks)" at the end of your script. Normally, that is
> not necessary unless the resources gsnDraw and gsnFrame are set to False
> (their defaults are True).  As you likely know, its a language idiom to set
> these two resources to False when wanting to overlay additional graphics on
> top of a plot, and then after all drawing functions have been called, one
> performs this little idiom:
>
>     ....
>     draw(plot)
>     frame(wks)
>
> Which draws the plot and all overlays and advances the "frame"
> (page/next-image/etc).
>
> Pure speculation on my part, but perhaps the explicit call to frame(wks)
> when gsnFrame is already True is the issue (it shouldn't be, but...).
> Maybe try removing this call?  Or add a call to "draw(mp)" just before the
> "frame(wks)".
>
> Rick
>
>
>
> On Sun, Feb 19, 2017 at 12:07 AM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> Hi:
>>
>> When I plot the namelist.wps as a pdf the station lines appear. When I
>> plot it as a png, they disappear.
>>
>> Is there a simple fix for this?
>>
>> Thanks
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> US 914 432 3108 <(914)%20432-3108>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>


-- 
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170220/015e1cff/attachment.html 


More information about the ncl-talk mailing list