The example is in the main page on github

put canvas.py in your site-packages folder or in your app modules/

# in file default.py

def my_image():    

        from canvas import Canvas    

        data = [gauss(0,1) for i in range(1000)]
        response.headers['Content-type'] = 'image/png'
        return Canvas('title').hist(data).binary()


then visit the url


http://127.0.0.1:8000/youapp/default/my_image




On Monday, 20 August 2012 16:02:33 UTC-5, Jarrod Wilcox wrote:
>
> I have read the explanation of Canvas 0.1 and would very much appreciate a 
> complete example of usage.

-- 



Reply via email to