Created
August 21, 2019 11:51
-
-
Save cstefanache/ac15942472644b73e6fc10da7cc71812 to your computer and use it in GitHub Desktop.
Stackoverflow comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Window width (wwidth) = 100 | |
DATA.length = 8 | |
dataPointsOnScreen = 5 | |
Case 1: x scroll = 0 | |
0 [middle] | |
| | | |
*----*----*-+--*----*----*----*----* | |
| | |
|<---- width = 100 --->| | |
|<------- range ------>| | |
|<------------- domain ----------->| | |
Case 1: x scroll = 5 (units) | |
-5 0 [middle] | |
| | | | |
*----*----*----*-+--*----*----*----* | |
| | |
|<---- width = 100 --->| | |
|<------- range ------>| | |
|<------------- domain ----------->| | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment