help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to display points coordinates on a plot


From: James Sherman Jr.
Subject: Re: How to display points coordinates on a plot
Date: Sun, 21 Apr 2013 12:52:08 -0400




On Sun, Apr 21, 2013 at 12:38 PM, barny <address@hidden> wrote:
Hi,
I'm Matteo and I'm new to the forum.
I'm writing an octave script as my final work to get my degree.
The script, as final output, generates a plot using gnuplot, it looks very
good but i'd really like to have points coordiantes printed on the plot
beside them.
It is possible??
Thanks in advance for your time and your responses



--
View this message in context: http://octave.1599824.n4.nabble.com/How-to-display-points-coordinates-on-a-plot-tp4652095.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave

Hi,

You can do this with the "text" command.  If you have the coordinates in the variables x and y, you could do something like:

str_to_display = sprintf('(%d,%d)', x,y);
text(x, y, str_to_display)

Hope this helps.

James Sherman

reply via email to

[Prev in Thread] Current Thread [Next in Thread]