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

[ENH]: Add setters for _AxLine._xy1, ._xy2, ._slope #26081

Closed
anntzer opened this issue Jun 5, 2023 · 0 comments · Fixed by #26160
Closed

[ENH]: Add setters for _AxLine._xy1, ._xy2, ._slope #26081

anntzer opened this issue Jun 5, 2023 · 0 comments · Fixed by #26160
Milestone

Comments

@anntzer
Copy link
Contributor

anntzer commented Jun 5, 2023

Problem

Currently the control points / slope of the artist returned by axline() cannot be (publically) modified after being instantiated. It would be nice if the relevant properties (xy1, xy2, slope) had setters (following normal Artist design).

For simplicity it is probably enough if we don't let one set xy2 if slope is set and vice-versa (i.e. whether axline is specified by 2 points or by point-and-slope is locked in). Note that while I do have a use case for changing a previously set xy1/xy2, wanting to switch between the two different representations seems rarer to me(?)

This would likely also make _AxLine public.

Proposed solution

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants