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 property to scatter artist #27

Merged
merged 5 commits into from
Jul 25, 2024
Merged

Add alpha property to scatter artist #27

merged 5 commits into from
Jul 25, 2024

Conversation

jo-mueller
Copy link
Contributor

Fixes #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.

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).
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

Attention: Patch coverage is 85.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 89.93%. Comparing base (65e2e9b) to head (5b5f420).

Files Patch % Lines
src/biaplotter/artists.py 85.71% 2 Missing ⚠️
src/biaplotter/_tests/test_artists.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #27      +/-   ##
==========================================
- Coverage   90.11%   89.93%   -0.19%     
==========================================
  Files           7        7              
  Lines         597      616      +19     
==========================================
+ Hits          538      554      +16     
- Misses         59       62       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jo-mueller jo-mueller mentioned this pull request Jul 23, 2024
@jo-mueller jo-mueller marked this pull request as ready for review July 23, 2024 13:06
@zoccoler zoccoler merged commit 390e9a9 into main Jul 25, 2024
9 of 11 checks passed
@zoccoler
Copy link
Contributor

Hmm, I don't understand why/how this one was merged after I merged #29

@zoccoler
Copy link
Contributor

I cannot revert this. I will create an issue to check if the alpha setting is working properly.

@jo-mueller jo-mueller deleted the jo-mueller/add-alpha branch July 25, 2024 12:40
@jo-mueller jo-mueller restored the jo-mueller/add-alpha branch July 25, 2024 13:19
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

Successfully merging this pull request may close these issues.

Add alpha
2 participants