Gnuplot: how to add y2 axis scale for different units

前端 未结 3 1353
别跟我提以往
别跟我提以往 2020-12-14 03:51

I\'m plotting data from a file. The data points are in metric units. I want to show a second scale on the right (y2) that\'s in standard units.

The file represents r

3条回答
  •  我在风中等你
    2020-12-14 04:23

    Version 5.0 added support for this kind of relations between the y and y2 (or also x and x2) axis:

    set xrange[0:370]
    set ytics nomirror
    set y2tics
    set link y2 via 0.2248*y inverse y/0.2248
    plot x
    

    example for <code>set link</code>

提交回复
热议问题