other-type-of-plots/questions.rst
changeset 289 3b801e60246a
parent 288 a3b98b4c371e
--- a/other-type-of-plots/questions.rst	Mon Oct 11 14:02:36 2010 +0530
+++ b/other-type-of-plots/questions.rst	Mon Oct 11 15:55:59 2010 +0530
@@ -20,7 +20,55 @@
 
 Answer: pie(profit, labels=years)
 
-3. 
+3. We have two lists with us ``years`` and profit``, what statement
+   can be issued to plot a scatter plot of the data in blue colored
+   diamonds. ``years`` has to be plotted along x-axis.
+
+Answer: scatter(year,profit,color='blue',marker='d')
+
+4. ``scatter(x, y, color='blue', marker='d')`` and ``plot(x, y,
+   color='b', marker='d')`` does exactly the same.
+
+   a. True
+   #. False
+
+Answer: False
+
+5. ``plot(x, y, 'bd')`` creates a scattered plot in blue color and
+   diamond markers?
+
+   a. True
+   #. False
+
+Answer: True
+
+6. ``scatter(x, y, 'bd')`` creates a scatter plot in blue color with
+   diamond markers.
+
+   a. True
+   #. False
+
+Answer: False
+
+7. What statement can be issued to generate a bar chart with 135\
+   :sup:`o` hatched bar filled with white.
+
+   a. bar(x, y, color='w', hatch='/')
+   #. bar(x, y, color='w', hatch='\\')
+   #. bar(x, y, color='w', hatch='\')
+   #. bar(x, y, color='w', hatch='|')
+
+Answer: bar(x, y, color='w', hatch='\\')
+
+8. What statement can be issued to generate a bar chart with vertical
+   line hatching.
+
+   a. bar(x, y, color='w', hatch='/')
+   #. bar(x, y, fill=False, hatch='\\')
+   #. bar(x, y, fill=False, hatch='|')
+   #. bar(x, y, color='w', hatch='\')
+
+Answer: bar(x, y, fill=False, hatch='|')
 
 Larger Questions
 ----------------