Skip to content

Commit

Permalink
[svg] add years number to the label
Browse files Browse the repository at this point in the history
  • Loading branch information
kronicka committed Jan 17, 2019
1 parent 9eb7430 commit 192773a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/draw_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ def group(classname):
squares.add(square)

tagline = 'This is your life on a single sheet of paper.'
units_label = f'{units} wks / {float("%.3g" % (units * 7 / 365))} yrs'
dwg.add(dwg.text(tagline, insert=(180, 580), font_size='5px', fill='grey'))
dwg.add(dwg.text(units, insert=(380, 580), font_size='5px', fill='grey'))
dwg.add(dwg.text(units_label, insert=(360, 580), font_size='5px', fill='grey'))
dwg.save()


Expand Down

0 comments on commit 192773a

Please sign in to comment.