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

Improved Plot widget for displaying audio data #2747

Closed
soulthreads opened this issue Aug 23, 2019 · 1 comment
Closed

Improved Plot widget for displaying audio data #2747

soulthreads opened this issue Aug 23, 2019 · 1 comment

Comments

@soulthreads
Copy link

I've implemented a Plot widget that can show a grid, has custom tooltip support, logarithmic x-axis scaling, is able to draw multiple sources on the same plot, and also supports selection.

All of this was really useful for me when working with audio and ultrasonic data, since I often need to compare signals, show spectrums of the selected part of the signal, and know what value it has at a particular point.

The code is located at https://github.com/soulthreads/imgui-plot
It is written in C++11 style, but if folks really need it, I can scale it down to C++98 with no problem.

Here are some samples of what it looks like:

Displaying waveform and spectrum:
Displaying Waveform and Spectrum

Selection example on a plot with multiple sources:
Selection Example

I hope you will find it useful, and feel free to file issues if you have any problems with it!

@ocornut
Copy link
Owner

ocornut commented Dec 7, 2023

Closing this now. Thanks for sharing this!

Nowadays I would assume most people would be using ImPlot to solve this, but yours came first :) It's also been listed in https://github.com/ocornut/imgui/wiki/Useful-Extensions at the time we opened that page.

Pasting a copy of one your picture as I can't seem to find it on your repo:
96739012-9f772900-13bf-11eb-831b-e4b1ba82e152

@ocornut ocornut closed this as completed Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants