Is it possible to plot two curves, with two corresponding axes in gnuplot, each of which has a different scale?
For example, y=x**2
and y=x**4
in the same graph (they vary enough to be "uncomfortable" when plotted with the same scale).
Is it possible to plot two curves, with two corresponding axes in gnuplot, each of which has a different scale?
For example, y=x**2
and y=x**4
in the same graph (they vary enough to be "uncomfortable" when plotted with the same scale).
You can have the axes handled automatically without you having to scale them yourself and keep auto-scaling:
It is possible to set different ranges for y and y2 (the right axes), and even to set the color of the labels/tics independently.
Then we simply divide the second function by 2 (or something appropriate) and set the colors... as in this example: