Re: [flask] matplotlib
- From:
- Andy Wilson
- Date:
- 2011-03-09 @ 13:14
On Wed, Mar 9, 2011 at 6:22 AM, Rita <rmorgan466@gmail.com> wrote:
> Is there an example of creating matplotlib plots with Flask?
>
> Something similar to this --
> http://www.scipy.org/Cookbook/Matplotlib/Django
Someone might know of a better way to do it, but here's a quick/dirty Flask
version of that same example:
https://gist.github.com/862153
Re: [flask] matplotlib
- From:
- Rita
- Date:
- 2011-03-10 @ 00:31
Andy,
Thankyou. This is exactly what I am looking for!
On Wed, Mar 9, 2011 at 8:14 AM, Andy Wilson <wilson.andrew.j@gmail.com>wrote:
>
> On Wed, Mar 9, 2011 at 6:22 AM, Rita <rmorgan466@gmail.com> wrote:
>
>> Is there an example of creating matplotlib plots with Flask?
>>
>> Something similar to this --
>> http://www.scipy.org/Cookbook/Matplotlib/Django
>
>
>
>
> Someone might know of a better way to do it, but here's a quick/dirty Flask
> version of that same example:
> https://gist.github.com/862153
>
>
>
--
--- Get your facts first, then you can distort them as you please.--
Re: [flask] matplotlib
- From:
- Rita
- Date:
- 2011-04-03 @ 17:03
Umm, how does one place this code into, http://flask.pocoo.org/snippets/ ?
This is too nice of a gem to pass up.
On Wed, Mar 9, 2011 at 7:31 PM, Rita <rmorgan466@gmail.com> wrote:
> Andy,
>
> Thankyou. This is exactly what I am looking for!
>
>
> On Wed, Mar 9, 2011 at 8:14 AM, Andy Wilson <wilson.andrew.j@gmail.com>wrote:
>
>>
>> On Wed, Mar 9, 2011 at 6:22 AM, Rita <rmorgan466@gmail.com> wrote:
>>
>>> Is there an example of creating matplotlib plots with Flask?
>>>
>>> Something similar to this --
>>> http://www.scipy.org/Cookbook/Matplotlib/Django
>>
>>
>>
>>
>> Someone might know of a better way to do it, but here's a quick/dirty
>> Flask version of that same example:
>> https://gist.github.com/862153
>>
>>
>>
>
>
> --
> --- Get your facts first, then you can distort them as you please.--
>
--
--- Get your facts first, then you can distort them as you please.--
Re: [flask] matplotlib
- From:
- Stephane Wirtel
- Date:
- 2011-03-09 @ 12:26
The problem on a production server, you should install a backend, GDK,
Cairo, and/or Xorg etc...
You can try to use the Google Chart API
http://code.google.com/apis/chart/
You can use the chart Wizard to help you to create the URL for the Google
Chart API.
http://code.google.com/apis/chart/docs/chart_wizard.html
Example:
http://chart.apis.google.com/chart?chxt=y&chbh=a&chs=300x225&cht=bvg&chco=A2C180,3D7930&chd=t:10,50,60,80,40,60,30|50,60,100,40,20,40,30&chtt=Vertical+bar+chart
Regards,
Stephane
On 03/09/2011 01:22 PM, Rita wrote:
> Is there an example of creating matplotlib plots with Flask?
>
> Something similar to this -- http://www.scipy.org/Cookbook/Matplotlib/Django
>
>
>
> --
> --- Get your facts first, then you can distort them as you please.--