Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Graphics > Gnuplot interactive function plotter > how to represen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 3374 of 3637
Post > Topic >>

how to represent incrementing integer data in a gnuplot script

by Rahul <nospam@[EMAIL PROTECTED] > Jun 20, 2008 at 09:18 PM

I needed to display a set of text-labels at periodically, regularly varying

x, y locations on my plot. 

1    	 -1    	 A
2    	 -1    	 B
3    	 -1    	 C
4    	 -1    	 D
etc.

Currently I do it with a text file that looks just like above and

plot  "x_labels.txt" using 1:2:3 with labels    	

But since the second col. does not vary this is a more elegant approach:

plot  "x_labels.txt" using 1:(-1):3 with labels    	

The first col. though is regularly increasing. Is there a way of 
representing that too mathematically doing away the need for an
unnecessary 
lookup from a text file?

 Thus I could only leave the text names in the data-file. Conceptually
this 
seems the most elegant approach (for just a single plot it does not
matter, 
I guess but I was trying to get a sytem of scripts and super-scripts set
up 
for automation)


-- 
Rahul
 




 4 Posts in Topic:
how to represent incrementing integer data in a gnuplot script
Rahul <nospam@[EMAIL P  2008-06-20 21:18:29 
Re: how to represent incrementing integer data in a gnuplot scri
merritt@[EMAIL PROTECTED]  2008-06-20 14:55:28 
Re: how to represent incrementing integer data in a gnuplot scri
googoff@[EMAIL PROTECTED]  2008-06-20 14:58:07 
Re: how to represent incrementing integer data in a gnuplot scri
Rahul <nospam@[EMAIL P  2008-06-21 00:03:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Dec 5 6:19:50 CST 2008.