Originally Posted by
PC_load_letter
Also, in the gnuplot code, replace the immigration.dat by the path to the file.
In my case I copied the file to the home folder and my last line in one of the examples was:
Code:
plot '~/immigration.dat' using 6:xtic(1) ti col, '' u 12 ti col, '' u 13 ti col, '' u 14 ti col
and it worked!
Edit
That was a big help, thanks. But I'm trying to get something similar to: http://www.gcsemathstutor.com/histograms.php
I have (ignore the titles for now):
Code:
# If we don't use columnhead, the first line of the datafile
# will confuse gnuplot, which will leave gaps in the plot.
set key top left outside horizontal autotitle columnhead
#set xtics rotate by 90 offset 0,-5 out nomirror
set ytics out nomirror
set ylabel 'frequency density'
set title 'House Prices in Manchester £000s'
set style fill solid border -1
# Make the histogram boxes half the width of their slots.
set boxwidth 3
# Select histogram mode.
set style data histograms
# Select a row-stacked histogram.
set style histogram clustered
plot "~/Desktop/data" using 2:xticlabels(1) lc rgb 'green'
with data
Code:
Date Level_0_Mins Level_1_Mins Level_2_Mins
2011-01-08 0.2 161.08 22.58
2011-01-15 0.4 104.00 70.33
2011-01-22 0.6 79.75 16.17
2011-01-29 0.3 99.25 21.74
2011-02-05 0.1 155.33 33.33
What im really trying to emulate is:
I'll try to attach a screenshot, one moment.
Bookmarks