from matplotlib import pyplot
from PlotInfo import *

class BoxAndWhisker(PlotInfo):
    """
    Box and whisker plots
    """

    def __init__(self):
        super(BoxAndWhisker,self).__init__("boxplot")
        self.width=None
        self.color="black"
        self.label = None
        self.xSequence = []

    def draw(self, fig, axis, transform=None):
        # To be compatible with PlotInfo assumptions
        self.xValues = range(1,len(self.xSequence)+1)
        self.yValues = [0 for x in self.xValues]

        super(BoxAndWhisker,self).draw(fig, axis)

        kwdict = {}

        plotHandles = axis.boxplot(self.xSequence, **kwdict)

        # Picking which part of the plot to use in the legend may
        # require more thought as there are multiple lines in the
        # boxplot, as well as the possibility for outliers.
        # Options are ['medians', 'fliers', 'whiskers', 'boxes', 'caps']
        return [plotHandles['medians'], [self.label]]

@@ -45,16 +45,42 @@
 import *
+%0Afrom Marker import Marker
 %0A%0Aclass 
@@ -329,16 +329,127 @@
 nce = %5B%5D
+%0A        self.flierMarker = Marker()%0A        self.flierMarker.marker = '+'%0A        self.flierMarker.color = 'b'
 %0A%0A    de
@@ -697,16 +697,16 @@
  axis)%0A%0A
-
         
@@ -718,16 +718,162 @@
 t = %7B%7D%0A%0A
+        if self.flierMarker.marker is not None:%0A            kwdict%5B%22sym%22%5D = self.flierMarker.marker%0A        else:%0A            kwdict%5B%22sym%22%5D = ''%0A%0A
         

Allow flier markers in box-and-whisker plots to be modified.