--- a/plotting-data/questions.rst Wed Nov 17 23:24:57 2010 +0530
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,73 +0,0 @@
-Objective Questions
--------------------
-
-.. A mininum of 8 questions here (along with answers)
-
-1. How do you declare a sequence of numbers in python?
- Give example .
-
- Comma seperated numbers inside two square brackets.
-
- seq=[1.5,3.2,8.7]
-
-
-2. Square the following sequence?
-
- distance_values=[2.1,4.6,8.72,9.03].
-
- square(distance_values)
-
-
-
-3. How do you plot the data as points using plot function?
-
- By passing an extra parameter '.'.
-
-.. #[[Anoop: It can better if asked as, How do you plot the data as
- points using plot function?]]
-
-4. Can you comment about the result of this plot command .
- plot(x, y,'o')
-
-
- It plots large points.
-
-.. #[[Anoop: give an example and ask what it does, like plot(x, y,
- 'o'), that makes the question simple]]
-
-5. How do you plot error in Python?
-
- Using the function error bar.
-
-6. How do I get large red colour dots on a plot?
-
- By passing the paramter 'ro'.
-
-7. What are the parameters 'xerr' and 'yerr' in errorbar function for?
-
- xerr - List of error values of variable on x axis.
- yerr - List of error values of variable on y ayis.
-
-8. How would you plot error bar with a line?
-
- The fmt parameter for a line will be '-'.
-
-
-
-
-Larger Questions
-----------------
-
-.. A minimum of 2 questions here (along with answers)
-
-1. Plot an errorbar for following experimental data.
-
- | X | Y | Xerr | Yerr |
- | 154.9 | 8106 | 8.51 | 165.8 |
- | 154.3 | 8138 | 8.50 | 166.3 |
- | 148.7 | 8148 | 7.78 | 161.2 |
- | 149.6 | 8171 | 7.81 | 162.6 |
-
-in red colour with large dots
-
-2. List the parameters for errorbar and their function?