用gnuplot绘制坐标系

用gnuplot绘制坐标系,gnuplot,coordinate-systems,Gnuplot,Coordinate Systems,一般来说,我喜欢gnuplot绘图的外观。然而,我必须为一群只见过x=0和y=0轴的老式/传统x-y坐标系的人准备一个图。为了不混淆他们,我会坚持他们喜欢的风格 我如何在gnuplot中实现这一点 我找到了设置xzeroaxis,它给出了x轴。(与y轴类似)。我仍然需要: 把镜框拿开 将tic标签/编号放在x/y轴上 在轴的末端有一个箭头 我怎样才能做到这一点 set xzeroaxis set yzeroaxis set border 0 # remove frame s

一般来说,我喜欢gnuplot绘图的外观。然而,我必须为一群只见过x=0和y=0轴的老式/传统x-y坐标系的人准备一个图。为了不混淆他们,我会坚持他们喜欢的风格

我如何在gnuplot中实现这一点

我找到了
设置xzeroaxis
,它给出了x轴。(与y轴类似)。我仍然需要:

  • 把镜框拿开
  • 将tic标签/编号放在x/y轴上
  • 在轴的末端有一个箭头
我怎样才能做到这一点

set xzeroaxis
set yzeroaxis
set border 0          # remove frame
set xtics axis        # place tics on axis rather than on border
set ytics axis
set ticscale 0        # [optional] labels only, no tics
set xtics add ("" 0)  # suppress origin label that lies on top of axis
set ytics add ("" 0)  # suppress origin label that lies on top of axis
#
# if arrows are wanted only in the positive direction
set arrow 1 from 0,0 to graph 1, first 0 filled head
set arrow 2 from 0,0 to first 0, graph 1 filled head
#
# if arrows in both directions from the origin are wanted
set arrow 3 from 0,0 to graph 0, first 0 filled head
set arrow 4 from 0,0 to first 0, graph 0 filled head

plot f(x)