Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试在 gnuplot 中绘制带有一组 x 值和 y 值的图形。默认情况下。x 轴在 y=0 处绘制;我需要在 y=1 而不是 y=0 处更改 x 轴的位置。我正在尝试设置 xzeroaxis 的选项。我该怎么做。
默认情况下,x 轴绘制在图形的底部边框。xzeroaxis仅控制是否绘制通过原点的 x 轴。
xzeroaxis
无论如何,如果你想在 y=1 处画一条线,你可以在那里画一条线:
gnuplot> set arrow from graph 0, first 1 to graph 1, first 1 nohead gnuplot> plot x
不过,刻度线不会出现。
但是,如果您的意思是要将图的底部移动到 y=1,只需使用set yrange [1:*].
set yrange [1:*]