|
From: Mahmood N. <nt_...@ya...> - 2014-02-24 07:17:15
|
Hello,
I have a data file which looks like this
"Vendor" "2000" "2001" "2002" "2003"
V1 32 64
V2 64 32
As you can see some years are empty. For example 2000 and 2003 are empty for V1 and 2001 and 2003 are empty for V2. I don't want to add 0 for them.
The X-axis contains 2000, 2001, 2002 and 2003 and the Y-axis contains V1 and V2.
Also note that I want to have variable point sizes. For example the value of 32 is a point with 'ps 1' and the value of 64 is a point with 'ps 2'.
Here is what I wrote
set xtics ("2000" 0, "2001" 1, "2002" 2, "2003" 3)
set ytics ("V1" 0, "V2" 1)
plot 'data.txt' using "2000":"Vendor", \
'' using "2001":"Vendor", \
'' using "2002":"Vendor", \
'' using "2003":"Vendor"
But it doesn't work and says "x range is not valid".
How can I do the job?
Regards,
Mahmood
|