Skip to content

Commit f25f969

Browse files
author
Brian Luft
committed
updates meta info
1 parent b055c9a commit f25f969

1 file changed

Lines changed: 17 additions & 15 deletions

File tree

pyflot/graph.py

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
pyflot.graph
4+
5+
This module implements the main classes.
6+
7+
:copyright: (c) 2011 by Brian Luft
8+
:license: MIT, see LICENSE for more details.
9+
"""
10+
111
import collections
212
from datetime import date
313
from functools import partial
414
from itertools import chain
515
import inspect
616
import json
7-
import os
817
import time
918

1019

20+
__title__ = 'pyflot'
21+
__version__ = '0.2.2'
22+
__author__ = 'Brian Luft'
23+
__license__ = 'MIT'
24+
__copyright__ = 'Copyright 2011 Brian Luft'
25+
26+
1127
def update(d, u):
1228
"""
1329
Recursively update nested dicts
@@ -155,20 +171,6 @@ def calculate_bar_width(self):
155171
w = xmax - xmin
156172
return float(w)/slices
157173

158-
def get_test_page(self):
159-
"""Renders a test page"""
160-
templatefile = open(os.path.join(
161-
os.path.dirname(os.path.abspath(__file__)),
162-
'templates',
163-
'test_page.html'))
164-
template = templatefile.read()
165-
template = template.replace("{{ graph.series_json|safe }}",
166-
self.series_json)
167-
template = template.replace("{{ graph.options_json|safe }}",
168-
self.options_json)
169-
out = open(os.path.join(os.getcwd(), 'testgraph.html'), 'w')
170-
out.write(template)
171-
out.close()
172174

173175
def prepare_series(self, series):
174176
if 'bars' in series:

0 commit comments

Comments
 (0)