Hey guys,
I need to do some plotting with gnuplot. I have a bunch of data in a file in this format:
Code:
Updates graph1 graph2
0 10215 1452
1 172840 184608
2 199870 198374
....
...
total 300000 300000
whereas the left column is the x-axis (0, 1, .., 30, total) and the other two columns represent the "y-values" of the plots.
I use the following gnuplot code to plot this:
Code:
set terminal postscript enhanced color
set output 'updatecount.ps'
set bar 1.000000
set style rectangle back fc lt -3 fillstyle solid 1.00 border -1
set key outside right top vertical Right noreverse enhanced autotitles columnhead nobox
set datafile missing '-'
set style data lines
set yrange [0:305000]
set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 1, 0, 0
set xtics norangelimit
offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90
set y2label offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90
set cblabel offset character 0, 0, 0 font "" textcolor lt -1 rotate by 90
set locale "C"
plot 'updatecount.dat' using 2:xtic(1), '' u 3, '' u 4, '' u 5, '' u 6, '' u 7, '' u 8, '' u 9, '' u 10, '' u 11, '' u 12, '' u 13, '' u 14, '' u 15, '' u 16, '' u 17, '' u 18, '' u 19, '' u 20, '' u 21, '' u 22
this works fine so far.. I get some warnings because I don't have as many columns as defined but that doesn't matter.
(to be honest, I took the gnuplot code from a different example. I'm not really into gnuplot...)
It plots the data the way it should and places the x- values: 0, 1 , 2 etc. correctly. (as in the first column)
Now I want a different scaling of the x-axis. Is there a simple way to just override the values on the x-axis and position my own values? (I was thinking about
: 0, 1, 5, 10, 20, total) or so..
Thank you VERY much in advance!
Cheers,
talla