Multiple plot are displayed on one plot by matplotlib

i run these python codes in Rstudio but plots show in one plot like uploaded picture
#first code

iris = datasets.load_iris()
df = pd.DataFrame(, columns=iris.feature_names)

#second code

grade = ['A', 'B', 'C', 'D', 'E']
n = [ 5, 10,  8,  3 , 2]
plt.ylabel('No of student')
a=plt.xticks(k, grade)

#third code

class1= np.array([60,70,80,83,85,87,88,89,90,92,94,95,97,100,110])
class2 = np.array([130,143,150,158,160,170,175,182,185,188,190,200,210,280,300])

how can i draw each plot in separate plot?

output figs

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.