plotui/questions.rst
author amit
Wed, 13 Oct 2010 17:26:45 +0530
changeset 321 2e49b1b72996
child 342 588b681e70c6
permissions -rw-r--r--
adding questions for all other LO needs to be cleaned
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
321
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     1
Objective Questions
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     2
-------------------
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     3
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     4
.. A mininum of 8 questions here (along with answers)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     5
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     6
1. Create 100 equally spaced points between -pi/2 and pi/2?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     7
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     8
   Answer: linspace(-pi/2,pi/2,100)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
     9
    
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    10
2. How do you clear a figure in ipython?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    11
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    12
   Answer: clf()
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    13
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    14
3. How do find the length of a sequence?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    15
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    16
   Answer: len(sequence_name)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    17
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    18
4. Create a plot of x and e^x where x is 100 equally spaced points between 0,pi. Hint: e^x -> exp(x) for ipython
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    19
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    20
   Answer: x=linspace(0,pi,100)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    21
   	   plot(x,exp(x))
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    22
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    23
5. List four formats in which you can save a plot in ipython?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    24
   
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    25
   Answer: png,eps,pdf,ps
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    26
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    27
6. List the kind of buttons available in plotui to study the plot better ?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    28
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    29
   Zoom button to Zoom In to a region.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    30
   Pan button to move it around.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    31
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    32
7. What are the left and right arrow buttons for?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    33
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    34
   Answer: These buttons take you to the states that the plot has been. Much like a browser left and right arrow button.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    35
  
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    36
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    37
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    38
8. What is the home button for in the Plot UI?
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    39
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    40
   Initial State of the plot.
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    41
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    42
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    43
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    44
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    45
Larger Questions
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    46
----------------
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    47
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    48
.. A minimum of 2 questions here (along with answers)
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    49
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    50
1. Question 1
2e49b1b72996 adding questions for all other LO needs to be cleaned
amit
parents:
diff changeset
    51
2. Question 2