Important Programs Plotting With Python Class 12
Important Programs Plotting With Python Class 12
TutorialAICSIP
A best blog for CBSE Class
IX to Class XII
SUBJECTS
Important Programs Plotting
with Python Class 12 Artificial Intelligence
By tutorialaicsip
Computer Science
OCT 27, 2020
Informatics Practices
In this article, you will find Important Programs Plotting with Python Class 12. You can use
Information Technology
these programs in your practical file as practical records.
Class 12
In this section of important programs plotting with python class 12, we will cover practicals to
Connect with us
plot a single line chart.
for an update
Subscribe
1. Write a title for the chart “The Weekly Income Report”. Join 8,074 other
2. Write the appropriate titles of both the axes.
subscribers
3. Write code to Display legends.
4. Display red color for the line.
Trending
5. Use the line style – dashed
6. Display diamond style markers on data points
CBSE
Artificial
Intelligence
Class 10
Sample Paper 2023-24 –
A Comprehensive Guide
Comprehensi
ve Guide
Answer Key
Artificial
Intelligence Class 10
Board Exam 2023
Answer Key
Computer
Science
Class 12
Board Paper 2023 PDF
Easy Complete Solutions
[2] A Shivalik restaurant has recorded the following data into their register for their income by
Drinks and Food. Plot them on the line chart.
Python
MySQL
Day Monday Tuesday Wednesday Thursday Friday connectivity
class 12 in 4
Drinks 450 560 400 605 580 easy steps
LATEST
A python program to
check valid password
Notes Entrepreneurial
import matplotlib.pyplot as pp
Skills Class10 – Simple
day =['Monday','Tuesday','Wednesday','Thursday','Friday']
and Comprehensive
dr = [450,560,400,605,580]
fd = [490,600,425,610,625]
CBSE Sample Paper 2024
pp.plot(day,dr,label='Drinks',color='g',linestyle='dotted',marker='+') for Information
pp.plot(day,fd,label='Food',color='m',linestyle='dashdot',marker='x') Technology Class 10
pp.title("The Weekly Restaurant Orders")
Everything You Need to
Know About
pp.xlabel("Days")
pp.ylabel("Orders")
CBSE Artificial
pp.legend()
Intelligence Class 10
pp.show() Sample Paper 2023-24 –
A Comprehensive Guide
[3] Observe the given data for monthly views of one of the youtube channels for 6 months. Plot Comprehensive notes
them on the line chart. Information and
Communication
Technology Skills class
Month January February March April May June 10
1. Give the title for the chart – “Youtube Stats” Pandas Series program to
display palindrome names
2. Use the “Month” label for X-Axis and “Views” for Y-Axis.
for IP Class 12
3. Display legends.
4. Use dashed lines with the width 5 point.
5. Use red color for the line.
6. Use dot marker with blue edge color and black fill color.
[4] Consider the following data of a medical store and plot the data on the line chart:
5 Solved IP Practical
Paper CBSE Board Exam
2023
R
at
[5] Use above data and subplot sanitizer data and handwash data. e
o
ur
w
eb
sit
e
Name (required)
Email (required)
import matplotlib.pyplot as pp
mon =['March','April','May','June','July','August']
2 - Poor
pp.subplot(2,1,1)
3 - Average
pp.plot(mon,san,label='Sanitizer',color='b',linestyle='dashed',
4 - Good
linewidth=4,\
5 - Excellent
marker='o', markerfacecolor='k', markeredgecolor='r')
pp.title("Fitwell Medical Store")
How could we
improve? (required)
pp.legend()
pp.subplot(2,1,2)
pp.plot(mon,hw,label='Handwash',color='r',linestyle='dashed', linewidth=4,\
marker='v', markerfacecolor='k', markeredgecolor='b')
pp.xlabel("Months")
pp.ylabel("Covid Protections")
pp.legend()
pp.show()
Send
Output:
Feedback
[6] Write a program to plot a range from 1 to 30 with step value 4. Use the following algebraic
expression to show data.
y = 5*x+2
import matplotlib.pyplot as pp
import numpy as np
x = np.arange(1,30,4)
y = 5 * x + 2
pp.plot(x,y)
pp.show()
Output:
[7] Display following bowling figures through bar chart:
Overs Runs
1 6
2 18
3 10
4 5
import matplotlib.pyplot as pp
overs =[1,2,3,4]
runs=[6,18,10,5]
pp.bar(overs,runs,color='m')
pp.xlabel('Overs')
pp.xlabel('Runs')
pp.title('Bowling Spell Analysis')
pp.xticks([1,2,3,4])
pp.yticks([5,10,15,20])
pp.show()
Output:
[8] Observe following data and plot data according to given instructions:
1. Create a bar chart to display data of Virat Kohli & Rohit Sharma.
Customize the chart in this manner
Use different widths
Use different colors to represent different years score
Display appropriate titles for axis and chart
Show legends
2. Create a bar chart to display data of Steve Smith, Kane Williamson & Jos Butler.
Customize Chart as per your wish.
3. Display data of all players for the specific year.
Data transfer CSV to dataframe class Program List Python DataFrame for
12 IP – Important Programs Practical File
By tutorialaicsip
RELATED POST
LOG IN TO REPLY
tutorialaicsip says:
at
LOG IN TO REPLY
Bhagwan says:
at
LOG IN TO REPLY
TheWeebGuy says:
at
LOG IN TO REPLY
No one says:
at
LOG IN TO REPLY
LOG IN TO REPLY
AD
Leave a Reply
You must be logged in to post a comment.
Privacy Policy 200 + Important CBSE Computer Science Class 12 previous year
Contact Us questions
Terms & Conditions A comprehensive notes for Informatics Practices with Python – CBSE
Disclaimer Curriculum 2023
About us – TutorialAICSIP educational blog AI Class 10 AI Project Cycle Revision Notes Very Important
Computer Science Class 12 Notes A Comprehensive Guide An easy explanation for Courses on TutorialAICSIP for 9 to 12
Informatics Practices Class12 Comprehensive Study Material CBSE IT 402 Class 10 complete Study Material accomplish your goal
An easy explanation for Courses on TutorialAICSIP for 9 to 12 Comprehensive notes Artificial Intelligence Class 9 CBSE
Home – TutorialAICSIP comprehensive blog for CBSE 10, 11, 12 Comprehensive notes CBSE Computer Science 2022-23
10+ Solved IP Class 12 Term 2 Sample Paper 2022 – Important Comprehensive study Material CBSE Computer Applications Class 10
Most Useful Sample Paper Computer Science Class 12 Computer Science Class 12 Notes A Comprehensive Guide
100+ Important and Most expected questions IP Class 12 CUET Computer Science Informatics Practices 308 Comprehensive
100+ Important Most expected questions Computer Science Class 12 Notes
CUET Computer Science Informatics Practices 308 Comprehensive Embed iList
Notes important CUET UG 2022 sample questions Computer Science
important CUET UG 2022 sample questions Computer Science Informatics Practices Class12 Comprehensive Study Material
Python tkinter Tutorial 2022 Comprehensive Guide Python tkinter Tutorial 2022 Comprehensive Guide
200 + Important CBSE Computer Science Class 12 previous year
questions
Embed iList