help-octave
[Top][All Lists]
Advanced

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

Re: show values at plot


From: Oguz Yarimtepe
Subject: Re: show values at plot
Date: Tue, 21 Apr 2009 12:45:51 +0300

On Tue, 2009-04-21 at 08:59 +0200, Carlo de Falco wrote:
> 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])

This helped. Thanx.

Oğuz



reply via email to

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