Skip to content

Conversation

@aboggust
Copy link

@aboggust aboggust commented Dec 3, 2018

The dataset thumbnails were upside down because the thumbnail canvas' coordinate system moves positively from top to bottom whereas the data point coordinates move negatively from top to bottom. To convert data point coordinates to canvas coordinates the y-coordinate must be negated.

@aboggust
Copy link
Author

aboggust commented Dec 4, 2018

Note that this same bug was incorrectly addressed in #85.

Example: data point (0,0) maps to (50,50)
My function: y = h*(-d.y + 6)/12 = 50
#85 function: y = h - h * (d.y + 6) / 12 - 4 = 46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant