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

Add alpha #26

Closed
jo-mueller opened this issue Jul 22, 2024 · 0 comments · Fixed by #27
Closed

Add alpha #26

jo-mueller opened this issue Jul 22, 2024 · 0 comments · Fixed by #27
Labels
enhancement New feature or request

Comments

@jo-mueller
Copy link
Contributor

jo-mueller commented Jul 22, 2024

It would be nice to add an alpha property to the plotter that controls, well, the alpha-value of drawn points. Its usage would have to be restricted to the scatter artist as there wouldn't be any real equivalent for a 2D histogram.

In the scope of the clusters plotter, this parameter could then help to move out-of-timeframe points/objects into the background of the plot.

@jo-mueller jo-mueller added the enhancement New feature or request label Jul 22, 2024
jo-mueller added a commit that referenced this issue Jul 22, 2024
Related to #26

Add `alpha` property to control alpha-value of scatter points

* Add `alpha` property to `Scatter` class in `src/biaplotter/artists.py`
  - Initialize `alpha` property in `__init__` method
  - Update `draw` method to use `alpha` property
  - Add getter and setter for `alpha` property
* Add functionality to set and get `alpha` property for scatter artist in `CanvasWidget` class in `src/biaplotter/plotter.py`
  - Add `alpha` property to `CanvasWidget` class
  - Update `active_artist` setter to handle `alpha` property
* Add unit tests for `alpha` property in `Scatter` class in `src/biaplotter/_tests/test_artists.py`
  - Test initialization, setting, and usage of `alpha` property

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/BiAPoL/biaplotter/issues/26?shareId=df67f154-a9ed-4910-a0bd-40b60e78eacc).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant