Hello, You can use a template for your page. For the graph, there are two ways using matplotlib : - in your GET (or POST) method, generate an image from matplotlib, store it in /static (for example) and provide the url to your template. You'll have to remove the image later or /static will grow up. - in your template, generate an url containing all required parameters for the graph, and respond by generating the image (with matplotlib) on the fly, so you don't have to store an image on disk. Hope that helps. Sébastien.
Le samedi 15 septembre 2012 12:13:28 UTC+2, ay exbizy a écrit : > Hello, > > I need an idea or steps on creating a basic web page to publish > data(sensor data), I have my web.py server based on a python framework > running and retrieving data from a store and I want to expose the data and > plot a graph on a HTML page. > > Any help with this or reference to any materials online for this. > > Thanks > -- You received this message because you are subscribed to the Google Groups "web.py" group. To view this discussion on the web visit https://groups.google.com/d/msg/webpy/-/cx2eQX9z_vEJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
