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.