GithubHelp home page GithubHelp logo

[BUG] Blurry plots with WebGL about bokeh HOT 6 OPEN

Yura52 avatar Yura52 commented on July 20, 2024
[BUG] Blurry plots with WebGL

from bokeh.

Comments (6)

ianthomas23 avatar ianthomas23 commented on July 20, 2024

Are you using a Retina display here, or maybe a hybrid setup with one Retina display and an external monitor that is not Retina?

We effectively scale the antialiasing distance by the pixel ratio of the screen, which is 2 for a Retina display. So the antialiasing distance on a Retina display is twice as much in physical pixels which means it is correct in CSS pixels (i.e. expected "human eye" pixels). So the antialiasing should be similar for canvas and webgl backends, which is evidently not the situation here.

From a purely practical point of view I do not currently have access to a Retina display (or any display with a pixel ratio far from 1) so I am not able to check that what we currently do is what I expect us to do.

from bokeh.

Yura52 avatar Yura52 commented on July 20, 2024

Yes, this issue is observed of my MacBook Pro: 14.2-inch (diagonal) Liquid Retina XDR display; 3024-by-1964 native resolution at 254 pixels per inch

from bokeh.

ianthomas23 avatar ianthomas23 commented on July 20, 2024

Thanks. Could you try with a different browser, ideally Chrome, to confirm that it is not a browser-specific problem?

from bokeh.

Yura52 avatar Yura52 commented on July 20, 2024

Thanks. Could you try with a different browser, ideally Chrome, to confirm that it is not a browser-specific problem?

I reproduced the issue in Safari and in one Blink/Chromium-based browser (unfortunately, I cannot install Chrome on my machine).

from bokeh.

mattpap avatar mattpap commented on July 20, 2024

I don't see any difference between different pixel densities in Chromium's devtools (all my screens are natively 1:1), but I see a clear differences when scaling the viewport (blurring seems to increase with scaling).

At 100% zoom:
image

At 250% zoom (need to open this image in a new tab to see it in full resolution and see the blurring):
image

(both use 1:1 DPI). When testing this, note that you have to reload the page for zoom to take effect in bokehjs.

from bokeh.

Yura52 avatar Yura52 commented on July 20, 2024

Not sure if this is an additional context for Bokeh developers or a suggestion to check the zoom-related things on my side :) So just in case I did the following:

  • I turned off the native system-wide macOS scaling.
  • I reset the browser scaling.

And after those changes, the issue is still there.

from bokeh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.