Giter Site home page Giter Site logo

Comments (5)

flekschas avatar flekschas commented on August 27, 2024

Could you provide a specific example/use case? Out of the box, regl-scatterplot doesn't support gridlines but you can, for example, use a gridline image as the background for regl-scatterplot.

Checkout this example: https://github.com/flekschas/regl-scatterplot/blob/master/example/texture-background.js

You can, of course, render anything you like into a regl texture object and pass that to regl-scatterplot via the constructor (e.g., createScatterplot({ backgroundImage }}) or via the set function (e.g., set({ backgroundImage}))

from regl-scatterplot.

kkdd avatar kkdd commented on August 27, 2024

Thank you for your suggestion.
I would like to draw and microscopically zoom a scatter plot of a million of points with gridlines, like as color_scatter and Accelerating with WebGL in Bokeh gallery and examples. (I regret to say, however, that Bokeh doesn't seem to achieve full performance of WebGL for plotting points as of now.)

from regl-scatterplot.

flekschas avatar flekschas commented on August 27, 2024

For the gridlines, I think creating the background image yourself is really the best option. I am also happy to merge that feature if you come up with a flexible solution.

The only thing we might have to add is an option to re-render the background image upon zooming in such that the resolution can be updated. Otherwise, the gridlines would become gigantic if you zoom in a lot.

from regl-scatterplot.

flekschas avatar flekschas commented on August 27, 2024

Not sure if this is still relevant but with the recent changes related to #29 is fairly simple to draw a grid using d3-axes.

The only addition to examples/axes.js is that you need to insert the following two lines of code at line 51:

xAxis.tickSizeInner(-height);
yAxis.tickSizeInner(-width);

It'll look as follows:

Oct-07-2020 17-59-49

from regl-scatterplot.

flekschas avatar flekschas commented on August 27, 2024

If this is not sufficient please reopen the ticket.

from regl-scatterplot.

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.