title: "Stretching" dataset in python
body: <p>I have a dataset <code>t1</code> that I would like to stretch. As you can see below, it has a length of 9. Could I stretch it to a length of 30 without adding padding values. Ideally, the property of the datset (= for example how the values change) should be kept as much as possible. Could anyone give me some hint/advise?</p>
  
  <pre><code>t1=[106.7, 106.7, 99.94, 95.83, 92.84, 90.44, 88.3, 86.12, 82.22, 77.2]
  plt.plot(range(0,len(t1)), t1)
  plt.legend()
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/G9Bz5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G9Bz5.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>Dataset rescaled with zoom :
  <a href="https://i.stack.imgur.com/MlpMu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MlpMu.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>I took a different dataset and rescaled with mean:</p>
  
  <pre><code>t1= [144.8025, 144.3592, 143.6091, 142.5525, 141.1892, 139.5193, 137.5428, 135.2597, 132.6699, 129.7736, 126.5706, 123.061, 119.2447, 115.1218, 110.6924, 105.9563, 100.9135, 95.5642, 89.9082, 83.9456, 77.6764, 71.1005, 64.2181, 57.029, 49.5333, 41.7309, 33.622, 25.2064, 16.4842, 7.4554, 144.7695, 144.293, 143.5099, 142.4202, 141.0239, 139.3209, 137.3113, 134.9951, 132.3723, 129.4428, 126.2068, 122.6641, 118.8148, 114.6588, 110.1963, 105.4271, 100.3513, 94.9689, 89.2798, 83.2841, 76.9818, 70.3729, 63.4574, 56.2352, 48.7064, 40.871, 32.729, 24.2804, 15.5251, 6.4632, 141.1892, 139.5193, 137.5428, 135.2597, 132.6699, 129.7736, 126.5706, 123.061, 119.2447, 115.1218, 110.6924, 105.9563, 100.9135, 95.5642, 89.9082, 83.9456, 77.6764, 71.1005, 64.2181, 57.029, 49.5333, 41.7309, 33.622, 25.2064, 16.4842, 7.4554]
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/I4l2s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I4l2s.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>Above plot in seperated plot with fixed size <code>plt.figure(figsize=(12, 6))</code></p>
  
  <p><a href="https://i.stack.imgur.com/rSETK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rSETK.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/QEv5N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QEv5N.png" alt="enter image description here"></a></p>