Assignments: MATPLOTLIB

List of Assignments

Assignment – 01:

Consider following data:
Name = [Zain, Sania, Alex, Bob, Maria ]
Age = [14, 12, 17, 10, 13 ]
Weight = [38, 27, 42, 23, 29 ]
Grades = [8.8, 8.5, 9.2, 5.3, 7.8 ]

  1. Plot line chart for Name vs Age
  2. Plot line chart for Name vs Age, Name vs. Weight and Name vs. Grade in single canvas
  3. Add appropriate legends in previous chart
  4. Create subplots to fit all three chars in single chart

Assignment – 02:

Consider the data and plots of Assignment 1 and add following to the last plot

  1. Add X-axis and Y-axis limits and understand the effect of axis limit settings
  2. Insert appropriate chart title and axis lables
  3. Set up major grid and customize it with your choice of settings
  4. Set up minor grid and customize it with your choice of settings
  5. Add xticks to the graph
  6. Add yticks to the graph