Become a Python Data Analyst by Alvaro Fuentes

Become a Python Data Analyst by Alvaro Fuentes

Author:Alvaro Fuentes
Language: eng
Format: epub
Tags: COM062000 - COMPUTERS / Data Modeling and Design, COM018000 - COMPUTERS / Data Processing, COM021030 - COMPUTERS / Databases / Data Mining
Publisher: Packt Publishing
Published: 2018-08-31T15:34:46+00:00


import matplotlib as plt

Our first command includes the plot function from the plt module and pyplot module, and we will also pass a list of numbers. So, when we execute the line, we will see that the command creates a figure. In the following diagram, we have a figure even though we cannot see it, inside the figure we have a subplot, and inside this subplot we have a line plot that is just a graphical representation of the numbers we have in this list:

In the preceding diagram, we can see what this function did, and this figure is considered to be the current figure. Every other function that we use or apply, for instance, if we call this function plt.ylabel, would place a label in the y axis and will be known as ylabel. The label, in this case, is some numbers. Let's run it again and view the following diagram, wherein we can see how this function is applied or has made the label appear in the y axis, as shown in the following diagram:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.