I'm wanting to have a pattern fill overlay on another filled contour plot,
with only the legend (label bar) for the former plot is shown. However, it
seems that to get the filled patterns to display, you must have cnFillOn set
to true, and doing so results in a label bar being generated, and the pm
resources will not override the generation of the label bar [e.g.,
pmLabelBarDisplayMode = "NoCreate"] (though you can manipulate the bar's
appearance). My poor man's solution for single plots has been to push the
orthogonal position of the label bar outside of the 'page', but with the
desire to now place these plots into a panel display - the undesired label bar
is once again inside the plotting area. It seems like there must be some way
to override label bar generation while still preserving the needed settings
for pattern filled plots - but I can't seen to come up with the right
combination.
Thanks again,
Glen
; sample resources used for the pattern fill overlay
blk = True
blk_at_gsnDraw = False
blk_at_gsnFrame = False
blk_at_pmLegendDisplayMode = "NoCreate"
blk_at_cnInfoLabelOn = False ; turn off info label box
blk_at_cnLineLabelsOn = False ; no lables on line
blk_at_cnFillOn = True ; fill contours
; this seems to be required
; for pattern fill to work
blk_at_cnLevelSelectionMode = "ExplicitLevels"
blk_at_cnLevels = (/radazlo,radazhi/)
; kill all of the axis labels
if (do_base .eq. 1) then
blk_at_tmXBOn = False
blk_at_tmXTOn = False
blk_at_tmYLOn = False
blk_at_tmYROn = False
end if
blk_at_sfXCStartV = xarr(xoffset)
blk_at_sfXCEndV = xarr(xoffset2)
blk_at_sfYCStartV = yarr(yoffset)
blk_at_sfYCEndV = yarr(yoffset2)
blk_at_vpXF = 0.1 ; Change the size and location of
the
blk_at_vpYF = 0.9 ; plot on the viewport.
blk_at_vpWidthF = 0.7
blk_at_vpHeightF = 0.7
blk_at_cnMonoFillPattern = False
blk_at_cnMonoFillColor = True
blk_at_cnFillPatterns = (/11,-1,17/) ; the patterns (-1 is transparent)
blk_at_cnMonoFillScale = False ; want different densities
blk_at_cnFillScales = (/.7,1.,.6/); the densities
blk_at_lbAutoManage = False ;
blk_at_pmLabelBarDisplayMode = "NoCreate" ; this is ignored, generates
anyway
blk_at_pmLabelBarParallelPosF = .35 ;
blk_at_pmLabelBarOrthogonalPosF = 0.5 ; position wrt plot, push out of
plotting region
blk_at_pmLabelBarWidthF = 0.1 ; control size of colorbar
blk_at_pmLabelBarHeightF = 0.45 ;
blk_at_lbOrientation = "vertical" ; label bar orientation
plot1 =
gsn_csm_contour(wks,elevation_angle(yoffset:yoffset2,xoffset:xoffset2),blk)
overlay(plot,plot1)
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jul 12 2006 - 22:26:00 MDT
This archive was generated by hypermail 2.2.0 : Thu Jul 13 2006 - 09:59:49 MDT