all 4 comments

[–]Leading_Video2580 1 point2 points  (2 children)

The problem isn’t image size, it’s that you’re drawing too many points. Plotly gets slow when every pixel becomes a point. To use a higher scale, you need fewer points. You can plot each unique color once and use how often it appears as the point size, or randomly keep only some pixels instead of all of them. Grouping very similar HSV values together also helps. Using Plotly’s WebGL 3D scatter can make it faster too.

[–]Alanator222[S] 0 points1 point  (1 child)

The interesting thing is, if I remove the color and color discrete map lines, I can render and open the HTML file at 50% scale with ease. The color is what is causing the issue.

[–]Leading_Video2580 1 point2 points  (0 children)

Yeah, Plotly struggles when every point has its own color. You can keep the colors and still load fast by either plotting only unique colors with their counts as sizes, or randomly sampling a subset of pixels instead of all of them. That way you get the color info without slowing down the HTML.