0

I am quite new to gnuplot. And I've got problem with secondary y axis. When I try to plot two curves into one graph with two different y axis, the second one is moved down a little bit. I mean that if you draw a straight line parallel to the x axis at y1 = 0, you get different y2 values. I want both y axes to start at the same point y1=0 ~ y2=0.

Here is the picture better describing my problem:

enter image description here

Christoph
  • 47,569
  • 8
  • 87
  • 187
  • Just to be clear: even though you said "two different y axis", you want both the left and the right y axis to be exactly the same, starting and ending at exactly the same values and covering the exact same range? – Steve Summit Jun 22 '15 at 16:20
  • No, just starting at the same value. – Ondřej Tinka Jun 22 '15 at 16:21
  • If those axes are correlated (e.g. y1 = 10*y2) then you could use `set link` (requires version 5). Otherwise you must do that manually by selecting the ranges. – Christoph Jun 22 '15 at 17:09

0 Answers0