title: how to run code pyautogui after plt.show()
body: <p>I want move a chart after run <code>plt.show()</code> but my code <code>pyautogui</code> dont run unless I close the chart. I searched on Google but inefficient.</p>
  <pre><code>plt.show()
  pyautogui.hotkey('winleft', 'left')
  pyautogui.hotkey('winleft', 'up')
  pyautogui.press('esc')
  </code></pre>
  <p>before:
  <a href="https://i.stack.imgur.com/TdI7K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TdI7K.png" alt="enter image description here" /></a></p>
  <p>and after code &quot;pyautogui&quot;:
  <a href="https://i.stack.imgur.com/HSBX1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HSBX1.png" alt="enter image description here" /></a></p>