Back to Blog
April 6, 2024

【Tracé de graphiques avec Python】Guide d'utilisation de matplotlib ! 〜 Pour débutants 〜 Introduction à la programmation

【Tracé de graphiques avec Python】Guide d'utilisation de matplotlib ! 〜 Pour débutants 〜 Introduction à la programmation

How to draw graphs with Python and use them for matrix plots

In this video, we will learn how to draw graphs with Python and how to use them for matrix plots. After watching this video, you will be able to quickly create graphs using Kurakata Python. So, please watch until the end.

Terminology of matrix plotting

Before drawing the graph, we will explain the terminology of matrix plotting that we will use this time to draw the graph. Of course, you don't need to memorize all of this. Once you have quickly looked at the parts that the graph has and the type of protons it has, you can feel and remember these parts during the demonstration and act accordingly.

Drawing a graph

We will draw a graph like this from now on, but the first thing we will do is to draw this part of the canvas as a figure, and then we will draw the x-axis of one of the graphs in the figure. Since we are accessing this drawn area on the y-axis, the most fundamental thing is to draw an access graph area on a figure canvas. The situation is like this, but multiple accesses can be made on one figure. We can also draw it like this: The horizontal axis is the x-axis, and the vertical axis is the label for the x-axis, and the y-axis is the label for the y-axis. The scale of the x-axis should be x points, and the scale of the y-axis should be "per point". The title of the graph should be "General Business Purchases". The explanatory part of the graph should be "legend". We also call the ruled lines grids.

How to draw graphs with Python

First of all, you need to have Mat Pro and Liv installed in advance. In this video, you can do your own research. I have set the color theme of the Jupiter Notebook to dark to make it easier to see. But if I set it immediately, I think it will be a white screen. In this video, you can do your own research. I have set the color theme of the Jupiter Notebook to dark to make it easier to see. But if I set it immediately, I think it will be a white screen.

How to draw a bar graph

When I tried to draw a bar graph, the access object of the plotting method was drawn as a bar instead of a plot. The arguments that call the method are essentially the same as those for plotting, so for example, let's change only the method "Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa better today" to the bar method.

How to draw a scatter plot

A scatter plot can be used to see the relationship between two given values. For example, the relationship between two values such as monster and height. For scatter plots, call the scatter method of the access object. It's the same as the previous graphs.

How to draw a histogram

A histogram is useful when using data grammar. You can divide it into 4 straight intervals and check the number of data that corresponds to that interval. For example, let's check what kind of distribution the test scores have for the 2nd year 1st district 3. For the histogram, use the list method of the access object. The first argument is the target data. In this case, we will use everyone's test scores. You can specify the scores in a list.

How to save the graph as an image in a file

It is very simple to save the graph as an image in a file. Just call the Seibu Fig method of the figure object you just created. Specify the file path you want to save as an argument. So, in this state, use the Seibu Phil figure object to pin the tailwind.

Conclusion

If you want to draw a graph using the data you have, please try using Mat Prodlib. You can draw the graph in Excel, but if there is data in Python, it would be more convenient to create a graph using Python. If you have any questions about the content of the video, please leave them in the comments section and I will try to answer as much as possible.

Related Articles

E-commerce
Amazon’s Competitors and Business Innovations: An In-Depth Analysis in 2025

Amidst a rapidly shifting digital retail landscape, the contest for dominance extends far beyond the reach of Amazon. Major competitors such as eBay, Walmart, and Alibaba are leveraging unique business models, expansive product portfolios, and innovative customer engagement strategies to claim their

Dec 29, 2025
Read more
E-commerce
Amazon Pallets for Sale: Deep Dive Guide to Profitable Sourcing and Reselling in 2024

Amazon pallets for sale represent a growing frontier for entrepreneurs and small businesses aiming to acquire goods at deep discounts. By harnessing the vast flow of returns, liquidations, and overstocked inventory, savvy buyers can procure merchandise at a fraction of retail value. The evolution of

Dec 29, 2025
Read more
E-commerce
Beyond Facebook Marketplace: Comprehensive Guide to Top Alternatives, Optimizing Sales, and Navigating the Online Selling Landscape

The landscape of online buying and selling has evolved at a meteoric pace, reshaping consumer expectations and creating vibrant digital marketplaces tailored to nearly every need. Facebook Marketplace, launched by Meta, stands as a testament to the power of peer-to-peer commerce. Its ease of use and

Dec 29, 2025
Read more
VOC AI Inc. 160 E Tasman Drive Suite 202 San Jose, CA, 95134 Copyright © 2025 VOC AI Inc.All Rights Reserved. Termes et conditions Politique de confidentialité
Ce site web utilise des cookies
VOC AI utilise des cookies pour garantir le bon fonctionnement du site web et pour stocker des informations sur vos préférences, vos appareils et vos actions passées. Ces données sont agrégées ou statistiques, ce qui signifie que nous ne pourrons pas vous identifier individuellement. Vous trouverez plus de détails sur les cookies que nous utilisons et sur la manière de retirer votre consentement dans notre page Politique de confidentialité.
Nous utilisons Google Analytics pour améliorer l'expérience des utilisateurs de notre site web. En continuant à utiliser notre site, vous consentez à l'utilisation de cookies et à la collecte de données par Google Analytics.
Acceptez-vous ces cookies ?
Accepter tous les cookies
Refuser tous les cookies