Untitled
unknown
plain_text
11 days ago
2.2 kB
3
Indexable
# Create the figure and axis for the table fig, ax = plt.subplots(figsize=(12, 14)) ax.axis("off") # Hide the axis # Table data including headers table_data = [ ["Date", "Time", "Subject", "Topics"], ["March 14", "8:00 - 11:00 AM", "Biology", "Evolution (Darwin’s Theory, Human Evolution)"], ["March 14", "11:30 - 1:30 PM", "Biology", "Human Health & Disease (Immunity, AIDS, Cancer)"], ["March 14", "3:00 - 5:00 PM", "Biology", "Solve PYQs (Evolution & Health)"], ["March 14", "6:00 - 7:30 PM", "Painting", "Composition practice & color theory"], ["March 14", "8:00 - 9:30 PM", "Biology", "Quick revision & NCERT notes"], ["March 15", "8:00 - 11:00 AM", "Biology", "Strategies for Enhancement in Food Production"], ["March 15", "3:00 - 6:00 PM", "Painting", "Brushwork practice & detailing"], ["March 16", "8:00 - 11:00 AM", "Biology", "Solve a full-length Mock Test"], ["March 16", "3:00 - 7:00 PM", "Painting", "Final detailing & refinement"], ["March 17", "8:00 - 10:00 AM", "Biology", "Revise Diagrams & Key Formulas"], ["March 17", "10:00 AM - 6:00 PM", "Painting", "Final full practice"], ["March 18", "PAINTING EXAM", "No Biology", "Focus on Painting Exam"], ["March 19", "8:00 - 11:00 AM", "Biology", "Biotechnology - Principles & Processes"], ["March 20", "8:00 - 11:00 AM", "Biology", "Organisms & Populations"], ["March 21", "8:00 - 11:00 AM", "Biology", "Solve a Full Biology Mock Test"], ["March 22", "8:00 - 11:00 AM", "Biology", "Biodiversity & Conservation"], ["March 23", "8:00 - 11:00 AM", "Biology", "Revise Ecology & Environmental Issues"], ["March 24", "8:00 - 11:00 AM", "Biology", "Revise NCERT Line by Line"], ["March 25", "BIOLOGY EXAM", "Revise key notes", "Give your best!"], ] # Create the table table = ax.table(cellText=table_data, cellLoc="center", loc="center", colWidths=[0.15, 0.2, 0.2, 0.45]) # Style the table table.auto_set_font_size(False) table.set_fontsize(12) table.auto_set_column_width([0, 1, 2, 3]) # Save as a JPEG image image_path = "/mnt/data/CBSE_Study_Plan.jpg" plt.savefig(image_path, format="jpeg", bbox_inches="tight", dpi=300) # Return the image path image_path
Editor is loading...
Leave a Comment