k**m 发帖数: 222 | 1 看了在线文档,还是没找到如何画?
case1 case2 case3 case4
alpha 7611.84 3201.17 139.51 1803.78
beta 2677.36 2019.29 58.63 3142.04
gama 1696.36 1058.63 81.1 1101.23
我想的结果 是 三个系列alpha, beta, gama, 每种case用可以区别的bar显示在一起
a/b/g a/b/g a/b/g...
case1 case2 case3
在Excel 中可以做到。请问Gnu plot 可以做到么?
Thanks | T*******n 发帖数: 493 | 2 # This gnuplot script will get you started.
# You need to transpose the data and save it in the format
# shown at the end of the script.
# If you want to color-fill the bars, you'll need to edit the
# EPS file that is created.
set terminal postscript eps enhanced color solid "Times-Roman" 20
set output "bargraph.eps"
set xrange [0:5]
set yrange [0:8000]
set xlabel "cases"
set ylabel "values"
set xtics ("case 1" 1, "case 2" 2, "case 3" 3, "case 4" 4)
set grid ytics
set mytics 5
set key width -9 b
【在 k**m 的大作中提到】 : 看了在线文档,还是没找到如何画? : case1 case2 case3 case4 : alpha 7611.84 3201.17 139.51 1803.78 : beta 2677.36 2019.29 58.63 3142.04 : gama 1696.36 1058.63 81.1 1101.23 : 我想的结果 是 三个系列alpha, beta, gama, 每种case用可以区别的bar显示在一起 : a/b/g a/b/g a/b/g... : case1 case2 case3 : 在Excel 中可以做到。请问Gnu plot 可以做到么? : Thanks
| k**m 发帖数: 222 | 3 哇,你太牛了吧。我正在试。先谢谢你!
【在 T*******n 的大作中提到】 : # This gnuplot script will get you started. : # You need to transpose the data and save it in the format : # shown at the end of the script. : # If you want to color-fill the bars, you'll need to edit the : # EPS file that is created. : set terminal postscript eps enhanced color solid "Times-Roman" 20 : set output "bargraph.eps" : set xrange [0:5] : set yrange [0:8000] : set xlabel "cases"
| k**m 发帖数: 222 | 4 的确成功了!
就是我的gnuplot 是3.7,似乎不支持 fill style. 否则就十全十美了。
再次感谢!
【在 T*******n 的大作中提到】 : # This gnuplot script will get you started. : # You need to transpose the data and save it in the format : # shown at the end of the script. : # If you want to color-fill the bars, you'll need to edit the : # EPS file that is created. : set terminal postscript eps enhanced color solid "Times-Roman" 20 : set output "bargraph.eps" : set xrange [0:5] : set yrange [0:8000] : set xlabel "cases"
|
|