<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>