title: How to display plot which was saved to a variable?
body: <p>My first python question, though.</p>
  
  <p>Consider me working in jupyter notebook with seaborn. Suppose I've created a plot and saved it to a variable:</p>
  
  <pre><code>g = sns.jointplot(ap['ap_lo'], ap['ap_hi']);
  </code></pre>
  
  <p>It will be displayed once, because I addeed <code>%matplotlib inline</code> at the beginning.</p>
  
  <p>Now, after few changes, I want to display <code>g</code> again:</p>
  
  <pre><code>ax = g.ax_joint
  ax.set_xscale('log')
  ax.set_yscale('log')
  g.ax_marg_x.set_xscale('log')
  g.ax_marg_y.set_yscale('log')
  
  sns.plt.show()
  </code></pre>
  
  <p>As you can see, I call <code>sns.plt.show()</code>, but it has no effect. I've also tried to put <code>g;</code> or <code>g; sns.plt.show()</code> at the end.</p>