<s> __author__ = '<STR_LIT>' <EOL> import matplotlib . pyplot as plt <EOL> from prettyplotlib . utils import remove_chartjunk , maybe_get_ax <EOL> from prettyplotlib import colors <EOL> def boxplot ( * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> ax , args , kwargs = maybe_get_ax ( * args , ** kwargs ) <EOL> xticklabels = kwargs . pop ( '<STR_LIT>' , None ) <EOL> fontsize = kwargs . pop ( '<STR_LIT>' , <NUM_LIT:10> ) <EOL> kwargs . setdefault ( '<STR_LIT>' , <NUM_LIT> ) <EOL> bp = ax . boxplot ( * args , ** kwargs ) <EOL> if xticklabels : <EOL> ax . xaxis . set_ticklabels ( xticklabels , fontsize = fontsize ) <EOL> show_caps = kwargs . pop ( '<STR_LIT>' , True ) <EOL> show_ticks = kwargs . pop ( '<STR_LIT>' , False ) <EOL> remove_chartjunk ( ax , [ '<STR_LIT>' , '<STR_LIT:right>' , '<STR_LIT>' ] , show_ticks = show_ticks ) <EOL> linewidth = <NUM_LIT> <EOL> blue = colors . set1 [ <NUM_LIT:1> ] <EOL> red = colors . set1 [ <NUM_LIT:0> ] <EOL> plt . setp ( bp [ '<STR_LIT>' ] , color = blue , linewidth = linewidth ) <EOL> plt . setp ( bp [ '<STR_LIT>' ] , color = red ) <EOL> plt . setp ( bp [ '<STR_LIT>' ] , color = blue , linestyle = '<STR_LIT>' , <EOL> linewidth = linewidth ) <EOL> plt . setp ( bp [ '<STR_LIT>' ] , color = blue ) <EOL> if show_caps : <EOL> plt . setp ( bp [ '<STR_LIT>' ] , color = blue , linewidth = linewidth ) <EOL> else : <EOL> plt . setp ( bp [ '<STR_LIT>' ] , color = '<STR_LIT:none>' ) <EOL> ax . spines [ '<STR_LIT:left>' ] . _linewidth = <NUM_LIT:0.5> <EOL> return bp </s>
