You are on page 1of 8

Spoken Tutorial, IIT Bombay

Python 3.4.3
Plotting Data -Assignment
Group Members:
Aditya Anil Patade
Advait Powale

Tutorial 9
Assignment-1
1. Plot the given experimental data with large dots.
∂l ∂t
0.08 0.04
0.09 0.08
0.07 0.03
0.05 0.05
0.06 0.03
0.00 0.03
0.06 0.04
0.06 0.07
0.01 0.08
:-

Assignment-2
1. Plot the given experimental data with small dots. Also include the error in your plot.
S n ∂S ∂n
0.19 10.74 0.006 0.61
0.38 14.01 0.006 0.69
0.57 18.52 0.005 0.53
0.77 20.23 0.003 0.38
0.96 22.88 0.004 0.46
1.15 24.59 0.007 0.37
1.34 27.55 0.004 0.46
1.54 28.48 0.004 0.46
1.73 30.20 0.007 0.37
-
Assignment-3
1. Square the following sequence.
➢ distance_values = [2.1,4.6,8.72,9.03]
:- square(distance_values)

2. Plot l versus t in red pluses from the Simple Pendulum Data.


- plot(l, t, ’r+’)

Spoken Tutorial, IIT Bombay

Python 3.4.3
Other Types Of Plots –Assignments

Tutorial 10
Assignment-1

1. Plot a scatter plot showing the percentage profit of a Company A from the year 2000-2010.

Note: The data for the same is available in the file “company-a-data.txt”. This file is available in
the code file link of this tutorial. Please download and use it.
Assignment-2

1. Read the documentation of scatter.

2. Plot a scatter plot of the same data in company-a-data.txt with red diamond markers.

-
Assignment-3

1. Plot a log-log chart of y = 5x3 for x from 1-20.

-
Assignment-4

1. scatter(x, y, color=’blue’, marker=’d’) and plot(x, y, color=’b’, marker=’d’) does exactly the
same? ➢ True or False

-false

You might also like