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

Assignment – 03:

Use following data:

Consider following data:
Time = [7, 8, 9, 10, 11 ]
Rain = [20, 24, 18, 25, 21 ]

Plot the individual line chart (7 charts) and demonstrate following customization:

  • Colors
  • Transperancy
  • Line style
  • Line width
  • Marker styles
  • Marker size
  • Marker face colors

Assignment – 04:

Use test data file.

Go thoorught this YoutTube Tutorial and implement it on testdata file.