<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Matplotlib on That&#39;s it ! Code Snippets</title>
    <link>https://thats-it-code.com/categories/matplotlib/</link>
    <description>Recent content in Matplotlib on That&#39;s it ! Code Snippets</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 08 May 2023 23:05:35 +0900</lastBuildDate><atom:link href="https://thats-it-code.com/categories/matplotlib/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Change Font Style and Size in Matplotlib</title>
      <link>https://thats-it-code.com/matplotlib/how-to-change-font-style-and-size-in-matplotlib/</link>
      <pubDate>Mon, 08 May 2023 23:05:35 +0900</pubDate>
      
      <guid>https://thats-it-code.com/matplotlib/how-to-change-font-style-and-size-in-matplotlib/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Matplotlib&lt;/strong&gt; is a powerful Python library that allows users to create various visualizations. While creating these visualizations, it is often necessary to adjust the &lt;strong&gt;font style and size&lt;/strong&gt; to improve readability and aesthetics. In this article, we will discuss how to change the font style and size in &lt;strong&gt;Matplotlib&lt;/strong&gt; using various methods.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://thats-it-code.com/img/matplotlib-font-style.png&#34; alt=&#34;Matplotlib&#34;&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>How to Set Legend Position in Matplotlib</title>
      <link>https://thats-it-code.com/matplotlib/how-to-set-legend-position-in-matplotlib/</link>
      <pubDate>Mon, 08 May 2023 21:50:13 +0900</pubDate>
      
      <guid>https://thats-it-code.com/matplotlib/how-to-set-legend-position-in-matplotlib/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Adjusting the legend position in Matplotlib plots is essential for enhancing readability and aesthetics. In some cases, the default legend location may overlap with the data, making it difficult to interpret the plot. By customizing the legend position, you can ensure it does not obstruct crucial information. Depending on the plot&amp;rsquo;s purpose, you may want to place the legend inside or outside the plot area. Choosing an appropriate legend location is crucial for creating informative and visually appealing plots, whether for presentations, reports, or sharing with colleagues.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://thats-it-code.com/img/matplotlib-legend-pos.png&#34; alt=&#34;Matplotlib&#34;&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>3 Methods to Save Plot as Images or PDF File in Matplotlib</title>
      <link>https://thats-it-code.com/matplotlib/3-methods-to-save-figure-as-image-or-pdf-files-in-matplotlib/</link>
      <pubDate>Mon, 08 May 2023 19:17:57 +0900</pubDate>
      
      <guid>https://thats-it-code.com/matplotlib/3-methods-to-save-figure-as-image-or-pdf-files-in-matplotlib/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Matplotlib&lt;/strong&gt; is a powerful plotting library in Python that offers a variety of visualization options. Sometimes, you may want to save your plots as image files instead of displaying them. This can be useful for sharing, including in presentations or reports, or for further processing. In this article, we will discuss three methods to save plots as image files in Matplotlib: using &lt;strong&gt;savefig()&lt;/strong&gt;, using &lt;strong&gt;imsave()&lt;/strong&gt;, and using &lt;strong&gt;PIL&lt;/strong&gt; (Python Imaging Library).&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://thats-it-code.com/img/matplotlib-save-image.png&#34; alt=&#34;Matplotlib&#34;&gt;&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>3 Methods to Change Figure Size in Matplotlib</title>
      <link>https://thats-it-code.com/matplotlib/3-methods-to-change-figures-size-in-matplotlib/</link>
      <pubDate>Sun, 07 May 2023 21:44:38 +0900</pubDate>
      
      <guid>https://thats-it-code.com/matplotlib/3-methods-to-change-figures-size-in-matplotlib/</guid>
      <description>&lt;h2 id=&#34;introduction&#34;&gt;Introduction&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Matplotlib&lt;/strong&gt; is a popular Python charting toolkit that enables users to construct a wide range of visualizations such as simple &lt;strong&gt;line plots, scatter plots, bar charts&lt;/strong&gt;, and more. When dealing with Matplotlib, one typical question is how to &lt;strong&gt;change the size of the figures&lt;/strong&gt; they make. This post will go over three different ways to change the size of a figure in &lt;strong&gt;Matplotlib&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;https://images.unsplash.com/photo-1543286386-713bdd548da4?ixlib=rb-4.0.3&amp;amp;ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&amp;amp;auto=format&amp;amp;fit=crop&amp;amp;w=1740&amp;amp;q=80&#34; alt=&#34;Matplotlib&#34;&gt;&lt;br&gt;
By Isaac Smith on Unsplash&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
