我遇到了以下问题,但是找不到解决方法。所有关于多轴的SO问题都是关于线图的,但我是在寻找直方图。
The y-range
for the bars are different, so one set of bars are not really seen because of the scale. Here is the data:
Metric A B
M1 0.613416301 0.543734744
M2 0.000195961 0.000100190
Here is the MWE:
reset
set term postscript eps size 5.5,4.5 enhanced color font 'Arial-Bold' 25
set out 'histplot.eps'
set key right
set style histogram cluster gap 2
set style data histograms
set style fill pattern 1.00 border
set y2range [0.0001:0.0002]
plot 'histplot.dat' using 2 ti col, '' u 3:xticlabels(1) ti col
quit
这是样例输出(一个M2上的柱集没有被看到):
![比较指标](https://istack.dev59.com/p6no5.webp)
我想要的是在图的右侧拥有第二个y轴,其范围适合于我的数据文件的第二行。这可行吗?非常感谢你的帮助。