@referrer_limit
@cache_page(60 * 15)
def graph_timeline(request, username, width=800, height=300):
    
    ready_or_update(username)
    
    width = int(width)
    height = int(height)
    
    if not width:
        width = 800
    
    if not height:
        height = 300
    
    series_set = graph_timeline_data(username)
    
    # Create the output
    output = FileOutput(padding=0, style=artist_detail_white_css)
    try:
        scale = AutoWeekDateScale(series_set, short_labels=True, month_gap=2)
    except ValueError:
        raise Http404("No data")
    
    # OK, render that.
    wg = WaveGraph(series_set, scale, artist_detail_white_css, False, vertical_scale=True)
    output.add_item(wg, x=0, y=0, width=width, height=height)
    
    # Save the images
    try:
        return stream_graph(output)
    except __HOLE__:
        raise Http404("No data")
dataset/ETHPy150Open andrewgodwin/lastgraph/lastgui/views.py/graph_timeline