|
From: Daniel Ó N. <dan...@gm...> - 2010-05-06 23:58:22
|
Say I have a file like this:
data.txt:
x y Name
1 2 Dave
3 5 Mary
4 1 Ann
7 3 Barry
I am trying to plot an x-y scatter plot with xtic names aligned to the
x positions. For the above file the script would be:
set xtics rotate
set xtics ("Dave1" 1, "Mary" 3, "Ann" 4, "Barry" 7)
plot "data.txt"
But my file is huge and auto-generated. So is there any way to read in
the xtics name & position from the file, using gnuplot?
Something like: set xtics ("{data.txt(3)}" {data.txt(1)}, )
Or would it just be easier to do it using PERL or some other scripting language?
Thanks,
Dan
|