-
Notifications
You must be signed in to change notification settings - Fork 5
Make more artist properties available #430
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extends artist functionality by adding new properties for visibility, opacity, style, marker, and width across various backends. Key changes include:
- Adding tests for the new visible and opacity properties.
- Implementing visible and opacity properties in the pythreejs, plotly, and matplotlib backends.
- Extending the line artist properties by including style, marker, and width in both plotly and matplotlib backends.
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/graphics/artists_test.py | Added tests for the new visible and opacity properties; note an issue with test naming. |
| src/plopp/backends/pythreejs/scatter3d.py | Added a visible property for scatter3d. |
| src/plopp/backends/pythreejs/mesh3d.py | Added visible property adjustments for mesh3d (including edges). |
| src/plopp/backends/plotly/line.py | Added style, width, marker, visible, and opacity properties. |
| src/plopp/backends/matplotlib/scatter.py | Added visible, color, and opacity properties for scatter. |
| src/plopp/backends/matplotlib/mesh_image.py | Added visible and opacity properties for mesh images. |
| src/plopp/backends/matplotlib/line.py | Added style, width, marker, visible, and opacity properties. |
| src/plopp/backends/matplotlib/fast_image.py | Added visible and opacity properties for fast image rendering. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@jokasimr once this is released, it should make some things in the reflectometry GUI easier (showing/hiding lines when checkboxes are clicked) |
Add
visibleandopacityproperties on all artists.Add also
style,markerandwidthto the line artists.Fixes #427