0% found this document useful (0 votes)
42 views1 page

Code2pdf 67421864d0188

Uploaded by

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

Code2pdf 67421864d0188

Uploaded by

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

import matplotlib.

pyplot as plt
import numpy as np

# Data for Average Marks of Top 500 Students


institutions = ['Aakash', 'FIITJEE', 'PW (Toppers Batch)', 'PW (General)', 'Sri Chaitanya', 'Unacademy']
average_marks = [600, 590, 610, 605, 595, 595]

# Data for Top Scorer Marks in Each Institution/Batches


top_scorer_marks = [710, 708, 715, 705, 700, 698]

# Data for Average Rank Improvement per Mock Test


rank_improvement = [20, 15, 18, 12, 10, 8]

# Create the figure


fig, axs = plt.subplots(3, 1, figsize=(10, 15))

# Chart 1: Average Marks of Top 500 Students


axs[0].bar(institutions, average_marks, color=['blue', 'green', 'orange', 'orange', 'purple', 'red'])
axs[0].set_title("Average Marks of Top 500 Students")
axs[0].set_ylabel("Marks (out of 720)")
axs[0].set_ylim(0, 720)

# Chart 2: Top Scorer Marks in Each Institution/Batches


axs[1].plot(institutions, top_scorer_marks, color='magenta', marker='o', linestyle='--')
axs[1].set_title("Top Scorer Marks in Each Institution/Batches")
axs[1].set_ylabel("Marks (out of 720)")
axs[1].set_ylim(690, 720)

# Chart 3: Average Rank Improvement per Mock Test


axs[2].bar(institutions, rank_improvement, color=['skyblue', 'lightgreen', 'gold', 'orange', 'violet', 'pink'])
axs[2].set_title("Average Rank Improvement per Mock Test")
axs[2].set_ylabel("Rank Improvement")

# Add a title for the entire figure


fig.suptitle("Enhanced Performance Comparison: Mahir's Batch vs. Institutions", fontsize=16, fontweight='bold')

# Adjust layout and save the figure


plt.tight_layout(rect=[0, 0, 1, 0.95])
plt.savefig("performance_comparison.jpg", format='jpg', dpi=300)

print("Chart saved as 'performance_comparison.jpg'")

You might also like