Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Return images with matplotlib?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Jan Danielsson, post: 2056386"] Hello all, I have written a program which takes some data from a postgresql database, and via mod_python outputs it as tables on a web site. Now I would like to present these tables as graphs, which matplotlib can do. But in order to properly display these graphs on the web page, I need to return the image data, like so: def barchart(req, params): some_format = matplotlib.generate_fancy_graph(params) png_buf = make_png_buffer(some_format) return png_buf Is this possible? If so -- how? -- Kind regards, Jan Danielsson ------------ And now a word from our sponsor ------------------ For a quality usenet news server, try DNEWS, easy to install, fast, efficient and reliable. For home servers or carrier class installations with millions of users it will allow you to grow! ---- See [URL]http://netwinsite.com/sponsor/sponsor_dnews.htm[/URL] ---- [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Return images with matplotlib?
Top