Path: news.mathworks.com!not-for-mail
From: "Steve " <steveDEL.bachmeierDEL@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: label points
Date: Sat, 9 Feb 2008 20:24:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <fol251$qdg$1@fred.mathworks.com>
References: <fokus2$c5h$1@fred.mathworks.com> <fol08h$l7n$1@canopus.cc.umanitoba.ca>
Reply-To: "Steve " <steveDEL.bachmeierDEL@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1202588641 27056 172.30.248.38 (9 Feb 2008 20:24:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 9 Feb 2008 20:24:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1034320
Xref: news.mathworks.com comp.soft-sys.matlab:450365



Sorry, let me clarify.  The axes are fine, but I'd like to
add markers to specific values (not at each data point).  In
addition, if possible, I'd like to have the (x,y)
coordinates at each of these points of interest labeled
right on the plot.  Thanks!

roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <fol08h$l7n$1@canopus.cc.umanitoba.ca>...
> In article <fokus2$c5h$1@fred.mathworks.com>,
> Steve  <steveDEL.bachmeierDEL@yahoo.com> wrote:
> >Is it possible to label only specific values when using
> >plot() in Matlab?  i.e. I have many data points but want
> >only the maximums and minimums labeled with (x,y_max). 
Thanks!
> 
> Yes. Set the XTick and YTick properties each to a vector
of only
> the values you want labelled.
> -- 
>   "Every intellectual product must be judged from the
point of view
>   of the age and the people in which it was produced."
>                                               -- Walter
Horatio Pater