chiark / gitweb /
analyze: plot: place the text on the side with most space
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 1 Nov 2013 21:57:47 +0000 (22:57 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Fri, 1 Nov 2013 22:14:11 +0000 (23:14 +0100)
commit95168f7d55181475946ad93db30255c4d709df03
tree39229b365c1e152822029967adf4591a77d53c6d
parentf69157a66ffe413b4cf8bd79057487fc8921e78b
analyze: plot: place the text on the side with most space

Set the width of the svg to always fit the longest string
while taking its starting position into consideration.

Place the text on the right while the starting point is
in the first half of the screen. After that we put it on
the left to save the svg from being wider that it has to.
src/analyze/analyze.c