Skip to content
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

Lines in Parallel Coordinates plot not anti-aliased on some hardware #2756

Closed
idea-launch-lab opened this issue Jun 27, 2018 · 5 comments
Closed
Labels
bug something broken
Milestone

Comments

@idea-launch-lab
Copy link

The lines in Plotly's parallel coordinates plot (plotly.js) are not appearing smooth or correctly anti aliased. Is there a CSS setting or parameter to control rendering of lines in the plot?

Below is a comparison with native D3 parallel coordinates plot. The plots have been zoomed in a bit. Thanks.

screen shot 2018-06-27 at 9 29 28 am

@etpinard
Copy link
Contributor

Hmm. https://rreusser.github.io/plotly-mock-viewer/#gl2d_parcoords doesn't look as blurry to me as your screenshot of the left. Would you mind sharing a reproducible example?

We turn on antialising here, so this report seems a little strange to me. What us could be going on? Maybe @dy could help us out?

Is there a CSS setting or parameter to control rendering of lines in the plot?

Below is a comparison with native D3 parallel coordinates plot.

Our parcoord lines are drawn in WebGL not d3, so CSS won't fix the problem unfortunately.

@alexcjohnson
Copy link
Collaborator

@sid-thakur what hardware are you using? I have to say when I look at https://rreusser.github.io/plotly-mock-viewer/#gl2d_parcoords on my mac retina display it looks a bit blurry, as do scattergl plots like https://rreusser.github.io/plotly-mock-viewer/#gl2d_10, whereas gl3d plots look crisp. I hadn't noticed this before but I mostly display plots on my second monitor, which is not as high resolution. Perhaps we need to oversample in addition to antialiasing?

@etpinard etpinard changed the title Lines in Parallel Coordinates plot not anti-aliased Lines in Parallel Coordinates plot not anti-aliased on some hardware Oct 5, 2018
@archmoj archmoj self-assigned this Mar 3, 2019
@archmoj archmoj added the bug something broken label Mar 3, 2019
@archmoj
Copy link
Contributor

archmoj commented Mar 15, 2019

As a reference point, Mac with FireFox renders like this i.e. without anti-aliasing (Note: although anti-aliasing is requested by the code on some hardware it may not be enabled). To improve this situation, such cases could be detected and doubling glPixelRatio values may help.
https://rreusser.github.io/plotly-mock-viewer/#gl2d_parcoords
macOS_with_FireFox

@taylorjacklespriggs
Copy link

This issue persists on Firefox 68.0.1
https://codepen.io/plotly/pen/QpKOPr
Screen Shot 2019-08-08 at 1 39 28 PM

specs
MacOS Sierra 10.12.6
MacBook Pro (15-inch, 2017)
Graphics

  • Radeon Pro 555 2048 MB
  • Intel HD Graphics 630 1536 MB

@archmoj
Copy link
Contributor

archmoj commented Jul 12, 2021

Fixed by #5500

@archmoj archmoj closed this as completed Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

5 participants