<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><p class="">Hi Mary,<br class=""><br class="">I updated the script based on your script and it is fine now. In my script, "gsnDraw" is set to "False" and I was adding the legend with "gsn_create_legend" function and finally draw the plot. When I turned off these parts and added the legend with "pmLegendDisplayMode", the problem is not reproduced anymore.<br class=""><br class="">Thank you for your help!<br class=""><br class="">Deniz<br class=""><br class=""><span class="" style="color: rgb(169, 169, 169);"><span class="" style="font-size: 11px;">--<br class="">Deniz Bozkurt, PhD<br class="">Post-doctoral Fellow<br class="">Center for Climate and Resilience Research<br class="">Department of Geophysics, University of Chile<br class="">Blanco Encalada 2002, Santiago, Chile<br class="">E-mail:&nbsp;<a href="mailto:dbozkurt@dgf.uchile.cl" class="">dbozkurt@dgf.uchile.cl</a>,&nbsp;<a href="mailto:deniboz@gmail.com" class="">deniboz@gmail.com</a><br class="">Web:&nbsp;<a href="http://dgf.uchile.cl/~dbozkurt/" class="">http://dgf.uchile.cl/~dbozkurt/</a></span></span></p><div class=""><br class=""></div><blockquote type="cite" style="border-left-color: blue; margin-left: 2px; padding-left: 12px;" class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Deniz,</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">I
 was unable to reproduce the problem.&nbsp; Can you try running this script, 
which does what I think you were describing?&nbsp; I think you should be able
 to run it as-is, and it should produce the attached PNG image.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Jun 23, 2015 at 2:26 PM, Deniz Bozkurt <span dir="ltr" class="">&lt;<a data-cke-saved-href="mailto:bozkurtd@itu.edu.tr" href="mailto:bozkurtd@itu.edu.tr" target="_blank" class="">bozkurtd@itu.edu.tr</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-family:Arial;font-size:14px" class=""><p class="">Hi all,<br class=""><br class="">I
 am using “gsn_csm_xy3” function to have an XY plot with three different
 Y axes (figure is attached). A horizontal reference line is added by 
“gsnYRefLine” resource for the right Y axis with these lines:<br class=""><br class="">resL@gsnYRefLine&nbsp;&nbsp; = 0<br class="">resL@gsnYRefLineColor = "forestgreen"<br class="">resL@gsnYRefLineThicknessF = 1.0<br class="">resL@gsnYRefLineDashPattern = 0<br class=""><br class="">When
 I simply try to add another reference line for the rightmost Y axis 
with following lines, I am receiving “warning:TransformPostDraw: 
tfPolyDrawList element 0 is invalid”:<br class=""><br class="">resM@gsnYRefLine&nbsp;&nbsp; = 0<br class="">resM@gsnYRefLineColor = "red"<br class="">resM@gsnYRefLineThicknessF = 1.0<br class="">resM@gsnYRefLineDashPattern = 0<br class=""><br class="">What
 I have understood from NCL mailing archive, this warning message is 
related with multiple calling of “gsn_add_xxxx” functions. However, I 
don’t have any idea why NCL does not draw the reference line for the 
rightmost Y axis for this case. I could probably draw it by using 
“gsn_polyline” but I would be pleased if anyone suggests a way to do it 
with “gsnYRefLine”.<br class=""><br class="">NCL: 6.2.0<br class=""><br class="">Thanks in advance,<br class=""><br class="">Deniz<br class=""><br class=""><span style="color:#a9a9a9" class=""><span style="font-size:11px" class="">--<br class="">Deniz Bozkurt, PhD<br class="">Post-doctoral Fellow<br class="">Center for Climate and Resilience Research<br class="">Department of Geophysics, University of Chile<br class="">Blanco Encalada 2002, Santiago, Chile<br class="">E-mail: <a data-cke-saved-href="mailto:dbozkurt@dgf.uchile.cl" href="mailto:dbozkurt@dgf.uchile.cl" target="_blank" class="">dbozkurt@dgf.uchile.cl</a>, <a data-cke-saved-href="mailto:deniboz@gmail.com" href="mailto:deniboz@gmail.com" target="_blank" class="">deniboz@gmail.com</a><br class="">Web: <a data-cke-saved-href="http://dgf.uchile.cl/~dbozkurt/" href="http://dgf.uchile.cl/%7Edbozkurt/" target="_blank" class="">http://dgf.uchile.cl/~dbozkurt/</a></span></span></p></div><br class="">_______________________________________________<br class="">ncl-talk mailing list<br class=""><a data-cke-saved-href="mailto:ncl-talk@ucar.edu" href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a data-cke-saved-href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br class=""><br class=""></blockquote></div></div></blockquote><br class=""><br class=""></body></html>