0
votes

I am struggling to find a way to reduce an x axis with gnuplot. I am plotting two different data set and , if you look at my plot (PLOT), I have a lot a space between the two data set I am plotting. I would like to "remove" them because if I do so, people will understand that the single data set is similar to a sinusoidal signal. Looking at this plot, one cannot say so.

I did not find anything useful in the web. Can you help me?

Thank you, Martina.

2

2 Answers

0
votes

You can have two plots use different x axes, but the same y axis, by specifying axes x2y1 for one of them. For example, something like

set xtics nomirror
set x2tics
plot "file1" w p, "file2" axes x2y1 w p

should do what you want. For other possible combinations see help axes.

0
votes

Thank you for your tips. It will be useful in the future. However this does not solve my problem. In fact in this way I will have the two dataset overlapped, as in this plot. Instead I would like to have the two data set as a continuum, avoiding all the space you can see in the plot of my first post.

Thank you again.