|
maxious
|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
Marey graphs are a visualization form typically used for timetables. Time |
|
|
5 |
is on the x-axis and position on the y-axis. This module reads data from a |
|
|
6 |
transitfeed.Schedule and creates a marey graph in svg/xml format. The graph |
|
|
7 |
shows the speed between stops for each trip of a route. |
|
|
8 |
|
|
|
9 |
TODO: This module was taken from an internal Google tool. It works but is not |
|
|
10 |
well intergrated into transitfeed and schedule_viewer. Also, it has lots of |
|
|
11 |
ugly hacks to compensate set canvas size and so on which could be cleaned up. |
|
|
12 |
|
|
|
13 |
For a little more information see (I didn't make this URL ;-) |
|
|
14 |
http://transliteracies.english.ucsb.edu/post/research-project/research-clearinghouse-individual/research-reports/the-indexical-imagination-marey%e2%80%99s-graphic-method-and-the-technological-transformation-of-writing-in-the-nineteenth-century |
|
|
15 |
|
|
|
16 |
MareyGraph: Class, keeps cache of graph data and graph properties |
|
|
17 |
and draws marey graphs in svg/xml format on request. |
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
If called without arguments, the data generated in the previous call |
|
|
29 |
will be used. New decorators can be added between calls. |
|
|
30 |
|
|
|
31 |
Args: |
|
|
32 |
# Class Stop is defined in transitfeed.py |
|
|
33 |
stoplist: [Stop, Stop, ...] |
|
|
34 |
# Class Trip is defined in transitfeed.py |
|
|
35 |
triplist: [Trip, Trip, ...] |
|
|
36 |
|
|
|
37 |
Returns: |
|
|
38 |
# A string that contain a svg/xml web-page with a marey graph. |
|
|
39 |
" <svg width="1440" height="520" version="1.1" ... " |
|
|
40 |
s %s %s %s %s( R R t _gheightR t _slistR t _BuildStationsR t _DrawBoxt |
|
|
41 |
|