Did I find the right examples for you? yes no

All Samples(11)  |  Call(8)  |  Derive(0)  |  Import(3)

src/g/r/graph-index-HEAD/app.py   graph-index(Download)
 
import config
from models import Graph
from examples import examples
from utils import groupby_re, diamond_re, do_plugin, do_groupby, search_metrics
def server(server = ''):
    global diamond
    graphs = []
    for plugin in sorted(diamond[server].keys()):
        graph = Graph(diamond[server][plugin], title = server + ' ' + plugin)
def plugin(server = '', plugin = ''):
    global diamond
    graph = Graph(diamond[server][plugin], title = server + ' ' + plugin)
    body = template('templates/graph', **locals())
    return render_page(body)
 
@route('/metric/<metric_name>', method = 'GET')
def metric(metric_name = ''):
    graph = Graph([metric_name, ])
                data = do_plugin(diamond, plugin, server_regex)
                for server in sorted(data.keys()):
                    graph = Graph(data[server], title = server + ' ' + plugin)
                    graph.detail_url = '/server/%s/%s' % (server, plugin)
                    graphs.append(graph)

src/d/j/django-goflow-HEAD/goflow/graphics/views.py   django-goflow(Download)
 
 
from models import Graph
 
def graph(request, id, template='goflow/graphics/graph.html'):

src/g/n/gnowsys-studio-HEAD/demo/graphviz/views.py   gnowsys-studio(Download)
from django.shortcuts import render_to_response
from django.template import RequestContext
from models import Graph
 
from django.template import Template