Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

programmed labeling on plots

2 views
Skip to first unread message

viv...@me.iitb.ernet.in

unread,
Apr 12, 2000, 3:00:00 AM4/12/00
to Ph D

On Wed, 12 Apr 2000, zakaria wrote on help-octave list
( help-...@bevo.che.wisc.edu )

> I've got the trouble to show the value or label on the contour and in
> plotting the graphics from the data. How to show the value or label on
> particular places on the contour that made by octave ?

I too had a similar requirement. Probably, neither octave nor gnuplot has
any built-in feature for this. However, you can use the "set label"
command of gnuplot from octave. after plotting the required curves.

Assume that you have matrices x(n), y(n), and z(n). While ( x(j), y(j) )
contain the data to be plotted on X-Y space, z(j) is the value at location
( x(j), y(j) ). Then you can use a code similar to this:

### ### ### ### ### ### ### ### ### ### ### ###
### I have not used contour plots. ## ###
### So, a simple data plot is shown here.## ###
### ### ### ### ### ### ### ### ### ### ### ###
plot(x,y);
for j = [1:n]
eval( sprintf("gset label \"%f\" at %f,%f center", z(j), x(j), y(j) ) ) ;
endfor
replot
### ### ### ### ### ### ### ### ### ### ### ###

R e g a r d s ,

Vivek...

0 new messages