Re: Fwd: how to get different number of graphs on panel

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon Oct 01 2012 - 11:40:16 MDT

Hi Shabeh,
Take a look at tickmarks example #2; specifically the coding for the
bottom panel:
http://www.ncl.ucar.edu/Applications/tickmarks.shtml#ex2
http://www.ncl.ucar.edu/Applications/Scripts/tm_2.ncl

You need to set tmXBMode = "Explicit", and then set tmXBValues and
tmXBLabels appropriately. As a first guess for what would work for your
situation, I would try this:
res@tmXBMode = "Explicit"
res@tmXBValues = ispan(0,9,1)
res@tmXBLabels = (/"D0","D1","D2","D3","D4","D5","D6","D7","D8","D9"/)

If that suggestion does not work please let ncl-talk know.
Best regards, Adam

On 10/01/2012 06:00 AM, Shabeh ul Hasson wrote:
> Dear All,
>
> I have plotted the panel chart for bar graphs using gsn_csm_y()
> function (kindly see the attached graph). I want to assign D0, D1, and
> so on at the x-axis of last graphs on each side of panel instead of
> 0,1,2,3 default values.
>
> Kindly help
>
> regards,
>
> Shabeh ul Hasson,
> Scientific Officer, GCISC, NCP Complex,
> Near Quaid-i-Azam University, Islamabad
> Office# +92(51)9230226,
> Fax# +92(51)2077385
> Cell# +92-321-5033864
> http://www.gcisc.org.pk
>
> P Please don't print this e-mail unless you really need to. Thank you!
>
>
> ---------- Forwarded message ----------
> From: *Mary Haley* <haley@ucar.edu <mailto:haley@ucar.edu>>
> Date: Wed, Sep 26, 2012 at 9:39 PM
> Subject: Re: how to get different number of graphs on panel
> To: Shabeh ul Hasson <shabih33@gmail.com <mailto:shabih33@gmail.com>>
> Cc: "ncl-talk@ucar.edu <mailto:ncl-talk@ucar.edu>\""
> <ncl-talk@ucar.edu <mailto:ncl-talk@ucar.edu>>
>
>
>
> What you can do is create an array to hold 26 plots, and set plots
> #21, 23, and 25 to missing (or just don't generate them).
>
> Then, do a regular panel with 13 rows and 2 columns
>
> gsn_panel(wks,plots,(/13,2/),resP)
>
> NCL should automatically just leave a blank spot where those last
> three plots are supposed to be.
>
> See the attached example, which I stole from another example I just
> used a few minutes ago.
>
> -Mary
>
>
> On Sep 26, 2012, at 1:20 PM, Shabeh ul Hasson wrote:
>
> > Dear All,
> >
> > I want to plot 13 bar graphs on left side of panel and 10 graphs on
> right side of panel. kindly see the attached pdf.
> >
> > how to get rid of 3 fake plots I have plotted by giving data 0.0 at
> the right side of the panel as panel requires equal number of graphs
> each side.
> >
> > best regards,
> >
> > Shabeh ul Hasson,
> > Scientific Officer, GCISC, NCP Complex,
> > Near Quaid-i-Azam University, Islamabad
> > Office# +92(51)9230226 <tel:%2B92%2851%299230226>,
> > Fax# +92(51)2077385 <tel:%2B92%2851%292077385>
> > Cell# +92-321-5033864 <tel:%2B92-321-5033864>
> > http://www.gcisc.org.pk
> >
> > P Please don't print this e-mail unless you really need to. Thank you!
> > <spi_marker.pdf>_______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
______________________________________________________________
Adam Phillips                                asphilli@ucar.edu
NCAR/Climate and Global Dynamics Division       (303) 497-1726
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 1 19:40:26 2012

This archive was generated by hypermail 2.1.8 : Tue Oct 02 2012 - 13:38:41 MDT