-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmemory.gnuplot
67 lines (51 loc) · 2.05 KB
/
memory.gnuplot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Note you need gnuplot 4.4 for the pdfcairo terminal.
# set terminal pdfcairo font "Gill Sans,9" linewidth 4 rounded fontscale 1.0
set terminal pdfcairo font "Gill Sans,7" linewidth 1 rounded fontscale 1.0
# Line style for axes
set style line 80 lt rgb "#808080"
# Line style for grid
set style line 81 lt 0 # dashed
set style line 81 lt rgb "#808080" # grey
set grid back linestyle 81
set border 3 back linestyle 80 # Remove border on top and right. These
# borders are useless and make it harder
# to see plotted lines near the border.
# Also, put it in grey; no need for so much emphasis on a border.
# set xtics nomirror
# set ytics nomirror
#set log y
#set mxtics 10 # Makes logscale look good.
# Line styles: try to pick pleasing colors, rather
# than strictly primary colors or hard-to-see colors
# like gnuplot's default yellow. Make the lines thick
# so they're easy to see in small plots in papers.
set style line 1 lc rgb "#A00000" lw 2 pt 7 ps 0
set style line 2 lc rgb "#00A000" lw 2 pt 7 ps 0
set style line 3 lc rgb "#5060D0" lw 2 pt 7 ps 0
set style line 4 lc rgb "#F25900" lw 2 pt 7 ps 0
# Let gnuplot decide the color, if more than 4 lines
set style line 5 lw 2 pt 7 ps 0
set style line 6 lw 2 pt 7 ps 0
set style line 7 lw 2 pt 7 ps 0
set style line 8 lw 2 pt 7 ps 0
set output outputname
set xlabel "Time in Seconds"
set ylabel "MB Stored"
set key left top
set datafile missing '0'
# log scale on the y axis
# set logscale y 2
# set format y ""
# set ytics 1e-6, 10, 1
# set ytics add ("1" 1, ".1" 0.1, ".01" 0.01, "10^-3" 0.001, \
# "10^-4" 0.0001)
# set mytics 10
set yrange [50:*]
# set xrange [0:60]
# set yrange [0.5:64]
# Titles with spaces are not allowed
# These titles should be separated by "_" and here we replace by " "
pretty(title) = system("echo ".title." | sed 's/_/ /g'")
# Input file contains comma-separated values fields
set datafile separator ","
plot for [i=0:words(inputnames) - 1] word(inputnames, i + 1) using 1:2 title pretty(word(titles, i + 1)) with linespoints ls i + 1 smooth bezier