<div dir="ltr"><div dir="ltr"><div>Please reply to the mailing list, not to me personally.</div><div><br></div><div>I see another problem.  You have gsn_open_wks inside the loops making 18 plots.  The workstation must be opened only once, before the start of the loops, if you want to make a panel plot.  Please move that statement to above the loops, and see what happens.</div><div><br></div><div>Also when paneling, the Draw and Frame resources should be set to False when making the individual plots inside the loop.  Otherwise, each plot would get drawn twice in the output file.  See how this is done in the panel examples.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 14, 2020 at 11:57 AM   mqadimi <<a href="mailto:mqadimi@yahoo.com">mqadimi@yahoo.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"> Excuse me. This is just a misspelling happend when writing this mail. In my code i have used "Plot" correctly. The problem is sth other than typo.</div><div dir="auto"><br></div><div dir="auto"><br></div><div style="font-size:100%;color:rgb(0,0,0)" dir="auto"><div>From: Dave Allured - NOAA Affiliate <<a href="mailto:dave.allured@noaa.gov" target="_blank">dave.allured@noaa.gov</a>> </div><div>Date: 14/04/2020  22:00  (GMT+03:30)</div><div><br></div></div><div dir="ltr"><div>You spelled "Plot" two different ways.  Variable names in NCL are case sensitive.  If you use the same case spelling consistently, that may fix the problem.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 14, 2020 at 11:02 AM Morteza Qadimi via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div><p class="MsoNormal">Hi NCL wizards,</p><p class="MsoNormal">I’ve made 18 plots using code below:</p><p class="MsoNormal">==============================================================</p><p class="MsoNormal">Plot = new (18,graphic)</p><p class="MsoNormal">Some resources</p><p class="MsoNormal">.</p><p class="MsoNormal">.</p><p class="MsoNormal">. </p><p class="MsoNormal"><u></u></p><p class="MsoNormal">do i=0,2</p><p class="MsoNormal">  do j=0,2</p><p class="MsoNormal">    do k=0,1</p><p class="MsoNormal">      l=0</p><p class="MsoNormal">      plotname      = “Plot”+Models(i)+"_"+Scenarios(j)+"_EOF"+(k+1)</p><p class="MsoNormal">      wks                = gsn_open_wks("pdf”,plotname)</p><p class="MsoNormal">      PLOT (l)         = gsn_csm_contour_map(wks,EOF(i,j,k,:,:),res)</p><p class="MsoNormal">      l=l+1</p><p class="MsoNormal">    end do</p><p class="MsoNormal">  end do</p><p class="MsoNormal">end do</p><p class="MsoNormal">==============================================================<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">All the 18 plots get drown when I plot them individually, but when I try to panel them by:</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">==============================================================</p><p class="MsoNormal">resP                                              = True</p><p class="MsoNormal">resP@gsnMaximize                   = True</p><p class="MsoNormal">resP@gsnPanelMainString       = ""</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">wks = gsn_open_wks("x11","Panel")</p><p class="MsoNormal">gsn_panel(wks,PLOT,(/9,2/),resP)</p><p class="MsoNormal">==============================================================</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">I get the error below:</p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">(0)     gsn_panel: Error: all of the plots passed to gsn_panel appear to be invalid</p></div></div></blockquote></div></div>
</div></blockquote></div></div></div>