#!/usr/bin/env python3
from biograph import *
def alex():
# Always begin by initialising the grid...
timespan('2017-02-24','2017-06-13')
# ...and by adding your homes
home('womb', '2017-02-04', '2017-06-13', href='')
# Go wild with the structure and ordering of the rest
event('2017-02-04', '2017-02-04', 'conceived')
event('2017-06-13', '2017-06-13', 'miscarried')
roommate(3, 'mom', '2017-02-04', '2017-06-13')
project(2, 'Prenatal appointments', '2017-04-14', '2017-06-13', 15, 17)
play(3,'Baby Einstein', '2017-03-22', '2017-06-02', hours=10)
make_bio(alex, sys.argv[1:])
biograph.timespan(start_isodate, end_isodate, **kwargs)
Initialises the histomap grid from start_isodate
(YYYY-MM-DD) to end_isodate
(YYYY-MM-DD).
Optional arguments:
legend
: if False, removes the legendprivate
: if False, censors private informationtop_grid
: y coordinate of the top grid borderleft_grid
: x coordinate of the left grid borderright_grid
: x coordinate of the right grid borderbottom_grid
: y coordinate of the bottom grid borderweekday_start_hour
(int): Time the day starts. Defaults to 7.weekday_end_hour
(int): Time the day ends. Defaults to 24.weekday_hour_width
: Number of x pixels per hour in a weekday.year_height
: Number of y pixels per year. Defaults to 52 (1 y pixel per week)
For all:
name
: the name given to the memoryintensity
: 1-3 ; maps to a css colouring classstart_isodate
: the starting date of the memory in isoformat (YYYY-MM-DD)end_isodate
: the ending date of the memory in isoformat (YYYY-MM-DD)href
: optional allows you to associate the memory with a linkclass_
: optional css class containers
For weekday memories:
start_hour
: the start timeend_hour
: the end time
For weekend and weekly memories:
hours
: the number of hours per week
For weekends+weeklies and roommates:
slot
: 0-3 ; indicate the starting position of the memory along the x-axis.
biograph.home(name, start_isodate, end_isodate, **kwargs)
Where have you lived?
Draws a box in the grid background of y-axis length which is equal to the duration of stay at a residence.
biograph.roommate(intensity, name, start_isodate, end_isodate, *args, **kwargs)
With whom have you lived with?
biograph.friend(intensity, name, start_isodate, end_isodate, *args, **kwargs)
Who have you met along the way who has made the journey more pleasant?
biograph.love(intensity, name, start_isodate, end_isodate, *args, **kwargs)
With whom have you written a shared story?
biograph.project(intensity, name, start_isodate, end_isodate, *args, **kwargs)
Which sort of endeavours did you undertake?
biograph.play(intensity, name, start_isodate, end_isodate, *args, **kwargs)
When were some moments you stepped back and did something without a goal in mind?
biograph.work(intensity, name, start_isodate, end_isodate, *args, **kwargs)
How have you made a living?
biograph.school(intensity, name, start_isodate, end_isodate, *args, **kwargs)
Where did you study?
biograph.event(name, start_isodate, end_isodate, *args, **kwargs)
What were the key events or landmarks in your life?