-
Notifications
You must be signed in to change notification settings - Fork 539
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
Change plotted color for each point in the dataset #485
Labels
plot type
Requesting a plot type that isn't supported yet
Comments
Oh, this is already discussed. |
I created a small patch file to niavok's version.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I would like to implement a feature to change the plotted color for each point in the dataset, something like this.
I plan on doing it this way:
ColorGetter
struct with function:ImU32 operator()(ImPlotCol col, int idx)
, this will be the base case, constant colors fromImPlotNextItemData
ColorGetterFuncPtr
struct where an user defined function is passed in and called,GetterFuncPtr
styleRenderer*
structs will take a templatedColorGetter
as an argument instead ofImU32 col
ColorGetter
, but a new version of them will useColorGetterFuncPtr
Is this the way of doing this? Will this get merged if I implement it?
The text was updated successfully, but these errors were encountered: