Skip to content

DOC: Slightly improve the LineCollection docstring #29265

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

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Dec 9, 2024

Closes #26738.

@timhoffm timhoffm added the Documentation: API files in lib/ and doc/api label Dec 9, 2024
@github-actions github-actions bot removed the Documentation: API files in lib/ and doc/api label Dec 9, 2024
of points::
segments : list of (N, 2) array-like
A sequence ``[line0, line1, ...]`` where each line is a (N, 2)-shape
array-like representing points::
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
array-like representing points::
array-like containing points::


or the equivalent Mx2 numpy array with two columns. Each line
can have a different number of segments.
Each line can have a different number of segments.
Copy link
Member

@story645 story645 Dec 9, 2024

Choose a reason for hiding this comment

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

Suggested change
Each line can have a different number of segments.
Each line can contain a different amount of points.

It's a bit unclear to me what this is referencing b/c the parameter segments is the list of lines and we don't give the segments is section between points definition here & I think what you mean here is the latter.

@story645 story645 added this to the v3.10.0 milestone Dec 10, 2024
@story645 story645 merged commit cc82d4f into matplotlib:main Dec 10, 2024
39 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 10, 2024
QuLogic added a commit that referenced this pull request Dec 10, 2024
…265-on-v3.10.x

Backport PR #29265 on branch v3.10.x (DOC: Slightly improve the LineCollection docstring)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve LineCollection docstring further
2 participants