Re: overlapped texts on map

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 19 Jul 2006 17:53:00 -0600 (MDT)

With regard to Ozan's question, it turned out he *wasn't* talking
about contour labels, but rather just simple strings on a plot.

Because this is somewhat a kludgy thing you have to do, I've created
an Applications example showing how to attach a bunch of strings to a
plot, and then how to loop through the attached strings to see which
ones are overlapping other ones, and remove them.

Please see example 10 at:


On Mon, 17 Jul 2006, Mary Haley wrote:

> All,
> I'm responding to this one off-line, but in general, if you use
> gsn_add_text, there's no way to tell it if there's already a text
> string on or close to the same location, not to draw it.
> In order to do this, you need to retrieve the locations of all the
> current strings, and figure out what part of the plot they are already
> covering. Then, you would need to calculate how much space the current
> string was going to take up, and figure out if it overlapped with an
> existing string.
> I'm working with Ozan offline because I believe he is trying to to get
> around a different problem of having contour labels overlapping, and I
> think maybe he doesn't need to use gsn_add_text.
> --Mary
> On Sat, 15 Jul 2006, ozan mert gokturk wrote:
>> Hi All,
>> I am trying to show some text on a map by using gsn_add_text function. But
>> some
>> pieces of texts are overlapping. Is there a way to eliminate one of the
>> overlapping pieces without changing the size of the texts?
>> Thanks
>> Ozan
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>> _______________________________________________
>> ncl-talk mailing list
> _______________________________________________
> ncl-talk mailing list
ncl-talk mailing list
Received on Wed Jul 19 2006 - 17:53:00 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 20 2006 - 07:04:10 MDT