Hello,
I am trying to create a panel plot and want to display a common title that
is aligned with the left edge of the panels. I would like to use
"getvalues" to automate this process, as the size & location of my panels
change with each plot and manually entering the x-position each time gets
very tedious.
A sample of my code is below. When I use "getvalues" on plot(0) -- the
top-left plot on the panel, the retrieved vpXF value does not match any of
the values displayed from gsnPanelDebug. Can anyone provide some insight
on this? Thanks a lot!
do n=0,5
res@gsnRightStringFontHeightF = 0.025
res@gsnRightStringOrthogonalPosF = 0.02
res@gsnRightString = rightStrings(n)
res@gsnLeftStringFontHeightF = 0.025
res@gsnLeftStringOrthogonalPosF = 0.01
res@gsnLeftString = leftStrings(n)
plot(n)=gsn_csm_contour_map(wks,data(n,:,:),res)
end do
getvalues plot(0)
"vpXF" : xloc
"vpYF" : yloc
end getvalues
panel_res = True panel_res@gsnPanelDebug = True
panel_res@gsnPanelRowSpec= True panel_res@Maximize= True
panel_res@gsnPanelXWhiteSpacePercent = 2.
panel_res@gsnPanelYWhiteSpacePercent = 2. panel_res@gsnPanelCenter = False
panel_res@gsnPanelBottom = 0.05 panel_res@gsnPanelTop = 0.95
panel_res@txString = title
panel_res@txFont = 21
panel_res@txFontHeightF = 0.018
panel_res@txPosXF = xloc
gsn_panel(wks, plot, (/2,2,2/), panel_res)
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Jul 30 12:40:47 2013
This archive was generated by hypermail 2.1.8 : Thu Aug 01 2013 - 15:55:03 MDT