[go: up one dir, main page]

0% found this document useful (0 votes)
31 views22 pages

Data Visualization 1 Ip

very useful notes

Uploaded by

madhavmanoj08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views22 pages

Data Visualization 1 Ip

very useful notes

Uploaded by

madhavmanoj08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

Data Visualization

Using pyplot of Matplotlib Library

Installing matplotlib
Importing Pyplot
Basics f Simple Plotting
Applying various Settings in plot() Function
Line Chart using plot() Function
Specifying Plot Size and Grid
Character Color
‘b’ Blue
‘g’ Green
‘r’ Red
‘m’ Magenta
‘y’ Yellow
‘k’ Black
‘c’ Cyan
‘w’ White
Marker Description Marke Description
‘.‘ Point marker r
‘,‘ Pixel marker ‘p’ Pentagon marker
‘*’ Star marker
‘o’ Circle marker
‘+’ Plus marker
‘x’ X marker
‘D’ Diamond marker
‘d’ Thin_diamond
marker
Smile NGO has participated in a three week cultural mela. Using Pandas, they have stored the sales (in Rs) made
day wise for every week in a CSV file named “MelaSales.csv”, as shown

Depict the sales for the three weeks using a Line chart. It should have the following:
i. Chart title as “Mela Sales Report”.
ii. axis label as Days.
iii. axis label as “Sales in Rs”.
Line colours are red for week 1, blue for week 2 and brown for week 3.

You might also like