epezent / implot

Immediate Mode Plotting
MIT License
4.65k stars 517 forks source link

Is it possible to draw wave like ecg wave #381

Closed masterchen closed 2 years ago

masterchen commented 2 years ago

It is a good project !

Is it possible to proivde a chart type which draw real time data wave line like ecg wave ?

like this : https://demo.scichart.com/javascript-vital-signs-ecg-medical-chart-example

thanks you !

dgm3333 commented 2 years ago

Did you look at the manual/demo? Theres already an example showing how to do that.

epezent commented 2 years ago

As already mentioned, see the second example under Plots/Realtime Plots in the demo:

rt

masterchen commented 1 year ago

the dawing method is not the same like the one shows here : https://demo.scichart.com/javascript-vital-signs-ecg-medical-chart-example

javascript-vital-signs-ecg-medical-chart-example shows that the history wave was "cleared" while drawing the new wave point.

marcizhu commented 1 year ago

You can do that yourself by just keeping the old data and overwriting it so that it looks like the example you provided.

ImPlot is an awesome library and it has an extensive feature set and customization options, but it just cannot cover all the possible use cases or visualization possibilities. Sometimes you just have to code it yourself.