title: Jupyter Notebook: Output image in previous line
body: <p>I want to plot some image side by side in my jupyter notebook. So it can save some space for display. For example</p>
  
  <p><a href="https://i.stack.imgur.com/C2QpD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C2QpD.png" alt="enter image description here"></a></p>
  
  <p>This is done through</p>
  
  <pre><code>fig = plt.figure(figsize=(14,3))
  ax1 = fig.add_subplot(1,3,1,projection = '3d')
  ax2 = fig.add_subplot(1,3,2)
  ax3 = fig.add_subplot(1,3,3)
  </code></pre>
  
  <p>And this makes them in one <code>.png</code> file. However, later on in writing the paper, I may only want part of the image. For example, the 2nd or the 3rd in previous plot. And this requires me to <strong>crop the image manually</strong>.</p>
  
  <p>One way I can think of, is to make each subplot seperately, but display them in same line. In Python/Jupyter Notebook, the string output can achieve this by adding a comma at the end of previous line:</p>
  
  <pre><code>print 5, 
  print 6
  # returns 5, 6
  # instead of 
  # 5 
  # 6
  </code></pre>
  
  <p>I'm wondering if there is anything similar in Jupyter Nobebook, that can do something like</p>
  
  <pre><code>plot fig1,
  plot fig2
  # Out put [fig1],[fig2]
  # instead of 
  # fig1 
  # fig2
  </code></pre>
  
  <p>Output fig1, fig2 in the same line, but in seperate <code>.png</code> file?</p>