Exchanging the axes in gnuplot

后端 未结 3 1551
陌清茗
陌清茗 2021-01-12 03:06

I have been wondering about this for a while, and it might already be implemented in gnuplot but I haven\'t been able to find info online.

When you have

3条回答
  •  生来不讨喜
    2021-01-12 03:34

    So here is another ugly, but gnuplot-only variant: Use the special filename '+' to generate a dynamic data set for plotting:

    plot '+' using ($1**2):1
    

    The development version contains a new feature, which allows you to use dummy variables instead of column numbers for plotting with '+':

    plot sample [y=-10:10] '+' using (y**2):(y)
    

    I guess that's what come closest to your request.

提交回复
热议问题