Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (41 sloc) 1.24 KB

Welcome to PyFlot's documentation!

PyFlot provides an interface from Python to flot.

import flot
class Fx(flot.Series):
    data = [(1, 2), (2, 3), (3, 4), (4, 5)]

class MyGraph(flot.Graph):
    fx = Fx()

my_graph = MyGraph()
<html>
    <head>
        <script type="text/javascript" src='static/js/jquery.js'></script>
        <script type="text/javascript" src='static/js/jquery.flot.js'></script>
    </head>
    <body>
        <div id="gr" style="width:600px;height:300px;"></div>
    <script type='text/javascript'>
        $.plot($("#gr"), {{ my_graph.json_data|safe }}, {{ my_graph.options|safe }});
    </script>
    </body>
</html>

Contents:

.. toctree::
   :maxdepth: 1

   introduction
   installation
   usage
   object-reference
   integrating-with-django


Indices and tables