是否可以“获取”x/y(或其他) Axis 绘图范围值?
我尝试这样做的原因是我想在图形上渐近点的位置绘制一条垂直线...也许有比绘制箭头更好的替代方法或更好的方法(使用图表上没有头)?
最佳答案
感谢@Christoph(再次),我能够执行以下操作:
#Plot asymptote
set arrow from b,graph 0 to b,graph 1 lt 2 lw 2 lc rgb "green" nohead
此代码执行以下操作:
- 绘制箭头
- 起始位置:x=变量
b
,y=图 0(图 [y] Axis 的最小值) - 结束位置:x=变量
b
,y=图 1(图 [y] Axis 的最大值) - 线条类型 2(可能需要
set termoption dashed
才能启用虚线,请参阅文档) - 线宽2
- 线条颜色绿色
- 没有箭头(一条线)
关于plot - gnuplot - "How to draw an asymptote"/"Get axis value range",获取 x 或 y Axis 最小值和最大值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30914107/