Skip to content

Instantly share code, notes, and snippets.

@bucketsize
Created October 24, 2014 13:08
Show Gist options
  • Save bucketsize/392bf73294f1d21366ff to your computer and use it in GitHub Desktop.
Save bucketsize/392bf73294f1d21366ff to your computer and use it in GitHub Desktop.
#!/usr/bin/gnuplot
# adapted from (http://gnuplot.sourceforge.net/demo/histograms.1.gnu)
# name: mtop.plot
# author: [email protected]
#set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 800, 300
set terminal pngcairo enhanced font "arial,10" fontscale 1.0 size 800, 300
set output 'mtop.png'
set key inside right top vertical Right noreverse noenhanced autotitles nobox
set datafile missing '-'
#set style data linespoints
set style data lines
set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0, 0, 0 autojustify
set xtics norangelimit font ",8"
set xtics ()
set title "app. perf. data"
set datafile separator ","
plot 'mtop.csv' using 1:2 title '%cpu',\
'' using 1:3 title '%mem',\
'' using 1:4 title 'a-cpu',\
'' using 1:5 title 'a-mem'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment