perftest-csv2png.gnuplot 896 字节
Newer Older
S
Shuduo Sang 已提交
1 2 3 4
#!/user/bin/gnuplot
reset
set terminal png

S
Shuduo Sang 已提交
5
set title filename font ",20"
S
Shuduo Sang 已提交
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

set ylabel "Time in Seconds"

set xdata time
set timefmt "%Y%m%d"
set format x "%Y-%m-%d"
set xlabel "Date"

set style data linespoints

set terminal pngcairo size 1024,768 enhanced font 'Segoe UI, 10'
set output filename . '.png'
set datafile separator ','

set key reverse Left outside
set grid

# plot 'perftest-influx-report.csv'	using 1:2  title "InfluxDB Write", \
# 	""			using 1:3 title "InfluxDB Query case1", \
# 	""			using 1:4 title "InfluxDB Query case2", \
# 	""			using 1:5 title "InfluxDB Query case3", \
# 	""			using 1:6 title "InfluxDB Query case4"
# 
plot filename . '.csv' 	using 1:2  title "TDengine Write", \
	""			using 1:3 title "TDengine Query case1", \
	""			using 1:4 title "TDengine Query case2", \
	""			using 1:5 title "TDengine Query case3", \
	""			using 1:6 title "TDengine Query case4"