danchitnis / webgl-plot

A high-Performance real-time 2D plotting library based on native WebGL
https://danchitnis.github.io/webgl-plot-examples/vanilla/
MIT License
526 stars 29 forks source link

Logic analyzer-style data section labeling #76

Open kironsen opened 1 year ago

kironsen commented 1 year ago

Hi there, thank you for building such a great library! I am trying to build a static logic analyzer webapp that takes in a fixed amount of capture data + the decoded bytes and displays the decoded signals. I may try to make this real-time instead of static in the future.

I was wondering how feasible it would be to label sections of data with text fields natively using this library, eg. the Saleae logic analyzer software:

SPI-Example

danchitnis commented 1 year ago

Thanks. For the outer text you can use canvas since it is significantly more straightforward. For the the inner text related to the signals, should ideally be native to WebGL, but also can do overlays depending on the performance. I need to do some tetst before finding an appropriate method.

I have used Saleae logic in the past. Their software has one of the best user interfaces.

matheo commented 1 month ago

Hi @danchitnis First, thanks for your great work.

Life changed or you got busy and had no time to continue with this amazing project? I hope everything is good for you

danchitnis commented 1 month ago

@matheo Unfortunately, life hasn't changed, but many more projects have been added, which means I have less time to spend on this 😀

I have been working on version "2" and to synchronise the API alongside pyglplot and cpp-plot. The goal is to use the GPU efficiently when plotting large amounts of data very fast. Some benchmarking here

Other than that, the library doesn't need maintenance because it is pure standard JS. New developments just take time, and contributions are welcome!

matheo commented 1 month ago

Good to know that things are good for you @danchitnis

And indeed, I'm looking for an efficient library because we reached a number of points that breaks apexcharts so we will be looking at the source code to see if we can contribute :)

danchitnis commented 1 month ago

And indeed, I'm looking for an efficient library because we reached a number of points that breaks apexcharts so we will be looking at the source code to see if we can contribute :)

That's excellent! Use the examples in the benchmark page as your starting point, and let me know how it goes.