Re: Un-masking for High/Low labels

From: Kyle Griffin <ksgriffin2_at_nyahnyahspammersnyahnyah>
Date: Sat Dec 01 2012 - 20:16:59 MST

Hi Mary (and list),

I was wondering if anything came of this issue/ticket with controlling the
masking of high/low labels, or if there is an efficient workaround (using a
single set of resource and a single call to gsn_csm_contour) for the
problem discussed here.
The only workaround I've found is to copy the contour's resources into a
new resource, turn lines off, and plot the high/low labels by themselves -
this works for now, but less than ideal.
Thanks for the update, if any.

Kyle
----------------------------------------
Kyle S. Griffin
Department of Atmospheric and Oceanic Sciences
University of Wisconsin - Madison
1225 W Dayton St, Madison, WI 53706
Room 1421 Email: ksgriffin2@wisc.edu

On Fri, Nov 9, 2012 at 2:24 PM, Kyle Griffin <ksgriffin2@wisc.edu> wrote:

> Same thing.
>
> However, I fiddled with a few additional resources as well. If I set:
>
> cres@cnLabelMasking = False
>
> the high/low labels turn out exactly as I'd like. Unfortunately, that
> results in the other line labels for the contour plot being unmasked as
> well (see attached). This is the behavior I would expect if I set:
>
> cres@cnHighUseLabelRes = True ;(false by default)
>
> but it occurs both if it is set to True or False, with True also copying
> the rest of the LineLabel resources over as well.
>
> Seems like a method to separate the masking for LineLabels and other
> labels (high/low seem to be the only other kind that might intersect a line
> - although perhaps info labels could as well) might be what is needed here.
>
>
> Kyle
>
> ----------------------------------------
> Kyle S. Griffin
> Department of Atmospheric and Oceanic Sciences
> University of Wisconsin - Madison
> 1225 W Dayton St, Madison, WI 53706
> Room 1421 Email: ksgriffin2@wisc.edu
>
>
>
> On Fri, Nov 9, 2012 at 12:12 PM, Mary Haley <haley@ucar.edu> wrote:
>
>> What happens if you additionally set:
>>
>> res@cnLowUseHighLabelRes = False
>>
>> --Mary
>>
>> On Nov 8, 2012, at 9:51 AM, Kyle Griffin wrote:
>>
>> > Hi Mary,
>> >
>> > They settings I have for high/low labels are identical, so no, that
>> does not seem to fix the problem. I am running the full 6.1.0, for the
>> record, and have attached a small screenshot of what this returns. The full
>> list of relevant resources is below. I will also note that cres includes
>> cres@cnLabelMasking = True and cres@cnLineLabelBackgroundColor = -1
>> statements as well, which you can also see in the screenshot.
>> >
>> >
>> > Kyle
>> >
>> > cres@cnHighLabelsOn = True
>> > cres@cnHighLabelBackgroundColor = -1
>> > cres@cnLowLabelsOn = True
>> > cres@cnLowLabelBackgroundColor = -1
>> > cres@cnHighLabelFontColor="blue"
>> > cres@cnLowLabelFontColor = "blue"
>> > cres@cnLowLabelFontHeightF = 0.008
>> > cres@cnHighLabelFontHeightF = cres@cnLowLabelFontHeightF
>> >
>> >
>> > ----------------------------------------
>> > Kyle S. Griffin
>> > Department of Atmospheric and Oceanic Sciences
>> > University of Wisconsin - Madison
>> > 1225 W Dayton St, Madison, WI 53706
>> > Room 1421 Email: ksgriffin2@wisc.edu
>> >
>> >
>> >
>> > On Thu, Nov 8, 2012 at 10:33 AM, Mary Haley <haley@ucar.edu> wrote:
>> > Hi Kyle,
>> >
>> > I think this is due to a bug that I thought we had fixed, but I don't
>> see any record of it. I created a new ticket, NCL-1572.
>> >
>> > The problem is that the settings for the high labels are also affecting
>> the settings for the low labels.
>> >
>> > Does it work if you add:
>> >
>> >
>> > cres@cnHighLabelBackgroundColor = -1
>> >
>> > ?
>> >
>> > --Mary
>> >
>> > On Nov 7, 2012, at 8:27 PM, Kyle Griffin wrote:
>> >
>> > > Hi,
>> > >
>> > > Is anyone aware of a way to allow line contours to be seen underneath
>> the label text plotted via the High/Low label settings?
>> > >
>> > > I set:
>> > > cres@cnLowLabelsOn = True
>> > > cres@cnLowLabelBackgroundColor = -1
>> > > cres@cnLowLabelFontColor = "blue"
>> > > cres@cnLowLabelFontHeightF = 0.01
>> > >
>> > > These settings result in the low labels blocking out 1 or more of the
>> contours underneath the label, especially when the contours (MSLP isobars
>> in this case) are tightly packed near the contour max/min.
>> > >
>> > > Is there a way to allow the contours to be seen through the
>> background of the High/Low labels? This would be following the essence of
>> cnLabelMasking = False, the default setting for contour line labels.
>> > >
>> > > Thanks,
>> > >
>> > >
>> > > Kyle
>> > > ----------------------------------------
>> > > Kyle S. Griffin
>> > > Department of Atmospheric and Oceanic Sciences
>> > > University of Wisconsin - Madison
>> > > 1225 W Dayton St, Madison, WI 53706
>> > > Room 1421 Email: ksgriffin2@wisc.edu
>> > >
>> > > _______________________________________________
>> > > 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
>> >
>> > <Screen Shot 2012-11-08 at 10.49.06
>> AM.png>_______________________________________________
>> > 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 Sat Dec 1 20:17:29 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:23 MST