title: seaborn figure saving problem.how can i solve it?
body: <p><a href="https://i.stack.imgur.com/bVgh2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bVgh2.png" alt="here is my data format" /></a></p>
  <p>And here is my code,</p>
  <blockquote>
  <pre><code>ax = sns.lineplot(x=&quot;time&quot;, y=&quot;Aerosol_Optical_Depth_Land_Ocean&quot;, data=df)
  
  ax.tick_params(rotation=45)
  fig = ax.get_figure()
  fig.savefig(&quot;aod_timeSeries.png&quot;) 
  plt.show()
  </code></pre>
  </blockquote>
  <p>when I run this code it saves the figure.it cuts the x-label.
  <a href="https://i.stack.imgur.com/35jDa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/35jDa.png" alt="saved picture" /></a></p>
  <p>But when I download the figure it looks perfect.<a href="https://i.stack.imgur.com/ADGLF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ADGLF.png" alt="downloaded picture" /></a>
  but I wanted to save this with code.
  I also tried this way</p>
  <blockquote>
  <p>plt.savefig(&quot;aod_timeSeries.png&quot;)</p>
  </blockquote>