title: Matplotlib timedelta set ylim
body: <p>I have a series of graphs which are plotting different days on the x axis and time in minutes on the y axis.
  <a href="https://i.stack.imgur.com/AT4pR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AT4pR.png" alt="enter image description here"></a>
  The graphs all have a different max value and I want to set the ylim to be the same for them. I tried selecting the max value from my pandas dataframe, and setting this as the max using ylim. This gave the error message:</p>
  
  <pre><code>TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
  </code></pre>
  
  <p>I tried manually setting the limit as 7 as this should keep the visualisation similar to below, but instead I get:
  <a href="https://i.stack.imgur.com/s28CR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s28CR.png" alt="enter image description here"></a></p>
  
  <p>How can I amend the limits when the y axis is in timedelta and measured in minutes?</p>