Skip to content

Simplify the LineCollection example #27873

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
Mar 14, 2024

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Mar 6, 2024

Superseeds #27871.

This example is much simpler, but conveys the same LineCollection aspects - except for not using masked arrays. But I argue that this the example should be simple and using masked arrays rather distracts from the core aspects of LineCollection.

If there's concern of not showing masked array support, we should add a third plot for that.

@github-actions github-actions bot added the Documentation: examples files in galleries/examples label Mar 6, 2024
@timhoffm
Copy link
Member Author

timhoffm commented Mar 6, 2024

Preview:

Plot 1:
grafik

Plot 2:
grafik

@timhoffm timhoffm force-pushed the doc-linecollection-simple branch 2 times, most recently from b56476f to c42c055 Compare March 6, 2024 23:55
Copy link
Contributor

@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.

This is a significant improvement over the previous example.

regarding the masked arrays, that's a bit of a specialized use case, and (i think) linecollections aren't the only place where masked arrays are relevant. If keeping an example of masked arrays is important then perhaps a new "Using masked data" example would be best

@timhoffm timhoffm force-pushed the doc-linecollection-simple branch 2 times, most recently from 257d02b to 24b0efa Compare March 7, 2024 20:52
@timhoffm timhoffm force-pushed the doc-linecollection-simple branch from 24b0efa to a131488 Compare March 8, 2024 09:14
Superseeds matplotlib#27871.

This example is much simpler, but conveys the same LineCollection
aspects - except for not using masked arrays. But I argue that this
the example should be simple and using masked arrays rather distracts
from the core aspects of LineCollection.

If there's concern of not showing masked array support, we should add
a third plot for that.
@tacaswell tacaswell added this to the v3.9.0 milestone Mar 14, 2024
@tacaswell tacaswell merged commit ebbef87 into matplotlib:main Mar 14, 2024
@timhoffm timhoffm deleted the doc-linecollection-simple branch July 19, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: examples files in galleries/examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants