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

remove adding data to plot feature #34

Closed
jo-mueller opened this issue Aug 8, 2024 · 0 comments
Closed

remove adding data to plot feature #34

jo-mueller opened this issue Aug 8, 2024 · 0 comments

Comments

@jo-mueller
Copy link
Contributor

jo-mueller commented Aug 8, 2024

Hi @zoccoler ,

I was playing around a bit with the color settings (see PR #18 ) and I was wondering whether it might be easier for future expansion to remove the feature of adding data? With respect to setting the alpha, size, face- or edgecolor, I find it hard to keep the values in sync when data can be concatenated.

In the concrete case, upon adding data, the plotter tracks which data points have already been set, and preserves their colors. So one would have to do the same for all other properties of the scatter plot, which I see getting out of hand a bit in the future 😬

LMKWYT :)

edit: In practice, there could be a reset() method that clears color indices, alpha & size and then redraws the plot if new data is added. For plots with a large number of datapoints where (redrawing) would make the widget slow, I guess one would turn to the histogram artist anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant