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

Performance improved in set_color_by_rgba_func #2316

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Varniex
Copy link
Contributor

@Varniex Varniex commented Feb 22, 2025

Proposed changes

  1. If unit_tex is specified in coordinate labels, "1" is now omitted on both positive and negative axis.

  2. While setting the color using rgba (or rgb) func, performance can be improved by assinging colors to all points at once (using NumPy indexing) instead of iterating through them.

    However, this change would break the existing code for users who rely on rgba (or rgb) function to set colors for rendering animations.

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.

1 participant