def make_quartiles(q1, q3):
 return graph_objs.Scatter(x=[0, 0], y=[q1, q3], text=[('lower-quartile: ' + '{:0.2f}'.format(q1)), ('upper-quartile: ' + '{:0.2f}'.format(q3))], mode='lines', line=graph_objs.Line(width=4, color='rgb(0,0,0)'), hoverinfo='text')

def make_quartiles ( q1 , q3 ) : return graph_objs . Scatter ( x = [ 0 , 0 ] , y = [ q1 , q3 ] , text = [ ( 'lower-quartile: ' + '{:0.2f}' . format ( q1 ) ) , ( 'upper-quartile: ' + '{:0.2f}' . format ( q3 ) ) ] , mode = 'lines' , line = graph_objs . Line ( width = 4 , color = 'rgb(0,0,0)' ) , hoverinfo = 'text' )
makes the upper and lower quartiles for a violin plot .