[ncl-talk] Faint appearance of .png files

Adam Phillips asphilli at ucar.edu
Mon May 4 13:04:07 MDT 2020


Hi Anne,
I think you are referring to two different issues.
1) It looks to me like you are using the old NCL default font (times-roman,
skinny text), and what you want to be using is helvetica. You can change
your font to helvetica by setting your .hluresfile as documented beneath
the font table here:
https://www.ncl.ucar.edu/Document/Graphics/font_tables.shtml

2) You are correct that outputting directly to a png results in lines being
a bit thinner (~75% as thin) as opposed to if you output directly to
.ps/.eps. For day to day work, I output directly to png. For figures that
might go into a paper, I typically output to .eps directly, and then create
a png file using convert (Image Magik). That way I know that the png (for
submission) and eps (for publication) versions look the same.
Example:
wks = gsn_open_wks("eps","figure1")
; create plot
delete(wks)
system("convert -density 144 -trim +repage -background white -border 10
-bordercolor white figure1.eps figure1.png")
end
You can alter numerous line thickness resources, but I find the above
process easier.
Hope that helps!
Adam




On Mon, May 4, 2020 at 10:52 AM Anne via ncl-talk <ncl-talk at ucar.edu> wrote:

> Hello,
>
> I am trying to get some nice graphics for a publication, which in the end
> I will save in .ps format, but for the moment I need them in .png format. I
> noticed my .png graphics tend to appear rather faint (see example
> attached). I know I can play around with wks_type at wkHeight
> and wks_type at wkWidth but I noticed that increasing these values makes
> them even more faint, or having a bad picture quality when using low
> values.
>
> I there some universal resource that I missed which makes the perimeter,
> the title, the labels etc just a hint thicker and clearer?
>
> Thanks for any hint!
> Anne
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



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

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200504/236e9232/attachment.html>


More information about the ncl-talk mailing list