Each type of visualization represents the data differently.
Figure 3.36: Board showing the most common types of data visualization
Types of Data Visualization
Data Visualization
Scatter plot showing positive correlation between years of experience and age of employee
Bar chart showing the annual min, max and average temperatures recorded in Abha
Line chart showing the annual min, max and average temperatures recorded in Abha
Line Chart
Bar Chart
Scatter Plot
Table 3.12: Methods of Matplotlib library
Matplotlib Library
Categorical data are discrete variables. They can have a certain number of values, for example the number of students in each region in SA.
Histogram showing the distribution of the years of experience among employees
Pie chart showing preferred means of transport as a percentage
Histogram
Pie Chart
Υou are going to select and use only the first five rows of your dataset, to create a clearer bar chart.
The next step is to create the dataset that you are going to use.
Bar Chart
Your bar chart is ready!
The code to create your diagram.
Grouped bar chart
Now let's say you want to plot the number of students, teachers and administrators on the same bar chart. This is called a grouped bar chart and you need to place the bars correctly depending
Matplotlib library has a large collection of settings to edit the style of a chart or graph. You can visit the online documentation of the library for details on each specific setting at http
Now you will create a figure with more than one pie chart.