taosdemo-csv2png.gnuplot 561 字节
Newer Older
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
#!/user/bin/gnuplot
reset
set terminal png

set title filename font ",20"

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 filename . '.csv' 	using 1:2  title "Create 10,000 Tables", \
	""			using 1:3 title "Delete 10,000 Tables", \
	""			using 1:4 title "Create 10,000 Tables and Insert 100,000 records"