# HG changeset patch # User Anoop Jacob Thomas # Date 1286792759 -19800 # Node ID 3b801e60246ade6883100cd7db09e32d66ed715e # Parent a3b98b4c371e9e01c3cc84c723ebfa3ff368e063 added questions for other-type-of-plots. diff -r a3b98b4c371e -r 3b801e60246a other-type-of-plots/questions.rst --- 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 ----------------