0% found this document useful (0 votes)
23 views

all python matplotlib program based

Uploaded by

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

all python matplotlib program based

Uploaded by

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

all python matplotlib program based on ncert

I'd be glad to provide Python Matplotlib programs based on NCERT, but I'll need
more specific information to tailor them to your needs. Please tell me:

Grade or Class: This will help me determine the appropriate complexity level.
Specific Topics: Are you interested in line plots, bar charts, histograms, scatter
plots, or other types of visualizations?
Data Sources: Do you have specific datasets in mind, or would you like examples
with sample data?
Here are a few examples to get you started:

Line Plot:

Python

import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [2, 4, 1, 5, 3]

plt.plot(x, y)
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.title('Line Plot')
plt.show()
Bar Chart:

Python

import matplotlib.pyplot as plt

x = ['A', 'B', 'C', 'D']


y = [10, 20, 15, 25]

plt.bar(x, y)
plt.xlabel('Categories')
plt.ylabel('Values')
plt.title('Bar Chart')
plt.show()
Histogram:

Python

import matplotlib.pyplot as plt


import numpy as np

data = np.random.normal(0, 1, 1000)

plt.hist(data, bins=20)
plt.xlabel('Values')
plt.ylabel('Frequency')
plt.title('Histogram')
plt.show()
Scatter Plot:
Python

import matplotlib.pyplot as plt

x = [1, 2, 3, 4, 5]
y = [2, 4, 1, 5, 3]

plt.scatter(x, y)
plt.xlabel('X-axis')
plt.ylabel('Y-axis')
plt.title('Scatter Plot')
plt.show()
Once you provide more details about your specific requirements, I can create more
tailored examples and explanations.

You might also like