Skip to content

Conversation

@nvaytet
Copy link
Member

@nvaytet nvaytet commented Apr 2, 2025

Add visible and opacity properties on all artists.
Add also style, marker and width to the line artists.

Fixes #427

@nvaytet nvaytet requested a review from Copilot April 2, 2025 21:14
Copy link
Contributor

Copilot AI left a 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.

@nvaytet
Copy link
Member Author

nvaytet commented Apr 9, 2025

@jokasimr once this is released, it should make some things in the reflectometry GUI easier (showing/hiding lines when checkboxes are clicked)

@nvaytet nvaytet merged commit 98ff131 into main Apr 9, 2025
4 checks passed
@nvaytet nvaytet deleted the more-artist-properties branch April 9, 2025 13:34
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.

Make more artist properties available

3 participants