0% found this document useful (0 votes)
3 views2 pages

Matplotlib Assignment

The assignment involves downloading a dataset and performing various data visualization tasks using Matplotlib. Tasks include creating line plots, scatter plots, bar charts, histograms, pie charts, and subplots to display sales data for different products. Each question specifies the required plot styles and properties for effective data representation.

Uploaded by

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

Matplotlib Assignment

The assignment involves downloading a dataset and performing various data visualization tasks using Matplotlib. Tasks include creating line plots, scatter plots, bar charts, histograms, pie charts, and subplots to display sales data for different products. Each question specifies the required plot styles and properties for effective data representation.

Uploaded by

anus28195
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Matplotlib Assignment

For this assignment, download the dataset using following link, and solve following
questions:
[Link]

Q.1 Read Total profit of all months and show it using a line plot.
Total profit data provided for each month. Generated line plot must include the following properties:
X label name = Month Number
Y label name = Total profit
Q.2 Get total profit of all months and show line plot with the following Style properties.
Generated line plot must include following Style properties: –

 Line Style dotted and Line-color should be red


 Show legend at the lower right location.
 X label name = Month Number
 Y label name = Sold units number
 Add a circle marker.
 Line marker color as read
 Line width should be 3

Q.3 Read all product sales data and show it using a multiline plot.

Display the number of units sold per month for each product using multiline plots. (i.e., Separate
Plotline for each product)

Q.4 Read toothpaste sales data of each month and show it using a scatter plot

Q.5 Read face cream and facewash product sales data and show it using the bar chart.

The bar chart should display the number of units sold per month for each product. Add a separate bar
for each product in the same chart.

Q.6 Read sales data of bathing soap of all months and show it using a bar chart.

Q.7 Read the total profit of each month and show it using the histogram to see the most
common profit ranges.

Q.8 Calculate the total sale data for last year for each product and show it using a Pie chart.
Q.9 Read bathing soap facewash of all months and display it using the subplot.

Q.10 Read all product sales data and show it using the stack plot.

You might also like