简体   繁体   English

gnuplot-“如何绘制渐近线” /“获取轴值范围”,获取x或y轴的最小值和最大值

[英]gnuplot - “How to draw an asymptote” / “Get axis value range”, get x or y axis minimum and maximum values

Is it possible to "get" the x/y (or other) axis plot range values? 是否可以“获取” x / y(或其他)轴绘图范围值?

The reason I am trying to do this is that I want to plot a vertical line on my graph at the position of an asymptotic point... Perhaps there is an alternative or better way of doing this than drawing an arrow (with no head) on the graph? 我尝试执行此操作的原因是,我想在曲线图上的一个渐近点的位置绘制一条垂直线...也许有比绘制箭头(无头)更好的方法。在图上?

Thanks to @Christoph (again) I have been able to do the following: 再次感谢@Christoph,我能够执行以下操作:

#Plot asymptote
set arrow from b,graph 0 to b,graph 1 lt 2 lw 2 lc rgb "green" nohead

This code does the following: 此代码执行以下操作:

  • draws an arrow 画一支箭
  • start position: x=variable b , y=graph 0 (minimum of graph [y] axis) 开始位置:x =变量b ,y =图形0(图形[y]轴的最小值)
  • end position: x=variable b , y=graph 1 (maximum of graph [y] axis) 结束位置:x =变量b ,y =图形1(图形[y]轴的最大值)
  • line type 2 (may require set termoption dashed to enable dashed lines, consult documentation) 线型2(可能需要set termoption dashed以启用虚线,请查阅文档)
  • line width 2 线宽2
  • line color green 线色绿色
  • no arrow head (a line) 没有箭头(一条线)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM