-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graph Gridlines / Target Range Offset #10
Comments
Yeah, this is a result of the target range lines being an even number of pixels tall (4). I chose to make the extra pixel fall on the inside of the range (so the top looks a little low, and the bottom looks a little high). It just happens to be super noticeable on a shorter graph: https://github.com/mddub/urchin-cgm/blob/ead0c4/src/graph_element.c#L63 They look less wrong if I reduce it from 4 to 3 pixels: My on-wrist testing suggested 3 pixels was a little too thin, and 5 pixels... well, that just sounds crazy. Maybe you can try building with 3/5 and let me know how it feels. I'll have to think about this a little more. |
3 feels pretty good, actually. Since they are pretty distinct from the On Thu, Jan 28, 2016 at 1:10 PM, Mark Wilson [email protected]
Chris Hannemann |
It appears as if there is an offset or scaling issue between the gridlines and the target range lines.
My graph boundaries are 40 - 240, and my target range is 80 - 180, with gridlines every 20. The lower and upper target range lines should therefor overlap normal gridlines. As you can see in the photo, it appears as if the upper target range line is offset from where it should be, sitting slightly lower (it's closer to 160 than 200).
The text was updated successfully, but these errors were encountered: