0
我试图创建一个在左侧有两个独立的y轴的图,即共享相同的x轴。这在Gnuplot中可能吗?我知道它可以用python来完成。Gnuplot可以在图的左侧放置两个y轴吗?
我试图创建一个在左侧有两个独立的y轴的图,即共享相同的x轴。这在Gnuplot中可能吗?我知道它可以用python来完成。Gnuplot可以在图的左侧放置两个y轴吗?
您可以在gnuplot的标准x1y1和x1y2轴上绘图,然后用multiplot
添加额外的轴。
这个例子并不完美,但应该给你一个想法如何去做。正如克里斯托弗说,这是一个有点繁琐:
set multiplot
set lmargin at scr 0.2
set bmargin at scr 0.1 # fix bottom margin
set y2range [0:20]
plot x, 2*x axes x1y2 # this is your actual plot
set lmargin at scr 0.1
set yrange [0:20] # set yrange to the same as y2 in the first plot
set border 2 # switch off all borders except the left
unset xtics # switch off the stray xtics
plot -1000 notitle # plot something outside of the y(2)range
unset multi
谢谢卡尔。今天我会尝试这个。 – jamesd
请参阅本主题中的示例:http://stackoverflow.com/questions/20146652/two-y-axis-on-the-left-side-of这个数字 – jamesd