def plot_day_summary(ax, quotes, ticksize=<NUM_LIT:3>,<EOL>colorup='<STR_LIT:k>', colordown='<STR_LIT:r>',<EOL>):
lines = []<EOL>for q in quotes:<EOL><INDENT>t, open, close, high, low = q[:<NUM_LIT:5>]<EOL>if close>=open : color = colorup<EOL>else           : color = colordown<EOL>vline = Line2D(<EOL>xdata=(t, t), ydata=(low, high),<EOL>color=color,<EOL>antialiased=False,   <EOL>)<EOL>oline = Line2D(<EOL>xdata=(t, t), ydata=(open, open),<EOL>color=color,<EOL>antialiased=False,<EOL>marker=TICKLEFT,<EOL>markersize=ticksize,<EOL>)<EOL>cline = Line2D(<EOL>xdata=(t, t), ydata=(close, close),<EOL>color=color,<EOL>antialiased=False,<EOL>markersize=ticksize,<EOL>marker=TICKRIGHT)<EOL>lines.extend((vline, oline, cline))<EOL>ax.add_line(vline)<EOL>ax.add_line(oline)<EOL>ax.add_line(cline)<EOL><DEDENT>ax.autoscale_view()<EOL>return lines<EOL>
quotes is a list of (time, open, close, high, low, ...) tuples

Represent the time, open, close, high, low as a vertical line
ranging from low to high.  The left tick is the open and the right
tick is the close.

time must be in float date format - see date2num

ax          : an Axes instance to plot to
ticksize    : open/close tick marker in points
colorup     : the color of the lines where close >= open
colordown   : the color of the lines where close <  open
return value is a list of lines added