fix: downsample 3D surface for browser fallback #50
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/plotly-downsample"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The browser fallback (PR #49) sends the full 41x4096 correlation surface to plotly.js, which tries to create 327K triangles in WebGL. This causes RangeError: Array buffer allocation failed on plotly-4.1.1.min.js:2008.
Fix: downsample the code-phase axis to at most 200 bins before serializing the figure to HTML. The max value per bin is kept so the correlation peak remains visible. The PNG rendering path (tkinter) is unaffected.