<div dir="ltr"><div>what is dimension size of variable: 
var_ens_diff_mean?<br></div><div>print(dimsizes(
var_ens_diff_mean))</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 16, 2019 at 6:30 AM Anne <<a href="mailto:anne.seidenglanz@unive.it">anne.seidenglanz@unive.it</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 dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello NCL users,<div><br></div><div>I am trying to add a label to my xy plot using the routine gsn_add_text. However this causes a 'dimension size mismatch' error message. I don't really understand why this would be a mismatch because I haven't defined this variable anywhere else in the script.</div><div><br></div><div>So I used:</div><div><br></div><div><div>plot0  = gsn_csm_xy (wks, years2, var_diff(:,month),res)   </div><div><br></div><div><br></div><div>    txres               = True</div><div>    ;txres@txFontHeightF = fheight             ; Set the font height</div><div>    txres@txJust        = "CenterRight"</div><div>    txres@txFontHeightF   = 0.014</div><div><br></div><div>                 label                    = "Mean response = "+var_ens_diff_mean+""</div><div>                 text = gsn_add_text(wks, plot0, label, 1994, -100, txres)</div></div><div><br></div><div> plot1  = gsn_csm_xy (wks, years, var_ens_diff(:,month), res)   <br></div><div><br></div><div>         overlay(plot0, plot1)</div><div><br></div><div>        draw(plot0)</div><div>        frame(wks)</div><div><br></div><div>So basically this is an overlaid xy scatter plot, and I've applied my label to the base plot (plot0). The error message that shows up refers to the line where gsn_add_text is used (text = ...). Both the x and y coordinates in gsn_add_text are coordinates as they appear in the plot, so this shouldn't cause a problem. </div><div><br></div><div>Thanks for any help,</div><div>Anne</div><div><br></div></div></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div>