help-octave
[Top][All Lists]
Advanced

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

Re: show values at plot


From: Carlo de Falco
Subject: Re: show values at plot
Date: Tue, 21 Apr 2009 08:59:47 +0200


On 21 Apr 2009, at 07:07, Oguz Yarimtepe wrote:

On Mon, 2009-04-20 at 14:24 +0200, Carlo de Falco wrote:
you can center-click with the mouse on the points you want to
annotate
or use the "text" command
c.

Thanx for the tip, but this is not the exact way of finding the point
values. I can not be sure that i am pointing exactly the right location
on the graph. And also i want to save the graph after i showed the
values, so how can i make octave show the values, instead of a manual
interaction?

Oğuz

this can be done with the "text" command, for example try the following:

x = linspace(0,1,100);
y = rand(size(x));
plot(x,y,'y',x(10:10:90),y(10:10:90),"x")
for ii = 10:10:90
text(x(ii), y(ii), sprintf("(%1.2g, %1.2g)",x(ii),y(ii)));
endfor
axis([0 1 -.1 1.1])

c.





reply via email to

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