Fix issue 197: Annotations are displayed outside the bounds of the graph