Re: cannot use vpXF, vpYF, vpWidthF, and vpHeightF to make panel plots

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jan 06 2014 - 09:10:46 MST

Xiaoming,

The wrf_xxxx plotting functions are generally meant to be “black box” routines for drawing plots on an 8.5” x 11” piece of paper. The plots are resized as necessary to fit this size, and hence the vpXXX resources are ignored.

To force the vp resources to take effect, you can apply them *after* the plots are created. You can do this via a “setvalues” block.

Instead of this:

       pltres@vpHeightF =0.4
       pltres@vpWidthF = 0.4
       pltres@vpYF = 0.95-ifile_loop*0.41
; pltres@vpXF =0.15+ispecies*0.405

        plot(ifile_loop) = wrf_overlays(a,wks,(/contour_W,vector/),pltres)
  end do ; END OF TIME LOOP
    draw(plot(ifile_loop))
end do ; ifiles

On Jan 3, 2014, at 10:06 P

Try this:

        plot(ifile_loop) = wrf_overlays(a,wks,(/contour_W,vector/),pltres)
       setvalues contour_W
         "vpHeightF" : 0.4
         "vpWidthF" : 0.4
         "vpYF" : 0.95-ifile_loop*0.41
       end setvalues
       draw(contour_W)

> Dear all
>
> I can use gsn_panel to generate a panel plot, but cannot use vpXF, vpYF, vpWidthF, and vpHeightF to make the panel plot.
>
> I attached my script, which only generate a plot with only one panel.
>
> If I comment out draw(plot(ifile_loop)) and frame(wks)
> and un-comment out
> ; resP = True ; modify the panel plot
> ; resP@txString = "Vetical velocity"
> ; gsn_panel(wks,plot,(/2,1/),resP)
>
> Then the script would generate a plot with two panels.
>
> I prefer to use vpXF, vpYF, vpWidthF, and vpHeightF to generate the panel plot since I can exactly put the panels wherever I want.
>
> Any suggestions?
>
> Thanks
> Xiaoming
>
>
> <wrf_CrossSection_WplusVecters_combine.ncl>_______________________________________________
> 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
Received on Mon Jan 06 09:10:56 2014

This archive was generated by hypermail 2.1.8 : Mon Jan 06 2014 - 13:09:53 MST