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