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

Small improvements for better use #17

Merged
merged 6 commits into from
Jan 23, 2024

Conversation

Xraydylan
Copy link
Contributor

Changes:

  • Made classes an optional argument with the default class being "1"

Added:

  • disable_legend argument to optionally not display classes in legend
  • clear_positions() function to remove all points from a class (or all classes) with external call

@Xraydylan
Copy link
Contributor Author

Note:
I haven't made changes to the doc so far

Copy link
Collaborator

@ianhi ianhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Xraydylan thanks for this PR! This is going to be a great change, to my surprise it seems that most people use this library with only one class.

I've requested some coding changes below but looking good to start

mpl_point_clicker/_clicker.py Outdated Show resolved Hide resolved
mpl_point_clicker/_clicker.py Outdated Show resolved Hide resolved
mpl_point_clicker/_clicker.py Outdated Show resolved Hide resolved
mpl_point_clicker/_clicker.py Outdated Show resolved Hide resolved
mpl_point_clicker/_clicker.py Outdated Show resolved Hide resolved
mpl_point_clicker/_clicker.py Outdated Show resolved Hide resolved
@ianhi
Copy link
Collaborator

ianhi commented Jan 12, 2024

the docs build is not your fault. I have an outdated config file that readthedocs finally stopped supporting. I'll fix that in a separate PR

@ianhi ianhi merged commit 31a6504 into mpl-extensions:pre-commit-ci-update-config Jan 23, 2024
0 of 2 checks passed
@ianhi
Copy link
Collaborator

ianhi commented Jan 23, 2024

Thank you for the contribution @Xraydylan ! You are actually the first contributor outside of me for this repo :) I really appreciate you taking the time to do this work

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.

2 participants