<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Rebecca,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Unfortunately there's no easy way to get a specific point size of text in NCL. This has been on our "to do" list for awhile, but it is not a trivial feature to implement.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Since I don't have experience with this, I'm CC ncl-talk to see if anybody out there has gotten creative with getting a specific point size of text on their NCL figures. I know some people have simply not drawn any text using NCL, and instead use some post-processing program like Adobe Illustrator to add their own text at a specific font. You could even use PowerPoint to do something like this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As for the PNG to PDF, I would recommend using "convert" with the "-trim" option to post process the PNG or PDF images and trim off the white space. Please see our FAQ question on this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/FAQ/#o_formats_003">http://www.ncl.ucar.edu/FAQ/#o_formats_003</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 3, 2017 at 9:24 AM, Matichuk, Rebecca <span dir="ltr"><<a href="mailto:Matichuk.Rebecca@epa.gov" target="_blank">Matichuk.Rebecca@epa.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US">
<div class="gmail-m_1617197279217162312WordSection1">
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Hi Mary,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">You have helped me with NCL issues in the past so I thought I’d reach out to you again. I’m having issues with asking/sending questions through
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>. I’ve received auto-generated emails stating that I cannot contribute to this list and “bounce” responses. Could you help me figure out why because I’m needing some help generating some figures. I’ve
outlined my questions below in case you can help me in the meantime.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Thanks so much!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Rebecca<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="gmail-m_1617197279217162312MsoListParagraph"><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif"><span>1.<span style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">
</span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif">I’m generating figures for an academic journal and one of the requirements is for the font size to be 8 points. What is the equivalent to 8 points in NCL?<u></u><u></u></span></p>
<p class="gmail-m_1617197279217162312MsoListParagraph"><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif"><span>2.<span style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">
</span></span></span><u></u><span style="font-size:11pt;font-family:Calibri,sans-serif">I’m also having problems converting my original png files to pdfs, where I had a lot of white space around the single and panel figures. I’ve been working with the
following resources, but it’s been a challenge. Any suggestions to make the conversion easier?<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif">
<u></u><u></u></span></p>
<p class="MsoNormal" style="margin-left:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> wks_type = "pdf"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> wks_type@wkPaperSize = "landscape"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> wks1 = gsn_open_wks(wks_type, plot_name)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> gsn_define_colormap(wks1, "gui_default")<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> plot = new(nplot,graphic)<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> plot_overlay = new(nplot,graphic)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res = True ; plot mods desired<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res@gsnDraw = False<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res@gsnFrame = False<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res@gsnMaximize = True<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res@gsnPaperOrientation = "landscape"<u></u><u></u></span></p>
<p class="MsoNormal" style="text-indent:0.25in"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res@gsnPaperMargin = 0.07<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> resB = True<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> resB@<wbr>gsnPanelFigureStringsFontHeigh<wbr>tF = 0.010<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> resB@gsnPanelFigureStrings = site_name<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> resB@gsnPanelYF = (/0.83,0.83,-1,-1/) ;tr,br,tl,bl<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> resB@gsnPanelXF = (/0.06,0.55,0.06,0.55/)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> resB@amJust = "TopLeft"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res@vpWidthF = 14.0 ; plot size (width)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res@vpHeightF = 10.74 ; plot size (height)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">; res@vpXF = 0.02 ; location of plot(0)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"> res@vpYF = 0.88 ; location of plot(0)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">Rebecca<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><a href="tel:(303)%20312-6867" value="+13033126867" target="_blank">303-312-6867</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11pt;font-family:Calibri,sans-serif">From:</span></b><span style="font-size:11pt;font-family:Calibri,sans-serif"> Mary Haley [mailto:<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>]
<br>
<b>Sent:</b> Wednesday, February 22, 2017 10:09 AM<br>
<b>To:</b> Matichuk, Rebecca <<a href="mailto:Matichuk.Rebecca@epa.gov" target="_blank">Matichuk.Rebecca@epa.gov</a>><br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> Re: FW: Legend to draw on top of grid lines<u></u><u></u></span></p><div><div class="gmail-h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">In order to post a question to ncl-talk, you must first subscribe to it.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Please see this page to subscribe:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Once you subscribe, you should receive an automated email right away that you need to respond to in order for the subscription to go through. If you don't receive this automated email, then please check your spam box. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Once you respond to the automated email, you should be able to send your question again to
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In order to get the leg_10 plot to work in a panel, I would use the powerful "overlay" call to make one plot a part of the other. That way, when you draw the base plot, you will get both plots.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">See the (hurriedly) created leg_10.ncl example that now does a panel. I didn't have time to come up with "nice" looking dummy Y curves, so I just changed a few values to get something out quickly.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">You may also want to look at the "simple_legend" function which is mentioned on the same page. It should be much easier to create a legend with this function.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">--Mary<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Feb 21, 2017 at 12:41 PM, Matichuk, Rebecca <<a href="mailto:Matichuk.Rebecca@epa.gov" target="_blank">Matichuk.Rebecca@epa.gov</a>> wrote:<u></u><u></u></p>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Hi,<br>
<br>
I received the email below stating that my email to the NCL help emailing list has been rejected. I'm not sure why, but would you be able to help me?<br>
<br>
Thanks,<br>
Rebecca<br>
<a href="tel:303-312-6867" target="_blank">303-312-6867</a><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [mailto:<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.<wbr>edu</a>] On Behalf Of
<a href="mailto:ncl-talk-owner@ucar.edu" target="_blank">ncl-talk-owner@ucar.edu</a><br>
Sent: Tuesday, February 21, 2017 6:45 AM<br>
To: Matichuk, Rebecca <<a href="mailto:Matichuk.Rebecca@epa.gov" target="_blank">Matichuk.Rebecca@epa.gov</a>><br>
Subject: Legend to draw on top of grid lines<br>
<br>
You are not allowed to post to this mailing list, and your message has been automatically rejected. If you think that your messages are being rejected in error, contact the mailing list owner at
<a href="mailto:ncl-talk-owner@ucar.edu" target="_blank">ncl-talk-owner@ucar.edu</a>.<br>
<br>
==============================<wbr>=======<br>
<br>
Hi,<br>
<br>
I'm trying to generate a panel plot where the legends are not transparent and on top of grid lines. I found this example at the link included below. However, it is for a single figure and I cannot get it to work for the panel plotting. By trying to following
the NCL example, my legends just disappear. What should I alter in this example from the NCL website to get it to work for a panel plot that:<br>
1. NCL version: 6.2.1<br>
2. 2x3 panel<br>
3. Uses plot(iplot) = gsn_csm_xy(wks1,xplot,yplot,<wbr>res)<br>
4. Uses gsn_panel(wks1,plot,(/row_<wbr>plot,col_plot/),resB)<br>
5. GNU/Linux system<br>
<br>
<a href="https://www.ncl.ucar.edu/Applications/Scripts/leg_10.ncl" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/Scripts/leg_10.<wbr>ncl</a><br>
<br>
Thank you,<br>
Rebecca<br>
<br>
<br>
---------- Forwarded message ----------<br>
From: "Matichuk, Rebecca" <<a href="mailto:Matichuk.Rebecca@epa.gov" target="_blank">Matichuk.Rebecca@epa.gov</a>><br>
To: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Cc: <br>
Date: Tue, 21 Feb 2017 13:45:18 +0000<br>
Subject: Legend to draw on top of grid lines<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi,<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I’m trying to generate a panel plot where the legends are not transparent and on top of grid lines. I found this example at the link included below. However, it is for a single
figure and I cannot get it to work for the panel plotting. By trying to following the NCL example, my legends just disappear. What should I alter in this example from the NCL website to get it to work for a panel plot that:<u></u><u></u></p>
<p class="gmail-m_1617197279217162312m2852992729275848863msolistparagraph">1.<span style="font-size:7pt">
</span>NCL version: 6.2.1<u></u><u></u></p>
<p class="gmail-m_1617197279217162312m2852992729275848863msolistparagraph">2.<span style="font-size:7pt">
</span>2x3 panel<u></u><u></u></p>
<p class="gmail-m_1617197279217162312m2852992729275848863msolistparagraph">3.<span style="font-size:7pt">
</span>Uses plot(iplot) = gsn_csm_xy(wks1,xplot,yplot,<wbr>res)<u></u><u></u></p>
<p class="gmail-m_1617197279217162312m2852992729275848863msolistparagraph">4.<span style="font-size:7pt">
</span>Uses gsn_panel(wks1,plot,(/row_<wbr>plot,col_plot/),resB)<u></u><u></u></p>
<p class="gmail-m_1617197279217162312m2852992729275848863msolistparagraph">5.<span style="font-size:7pt">
</span>GNU/Linux system<u></u><u></u></p>
<p class="gmail-m_1617197279217162312m2852992729275848863msolistparagraph"> <u></u><u></u></p>
<p class="MsoNormal"><a href="https://www.ncl.ucar.edu/Applications/Scripts/leg_10.ncl" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/Scripts/leg_10.<wbr>ncl</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Thank you,<u></u><u></u></p>
<p class="MsoNormal">Rebecca<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
</blockquote></div><br></div></div>