Search code examples
linuxplotgnuplotscale

how to plot some data that is in two scales in gnulpot


I want to plot some data that is in two scales.

for 1 < X < 20 , Y is between 0 and 1 and

for 20 < X < 100 Y is between 1 and 20

normal plot has this result: enter image description here

and as you see the carve between 0 and 20 is hidden! how can i solve it?


Solution

  • Use a logarithmic scale

    set logscale y