<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    so true

    心懷未來,開創(chuàng)未來!
    隨筆 - 160, 文章 - 0, 評論 - 40, 引用 - 0
    數(shù)據(jù)加載中……

    使用gnuplot繪圖

    set xdata time
    set timefmt "%s"
    set format x "%Y-%m-%d"
    #select font from results of `fc-list -v | grep -e 'family:' -e 'file:' -e '[^a-z]lang:.*zh-cn' | grep -B3 zh-cn | grep family: | sort | uniq`
    set terminal png font "WenQuanYi Micro Hei,12"
    set output "test.png"
    set title "統(tǒng)計分布圖"
    set xlabel "日期"
    set ylabel "數(shù)量"
    set xrange ["1136044800":"1375113600"]
    set xtics rotate by 270
    unset key
    plot "test.dat" using 1:2 with linespoints
    #pause -1
    $ cat test.dat
    1374163200      2122926
    1374249600      1200677
    1374336000      1321779
    1374422400      1773135
    1374508800      1610589
    1374595200      1454929
    1374681600      1167954
    1374768000      825804
    1374854400      369708
    1374940800      208934
    $ eog test.png



    $ cat t3.plt 
    #set terminal png
    #set output "t3.png"
    set title "the mget performance of redis vs cyclone"
    set auto x
    set xlabel "keys count"
    set ylabel "latency (ms)"
    set yrange [0:110]
    set style data histogram
    set style histogram cluster gap 1
    set style fill solid border -1
    set boxwidth 1
    set xtic rotate by -45 scale 0
    set bmargin 10
    plot "redis_vs_cyclone.dat" using 2:xtic(1) title "Redis"   linecolor rgb "#DAE8FC", \
         "redis_vs_cyclone.dat" using 3:xtic(1) title "Cyclone" linecolor rgb "#FFCC99", \
         "redis_vs_cyclone.dat" using 0:2:2     title "" with labels offset -2.0,0.7,    \
         "redis_vs_cyclone.dat" using 0:3:3     title "" with labels offset  2.0,0.7
    pause -1
    $ cat redis_vs_cyclone.dat 
    Service Redis Cyclone
    100 0.2 1.3
    500 0.6 1.7
    1000 1.2 1.9
    5000 6.1 3.9
    10000 13.3 5.4
    20000 25.4 7.6
    50000 73.7 16.4

    $ gnuplot t3.plt



    $ cat t4.plt 
    set xlabel "月份"
    set ylabel "降水量(毫米)"
    set title "各城市月平均降水量"
    set xrange [0.5:12.5]
    set xtics 1,1,12
    plot "jiangshui.dat" u 1:2   with linespoints pointtype 5 linecolor 'red'  title "重慶", \
         "jiangshui.dat" u 1:3   with linespoints pointtype 7 linecolor 'blue' title "成都", \
         "jiangshui.dat" u 0:2:2 with labels offset 0.0,1.0   title "",     \
         "jiangshui.dat" u 0:3:3 with labels offset 0.0,1.0   title ""
    pause -1
    $ cat jiangshui.dat 
    月份 重慶 成都
    1 2.5 38.1
    2 5.1 58.4
    3 10.2 81.3
    4 25.4 101.6
    5 27.9 114.3
    6 71.1 152.4
    7 175.3 129.5
    8 182.9 132.1
    9 48.3 154.9
    10 17.8 61.0
    11 5.1 50.8
    12 2.5 35.6
    $ gnuplot t4.plt
    一套更易用的數(shù)據(jù)收集以及畫圖解決方案:Grafana + influxdb

    posted on 2013-07-31 16:55 so true 閱讀(424) 評論(0)  編輯  收藏 所屬分類: Linux

    主站蜘蛛池模板: 4虎永免费最新永久免费地址| 亚洲精品白色在线发布| 午夜一级毛片免费视频| 污视频在线免费观看| 一级毛片免费播放视频| 亚洲AV无码一区二区三区电影 | 亚洲AV一二三区成人影片| 亚洲熟妇无码另类久久久| 亚洲AV无码不卡在线观看下载| 成年免费大片黄在线观看岛国 | 亚洲中文字幕无码爆乳av中文| 午夜电影免费观看| 我的小后妈韩剧在线看免费高清版 | 最近免费中文字幕中文高清| 羞羞视频免费网站含羞草| 亚洲色一区二区三区四区| 亚洲伊人久久大香线焦| 婷婷精品国产亚洲AV麻豆不片| 亚洲乱码中文字幕综合 | 一级特级aaaa毛片免费观看| 色欲aⅴ亚洲情无码AV蜜桃| 亚洲一级大黄大色毛片| 亚洲高清视频在线播放| 亚洲精品视频在线| 亚洲va在线va天堂va888www| 亚洲av日韩综合一区在线观看| 亚洲欧洲精品无码AV| 亚洲精品成人片在线播放| 亚洲人成人无码网www电影首页| 久久精品国产亚洲精品| 中文字幕日韩亚洲| 在线亚洲人成电影网站色www| 国产亚洲AV手机在线观看| 亚洲色大成网站WWW久久九九| 亚洲日韩欧洲无码av夜夜摸| 亚洲人成亚洲人成在线观看| 国产亚洲A∨片在线观看| 亚洲AV乱码久久精品蜜桃| 亚洲人成在线影院| 亚洲中文字幕无码av在线| 亚洲综合av一区二区三区不卡|