title: Wonder-twin power "Zoom to rectangle" activate?
body: <p><img src="https://i.stack.imgur.com/HJQb6.png" alt="enter image description here"></p>
  
  <p>Is there a way to have the "Zoom to rectangle" tool automatically activated by default when a matplotlib figure is shown?</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  x = np.arange(-300, 300)
  y = x**2-7*x
  fig = plt.figure()
  ax = fig.add_subplot(1,1,1)
  plt.plot(x, y)
  # Add something here to activate the "Zoom to rectangle" tool?
  plt.show()
  </code></pre>