<div dir="ltr">Hi Tao,<div>1 - Dennis is correct. The Y-axis is hard coded for normalized standard deviations. You can pass in whatever values you want to the taylor_diagram function, but the Y-axis will stay the same. You can alter this in the function code, but, you will also have to alter the coding for the drawing of the concentric rings, and that might be difficult. </div><div>2 - You cannot precisely positionally set the ring labels using the method I detailed. If you want to exactly specify where the labels appear, you would abandon the approach I recommended (with modifying the respl resource list) and instead add 4 new gsn_add_text calls (one for each green ring). As to why the 0.25 label does not appear: I am guessing that your value of gsLineDashSegLenF is too large. If you set that resource to a smaller value I would gather that the 0.25 label will appear, but also additional labels will appear on the other rings. You can alter the setting of this resource for each iteration of the do loop (similar to how you are altering the setting of gsLineLabelString). </div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 4, 2023 at 12:30 PM Tao Zhang <<a href="mailto:tao.zhang@colorado.edu">tao.zhang@colorado.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>Hi Adam,</div>
<div><br>
</div>
<div> Thanks for your great recommendations.</div>
<div><br>
</div>
<div> 1) Dennis Shea mentioned that the
Taylor diagram listed in NCL website is hard-coded for normalized
standard deviation, not for standard deviation</div>
<div> as shown in previous link I provided,
right?</div>
<div><br>
</div>
<div> 2) How to remove the "0.75" "1" labels
close to correlation value? I just want to keep one. Is possible
to</div>
<div> add "0.25"? see attached plot.</div>
<div><br>
</div>
<div> Thanks</div>
<div> Tao<br>
</div>
<div> <br>
</div>
<div><br>
</div>
<div>On 4/3/23 4:01 PM, Adam Phillips wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Tao,
<div>I believe you corresponded with someone offline about this.
I have some experience modifying the taylor_diagram function,
but I have not done what you are looking for so I can only
offer recommendations. You will likely need to make several
attempts getting all the resources set the way you want;
hopefully your test script runs quickly!</div>
<div><br>
</div>
<div>To answer your 3 questions:</div>
<div>1 - Yes.</div>
<div>2 - I believe this is possible. Steps required:</div>
<div> - Copy the <a href="https://www.ncl.ucar.edu/Applications/Scripts/taylor_diagram.ncl" target="_blank">taylor_diagram.ncl</a> code, and
saving it as (say) taylor_diagram_2.ncl. </div>
<div> - Alter the function name at the top to taylor_diagram_2
(at line one of taylor_diagram_2.ncl). </div>
<div> - In your new function, go to the section entitled "Part
3". You will see a resource list that is initiated 5 lines
beneath "Part 3" named respl. I would try adding the following
resource settings <b>beneath</b> the current respl resource
settings:</div>
<div> respl@gsLineDashSegLenF = 0.30. ; Controls spacing
between line labels; this setting will require some trial and
error.</div>
<div> respl@gsLineLabelFontColor = respl@gsLineColor</div>
<div> respl@gsLineLabelFontHeightF = 0.0125. ; this font
height setting might need adjustment</div>
<div><br>
</div>
<div> - Then, within the "do n-1,ncon" do loop, you will need
to tell NCL how to label the lines, so try this:</div>
<div> do n=1,ncon</div>
rr = n*dx
<div> res@gsLineLabelString = rr. ; add this line</div>
<div><br>
</div>
<div>That should do it. As I stated in the comments above, you
will likely need to adjust the setting for gsLineDashSegLenF
and gsLineLabelFontHeightF.</div>
<div><br>
</div>
<div>3 - Yes. Search within the function for the resource
"gsLineColor". You can adjust these as needed.</div>
<div><br>
</div>
<div>Hope that helps!</div>
<div>Adam</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Mar 25, 2023 at
3:00 PM Tao Zhang 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:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I can reproduce the taylor_4 figure using the sample script
in<br>
<br>
<a href="https://www.ncl.ucar.edu/Applications/Images/taylor_4_1_lg.png" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/Images/taylor_4_1_lg.png</a><br>
<br>
<a href="https://www.ncl.ucar.edu/Applications/Scripts/taylor_4.ncl" rel="noreferrer" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/taylor_4.ncl</a><br>
<br>
But I want Figure 1 in<br>
<br>
<a href="https://en.wikipedia.org/wiki/Taylor_diagram#:~:text=Taylor%20diagrams%20are%20mathematical%20diagrams,comparative%20assessment%20of%20different%20models" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/Taylor_diagram#:~:text=Taylor%20diagrams%20are%20mathematical%20diagrams,comparative%20assessment%20of%20different%20models</a><br>
<br>
Which shows the standard deviation (0~4 mm/day), not the
standardized <br>
deviations (normalized) (0-1.5).<br>
<br>
1) May I only change the taylor_4.ncl for my purpose, but keep
the <br>
loaded "taylor_diagram.ncl" unchanged?<br>
<br>
2) How to add "observed value" in the Taylor diagram as shown
in Figure <br>
1 in above link?<br>
<br>
3) How to change the color in 3 lines of standard deviation, <br>
correlation, and RMS?<br>
<br>
Thanks<br>
<br>
Tao<br>
<br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@mailman.ucar.edu" target="_blank">ncl-talk@mailman.ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="https://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">https://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
<span>-- </span><br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div>
<div><span><font color="#888888">Adam Phillips
<br>
</font></span></div>
<span><font color="#888888">Associate
Scientist IV, Climate Analysis Section</font></span></div>
<div><span><font color="#888888">Climate and
Global Dynamics Laboratory<br>
</font></span></div>
</div>
<div><span style="color:rgb(136,136,136)">National
Center for Atmospheric Research</span><span><font color="#888888"><br>
</font></span></div>
<div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span></div>
<span></span>
<div>
<div><span><font color="#888888"><br>
</font></span>
<div><span></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<p><br>
</p>
</div>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist IV, Climate Analysis Section</font></span></div><div><span><font color="#888888">Climate and Global Dynamics Laboratory<br></font></span></div></div><div><span style="color:rgb(136,136,136)">National Center for Atmospheric Research</span><span><font color="#888888"><br></font></span></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>