def make_decreasing_candle(open, high, low, close, dates, **kwargs):
 (decrease_x, decrease_y) = _Candlestick(open, high, low, close, dates, **kwargs).get_candle_decrease()
 if ('line' in kwargs):
  kwargs.setdefault('fillcolor', kwargs['line']['color'])
 else:
  kwargs.setdefault('fillcolor', _DEFAULT_DECREASING_COLOR)
 kwargs.setdefault('showlegend', False)
 kwargs.setdefault('line', dict(color=_DEFAULT_DECREASING_COLOR))
 kwargs.setdefault('name', 'Decreasing')
 candle_decr_data = dict(type='box', x=decrease_x, y=decrease_y, whiskerwidth=0, boxpoints=False, **kwargs)
 return [candle_decr_data]

def make_decreasing_candle ( open , high , low , close , dates , ** kwargs ) : ( decrease_x , decrease_y ) = _Candlestick ( open , high , low , close , dates , ** kwargs ) . get_candle_decrease ( ) if ( 'line' in kwargs ) : kwargs . setdefault ( 'fillcolor' , kwargs [ 'line' ] [ 'color' ] ) else : kwargs . setdefault ( 'fillcolor' , _DEFAULT_DECREASING_COLOR ) kwargs . setdefault ( 'showlegend' , False ) kwargs . setdefault ( 'line' , dict ( color = _DEFAULT_DECREASING_COLOR ) ) kwargs . setdefault ( 'name' , 'Decreasing' ) candle_decr_data = dict ( type = 'box' , x = decrease_x , y = decrease_y , whiskerwidth = 0 , boxpoints = False , ** kwargs ) return [ candle_decr_data ]
makes boxplot trace for decreasing candlesticks .