Monday 15 July 2013

Plotting uneven data on x-axis in gnuplot

In order to plot uneven data on x-axis in gnu plot, we have to do a little bit of modification

For example; Consider the data

#Procs SomeValue
1              1
2              2
4              4
8              8
16            16
32            32
64            64

we want to play #Procs on x-axis which if we use simle plot and 'using 1:2' it will be uneven.

what you need to do is;

plot the graph as '2:xticlabels(1)' , rest is as-it-is

- remove xrange
- keep yrange

No comments:

Post a Comment