Put histogram side-by-side

拜拜、爱过 提交于 2019-12-01 11:55:26

You must use newhistogram to start a new histogram. In order to use the same linetype, you must give the second call to newhistogram the option lt 1:

reset
set style data histogram
set style histogram rowstacked title offset 0,-1
set bmargin 4
set boxwidth 0.9
set style fill solid border lt -1
set key autotitle columnheader horizontal

plot newhistogram 'Cluster 1', \
     for [i=2:5] 'cloudusage-roundrobin.dat' using i:xtic(1),\
     newhistogram 'Cluster 2' lt 1, \
     for [i=2:5] 'cloudusage-minmakespan.dat' using i:xtic(1) notitle

Result with 4.6.4:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!