-
Notifications
You must be signed in to change notification settings - Fork 7
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
Population data does not clip properly when scrolling through generations #146
Comments
No need for @amanda-phet to review, this is buggy. Should be an easy fix. |
Note to self: the problem is in Steps to reproduce:
|
I also discovered that PopulationPlotNode does not handle the case where a count remains constant for > 6 generations, and we need to connect 2 points where p1.x < xRange.min and p2.x > xRange.max. I haven't seen that happen, but it could. |
I totally rewrote @amanda-phet and @phet-steele please have a look at this in 1.1.0-dev.3, with high priority since it's a major change. |
Cherry-picked to 1.0 (prototype) branch. |
@amanda-phet if you could prioritize review of this issue, it would be great. It needs to be completed before I can publish the next RC for the 1.0 prototype. |
Looks good to me. |
The original issue seems fine, but I'm seeing weird behaviour.
In the below screenshots, you'll notice that when I am viewing the data for gen 6+, everything looks fine. But as soon as I scroll and clip gen 6, the data is incorrect (the dashed line should be at 0, not 4) This was seen on Win 10 Chrome using https://phet-dev.colorado.edu/html/natural-selection/1.1.0-dev.3/phet/natural-selection_all_phet.html |
…raph, rename firstPoint to startPoint, #146
Good catch @phet-steele. Fixed in the above commit. Please verify in master. |
@phet-steele if you don't have VPN access, you can test in https://phet-dev.colorado.edu/html/natural-selection/1.1.0-dev.4/phet/natural-selection_en_phet.html. |
#146 (comment) looks resolved in 1.1.0-dev.4. |
Excellent, thanks @phet-steele. Since the next RC is going to be published out of master, I'm going to go ahead and close this issue. |
It looks like data from "further down" the x axis gets "squished" onto the chart when scrolling through generations. In the below screenshots, notice in the Before screenshot that the 5th generation shows the pop. at ~500, and the 6th generation is ~1400. Once you scroll backwards to view the 1st generation (and hide the 6th generation) in the After screenshot, the drawn section of the 6th generation does not get clipped correctly and gets drawn over the 5th gen data, making it tricky to read.
Up to @amanda-phet to decide if this has a problematic pedagogical impact and if it should be addressed before the prototype release. There is no setup for this to occur; it will happen every time you scroll through generations and occurs for all data types, not just "Total".
Before:
After:
Seen on Win 10 Chrome 84.0.4147.89. For phetsims/qa/issues/522.
Troubleshooting Information
Name: Natural Selection
URL: https://phet-dev.colorado.edu/html/natural-selection/1.0.0-rc.1/phet/natural-selection_all_phet.html
Version: 1.0.0-rc.1 2020-07-29 19:13:57 UTC
Features missing: touch
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Language: en-US
Window: 1456x923
Pixel Ratio: 1/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 30 uniform: 4095
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 32767x32767
OES_texture_float: true
The text was updated successfully, but these errors were encountered: