<div dir="ltr">Hi Guilherme,<div>You need to set gsnDraw (which draws the plot on the current frame) and gsnFrame (which advances from the current frame to the next frame) to False in both your resource lists, and then manually call draw and frame after you call gsn_add_polyline. Note that in the examples on the gsn_add_polyline page that draw and frame are called after gsn_add_polyline.</div><div></div><div><a href="http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polyline.shtml">http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_add_polyline.shtml</a><br></div><div>To summarize, add these lines to your script:</div><div>resD@gsnDraw = False</div>resD@gsnFrame = False<div><div>resE@gsnDraw = False</div>resE@gsnFrame = False<br></div><div><br></div><div>and then add these lines right before your system("convert ...") command:</div><div>draw(plot) ; draw the plot on the current frame<br>frame(wks) ; finish the page and advance the frame to the next one<br></div><div>The polylines should then appear. <br></div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 6, 2020 at 12:30 PM Guilherme Martins via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@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"><div dir="ltr">Dear users,<div><br>I'm trying to plot some horizontal lines in my graph, but I'm not capable to identify my problem.<br><br>Any help is very appreciated.<br><br>My script and files are in attach.<br><br>Best regards,<br><div><br></div><div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><span></span><span></span><img src="https://docs.google.com/uc?export=download&id=1IHFwe244DkFJMKFytUtFqZUs4cOuZagj&revid=0B0KBXOOrrpX7U1Y4aytGNDlMZkxTM1J4UElleTZEbWhQNWIwPQ"></div></div></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></blockquote></div><br clear="all"><div><br></div>-- <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, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></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><span><font color="#888888">303-497-1726 </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>