Data Visualization
Data Visualization
Presented by
Mrs. Susmita Cholkar
Learning Objective
Introductions to Data
Visualization Matplotlib Bar Graph Histogram Pie
Library and its advantages Chart
Line Plot
• It possesses the ability to work well with many operating systems and graphic backends.
• It possesses high-quality graphics and plots to print and view for a range of graphs such as
histograms, bar charts, pie charts, scatter plots and heat maps.
• It has full control over graph or plot styles such as line properties, thoughts, and access
properties
LinePlot
Markeredgecolor used to specify the marker edge color by default it take the
same color as the line.
Linestyle used to change the line style such as 'solid I dashed',
'dashdot',
'dotted')
Linewidth used to adjust the width of the line around the bar
Multiple Line Graph with Customizations
Bar graph
•Bar graph represents the data using bars either in Horizontal or
Vertical directions. Bar graphs are used to show two or more values
and typically thexis should be categorical data. The length of the bar
is proportional to the counts of the categorical variable on x-axis.
•
• Function:
•
• The function used to show bar graph is 1plt.bar()'
• The bar() function expects two lists of values one on x-
coordinate and another on y-coordinate
BAR Graph
Customization of Bar Graph
BAR Graph
You can also specify different colors for different bars, edge-color & width.
Multiple bar charts
•We can plot multiple bar charts by playing with the thickness and the positions of
the bars. The data variable contains three series of four values.
The following code will show three bar charts of four bars.
•The bars will have a thickness of 0.25 units.
•Each bar chart will be shifted 0.25 units from the previous one.
•The data object is a multidict containing number of students passed in three subjects of a school
• 'bar' is a traditional bar-type histogram. If multiple data are given the bars are
arranged side by side.
• 'barstacked' is a bar-type histogram where multiple data are stacked on top of
each other.
• 'step' generates a lineplot that is by default unfilled.
• 'stepfilled' generates a lineplot that is by default filled.