Re: gsnPanelFigureStrings

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 16 Jan 2007 14:17:24 -0700 (MST)

Hi Mateus,

Even though you are getting the warning about an unrecognized plot
type, the paneling should still work. Can you try the attached
script and let me know if you see all four frames with figure
strings in each?

Meanwhile, I will try to fix the code so the warning message
goes away.

--Mary

On Tue, 16 Jan 2007, Mateus da Silva Teixeira wrote:

> Hi,
>
> I'm trying to plot some histograms in a same panel and with their figure
> strings with gsnPanelFigureStrings resource, but I'm getting an error
>
> (0) Warning: gsn_panel: unrecognized plot type, thus unable to get
> information for font height.
> (0) Defaulting to 0.01
>
> and only one figure is plotted. Below is the part of the script:
>
> lats=(/-24.5,-24.5,-23.5,-23.5,-23.5,-22.5,-22.5/)
> lons=(/312.5,313.5,313.5,314.5,315.5,316.5,317.5/)
> nptos=dimsizes(lats)
> latlon=new(nptos,string)
> plot=new(nptos,graphic)
>
> xwks = gsn_open_wks("pdf","histo")
> hist=True
> hist_at_gsnHistogramBinWidth=5
> hist_at_tiXAxisString=""
> hist_at_tiYAxisString=""
>
> do i=0,nptos-1
> latlon(i)="Pos.: "+sprintf("%5.1f",lats(i))+","+sprintf("%5.1f",lons(i))
> plot(i)=gsn_histogram(xwks,prec(:,{lats(i)},{lons(i)}),hist)
> end do
>
> painel=True
> painel_at_gsnFrame=False
> painel_at_txString="Histogramas p/ pontos de procura"
> painel_at_gsnPanelFigureStringsFontHeightF=0.01
> painel_at_gsnPanelFigureStrings=latlon
> gsn_panel(xwks,plot,(/3,3/),painel)
>
>
> Thanks.
> Mateus
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

Received on Tue Jan 16 2007 - 14:17:24 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 17 2007 - 15:40:09 MST