[ncl-talk] png without station lines, pdf with??
Barry Lynn
barry.h.lynn at gmail.com
Tue Feb 21 23:43:07 MST 2017
Hi Alan:
Thank you!
On Tue, Feb 21, 2017 at 11:24 PM, Alan Brammer <abrammer at albany.edu> wrote:
> Your output png is enormous. Zoom in and you’ll see the lines. They’re
> just very thin because they are resolution dependent on the png.
> In my experience line thickness is dependent on the output format. Lines
> on a pdf are rarely the same thickness as lines on a png.
>
> You’re plotting to a pretty enormous png so the lines are there but very
> very thin.
>
> mpres at mpGridLineThicknessF = 2.5
> mpres at mpUSStateLineThicknessF = 2.5
> mpres at mpNationalLineThicknessF =2.5
> mpres at mpGeophysicalLineThicknessF = 2.5
>
> Makes the geographical lines visible with a 7500*7500 resolution png. I’d
> question whether it really needs to be that big though.
> If you make the output a more reasonable resolution (wkWidth = 1500--2000)
> the lines become more noticeable or scale up your line thicknesses
> appropriately.
>
>
>
> ~Alan
>
>
>
>
> On Feb 20, 2017, at 7:43 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:
>
> 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 <(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/20170222/ee03bcce/attachment.html
More information about the ncl-talk
mailing list