<div dir="ltr"><div>Tabish, I am glad that you got it working.  The default text function code was changed from <b>":"</b> to <b>"~"</b> in recent versions of NCL, and it looks like you are using the new default.  The cited example set the older text function code explicitly:  <b>txres@txFuncCode = ":"</b></div><div><br></div><div>I recommend <b>~F34~1~F~</b> rather than <b>~F34~1~F21~</b> so that the left and right sides of your output string will use exactly the same font.  If you like your current version, then of course keep it the way it is now.<br></div><div dir="ltr"><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Sep 2, 2025 at 7:37 AM Tabish Ansari <<a href="mailto:tabishumaransari@gmail.com">tabishumaransari@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div style="font-family:"trebuchet ms",sans-serif">Dear Ehsan and Dave,</div><div style="font-family:"trebuchet ms",sans-serif"><br></div><div style="font-family:"trebuchet ms",sans-serif">Many thanks for your replies. I managed to get the desired output by using "~F34~1~F21~" inside the string.</div><div style="font-family:"trebuchet ms",sans-serif"><br></div><div style="font-family:"trebuchet ms",sans-serif">best regards,</div><div style="font-family:"trebuchet ms",sans-serif">Tabish</div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 1 Sept 2025 at 22:14, Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Tabish, NCL uses font tables for special symbols.</div><div><a href="https://www.ncl.ucar.edu/Document/Graphics/font_tables.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Graphics/font_tables.shtml</a><br></div><div><br></div><div>There are two different plus/minus signs in the math symbol tables.  I did not look in the other tables.  Symbols are added to plot strings with the documented encoding method.  Try this NCL example.  Change one line as follows, to show the two different plus/minus symbols.</div><div><a href="https://www.ncl.ucar.edu/Applications/Scripts/eqn_5.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/eqn_5.ncl</a></div><div><br></div><div>eqn2 = "Table 18 selector 'S' is :F18:S:F: symbol:C:" \<br>         + "Table 34 selector '1' is :F34:1:F: symbol"<br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 1, 2025 at 11:04 AM Tabish Ansari via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div style="font-family:"trebuchet ms",sans-serif">Dear NCL folks,</div><div style="font-family:"trebuchet ms",sans-serif"><br></div><div style="font-family:"trebuchet ms",sans-serif">I'm posting here after a long time, partly because I've gotten better at using NCL over the years and partly because nowadays the AI LLMs are able to answer most of my queries on NCL and solve the errors. However, I finally have a question at which all the LLMs failed: How do I print the +- sign (+ on top of -) in an NCL plot? What's the appropriate function code to use inside the string?</div><div style="font-family:"trebuchet ms",sans-serif"><br></div><div style="font-family:"trebuchet ms",sans-serif">Thank you very much in advance!</div><div style="font-family:"trebuchet ms",sans-serif"><br></div><div style="font-family:"trebuchet ms",sans-serif">best regards,</div><div style="font-family:"trebuchet ms",sans-serif">Tabish</div></div><div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><font face="trebuchet ms, sans-serif" color="#666666">--------------------------------------------------------------------------------------<br><span style="background-color:rgb(255,255,255)">Dr Tabish Ansari</span></font></div><div><font face="trebuchet ms, sans-serif" color="#666666">Research Associate </font></div><div><font face="trebuchet ms, sans-serif" color="#666666">Air Quality Modelling Group</font></div><div><span style="background-color:rgb(255,255,255)"><span style="font-weight:normal"><font face="trebuchet ms, sans-serif" color="#666666">Research Institute for Sustainability (RIFS) - Helmholtz Centre Potsdam </font></span></span></div><div><font face="trebuchet ms, sans-serif" color="#666666">Potsdam, Germany</font></div></div></div></div></div>
</blockquote></div>
</div>
</div>
</div>
</div>
</blockquote></div>
</blockquote></div></div>