| Re: Labelling Highs/Lows in contour [message #12576 is a reply to message #12501] |
Fri, 14 August 1998 00:00  |
Amit Ghosh
Messages: 7 Registered: July 1998
|
Junior Member |
|
|
In article <35D3CD90.E94C3B56@earthling.nospam.net>,
Phillip & Suzanne David <pdavid@earthling.nospam.net> wrote:
> David Fanning wrote:
>>
>> Amit (amit@physics.utoronto.ca) writes:
>>
>>> Is there a way to automatically label highs and lows on a contour plot ?
For
>>> example place an L or H in a trough or peak respectively.
>>
> At a guess, I would write the contour the usual way, then find the max and min
> of the underlying data, calculate coordinates into the plot based on the
> locations of the max and min, and place (in overplot mode -- I don't remember
> the name of the function to do this) an L at the min and an H at the max.
> That's the simplest algorithm I can think of.
>
>> P.S. Does anyone know how to find the slope of
>> a 2D array. :-(
>
Finding maxes and mins in the data (I guess what David was hinting at by
asking to find the deriv of a 2D array) and labelling every one of them is
easy, but that's not the question I asked. I only want to determine if the
contour surrounds a high or low and label it appropriately. I don't want to
label extrema between contours or multiple extrema within one contour. Of
course only simple and elegant solutions are acceptable. :)
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
|
|
|
|