title: Gnuplot use two different scales in the same axis
body: <p>I am trying to create a graphic using gnuplot 5.0 with two scales in the same x axis. I have managed to create one using the multiplot option with the following code:</p>
  <pre><code>reset
  
  set terminal pngcairo
  set output &quot;test.png&quot;
  
  unset key
  set ylabel &quot;Temperature (C)&quot;
  set ytics nomirror
  set yrange[0:7]
  
  set multiplot layout 1,2
  
  set xrange [0:5.99] #Avoid plotting the last xtics in the first graphic
  set xlabel &quot;Heating time (minutes)&quot;
  set rmargin at screen 0.7
  plot x
  
  set xrange [0:4]
  set xlabel &quot;Seconds after stop&quot;
  set rmargin
  set lmargin at screen 0.7
  set xtics 1
  unset ylabel
  unset ytics
  set y2tics nomirror
  set format y2 ''
  f(x) = a * exp (-x*b)
  a=6
  b=1 
  plot f(x)
  </code></pre>
  <p>With this result:</p>
  <p><a href="https://i.stack.imgur.com/NMSmY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NMSmY.png" alt="enter image description here" /></a></p>
  <p>I want to generate several images like this one and add them in a multiplot arrangement, but I am not sure if using nested multiplots will be easy. Is there an easier way to obtain each of the images without using multiplot, like splitting the xaxis in two components?</p>
  <p>Thanks in advance.</p>