Data Visualization
Data Visualization
importing Matplotlib-
plt.plot(x, y, ‘colorname’)
CREATED BY: SACHIN BHARDWAJ, PGT (CS) KV NO.1 TEZPUR, MR. VINOD
KUMAR VERMA, PGT (CS) KV OEF KANPUR
Program:
Output:
Changing line color and line width and
line style :
Changing Marker Type, Size and Color
Output-
Multiple Bar Graph:
To draw multiple bar chart:
Shadow option-
Shadow= True indicates that the pie chart should be
displayed with a shadow. This will improve the look of the
chart.
For example- we can collect the age of each employee in an office and
show it in the form of a histogram to know how many employees are
there in the range 0-10 years, 10-20 years and so on. For this we can
create histogram like this-
Output-
rwidth=0.6 means
that the
bars width is 60%.
There will be a
gap of 40% space
before and after
the bar.
Example 2-
Output-