>
> Hi,
>
> I am using contour High/Low labels to draw a "H" and an "L" on highs and
> lows of a contour map ( I create a wind map and on it I overlay the
> streamfunction H/L labels). I include the section of the code I use
> below. The resulting plot is pretty good, except that a few labels are
> missing on very evident features. Is this to be expected for some reason
> or am I doing something wrong?
>
> Thank you,
>
> Andres
I've been corresponding with Andres directly on this topic, but I
thought the general group might be interested in the answer. You can
increase the number of high/low labels using the "cnConpackParams"
resource:
http://ngwww.ucar.edu/ngdoc/ng/ref/hlu/obj/ContourPlot.res.html#cnConpackParams
There are several parameters you can set, but in this case, you
want to use the "HLX" and "HLY" parameters. The resource setting
might look something like this:
res3@cnConpackParams = (/ "HLX:3, HLY:4" /)
The description for HLX and HLY, which are very low-level settings,
can be found at:
http://ngwww.ucar.edu/ngdoc/ng/supplements/conpack/#ParameterDescriptions
(The list is alphabetical.)
Cheers,
--Mary
>
>
>
> res3@cnLinesOn = False; turn off contour lines
> res3@cnLineLabelsOn = False; turn off contour line labels
> res3@cnInfoLabelOn = False; turn off contour Info Label
> res3@cnLevelSelectionMode = "ManualLevels"
> res3@cnMinLevelValF = -2.0
> res3@cnMaxLevelValF = 2.0
> res3@cnLevelSpacingF = 0.5
> res3@cnHighLabelsOn = True; label highs
> res3@cnHighLabelString = "H"; highs' label
> res3@cnHighLabelFontHeightF = 0.03; larger H labels
> res3@cnHighLabelFont = "helvetica-bold"; H labels font
> res3@cnHighLabelBackgroundColor = "Transparent"; no box
> res3@cnLowLabelsOn = True; label lows
> res3@cnLowLabelString = "L"; lows' label
> res3@cnLowLabelFontHeightF = 0.03; larger L labels
> res3@cnLowLabelFont = "helvetica-bold"; L labels font
> res3@cnLowLabelBackgroundColor = "Transparent"; no box
>
> res3@lbLabelBarOn = False
>
> plot3 = gsn_csm_contour(wks,psi, res3)
>
> overlay (plot, plot3)
> draw (plot)
> frame(wks) ; advance the 'frame' [go to next plot]
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
-- ------------------------------------------------- Mary Haley haley@ucar.edu NCAR/SCD/VETS 303-497-1254 (voice) 1850 Table Mesa Dr 303-497-1804 (fax) Boulder, CO 80305 ------------------------------------------------- _______________________________________________ ncl-talk mailing list ncl-talk@ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2b29 : Wed Mar 24 2004 - 11:52:52 MST