From d922945fbb7b81c4f77888787c0f5b832a493dad Mon Sep 17 00:00:00 2001 From: Francoise Provencher Date: Thu, 26 May 2016 20:43:13 -0400 Subject: [PATCH] Added docstring to scatter_with_legend.py [MEP12] --- examples/lines_bars_and_markers/scatter_with_legend.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/lines_bars_and_markers/scatter_with_legend.py b/examples/lines_bars_and_markers/scatter_with_legend.py index c6b35a279563..fba5cf22167a 100644 --- a/examples/lines_bars_and_markers/scatter_with_legend.py +++ b/examples/lines_bars_and_markers/scatter_with_legend.py @@ -1,3 +1,11 @@ +''' +Demo of a scatter plot (scatter) with a legend. + +Also demonstrates how transparency of the markers +can be adjusted by giving ``alpha`` a value between +0 and 1. +''' + import matplotlib.pyplot as plt from numpy.random import rand