Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Document "." as a filled marker.#24879

Merged
ksunden merged 1 commit intomatplotlib:mainfrom
anntzer:ufm
Jan 4, 2023
Merged

Document "." as a filled marker.#24879
ksunden merged 1 commit intomatplotlib:mainfrom
anntzer:ufm

Conversation

@anntzer
Copy link
Copy Markdown
Contributor

@anntzer anntzer commented Jan 3, 2023

... which it really is. Closes #23849.

Also remove a bunch of unnecessary plt.show() from the marker reference example, to make it more convenient to run from the command line.

PR Summary

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

Comment thread lib/matplotlib/tests/test_lines.py Outdated

for j, marker in enumerate(mlines.Line2D.filled_markers):
for j, marker in enumerate([
m for m in mlines.Line2D.filled_markers if m != "."]):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why not update the reference image to include '.'?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It's not really worth regen'ing the image.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please make this clear in a comment so that one can easily understand why it's there and remove the exclusion if the image is regenerated for some other reason.

Btw that test image changes are expensive is a nuisance. Maybe we can move that topic via paid/contract work?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Commented.
The baseline image has already been discussed at length elsewhere, let's not derail this PR with it.

Comment thread lib/matplotlib/tests/test_lines.py
... which it really is.

Also remove a bunch of unnecessary plt.show() from the marker reference
example, to make it more convenient to run from the command line.
@ksunden ksunden added this to the v3.7.0 milestone Jan 4, 2023
@ksunden ksunden merged commit 0e3a261 into matplotlib:main Jan 4, 2023
@anntzer anntzer deleted the ufm branch January 4, 2023 15:52
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.

[Bug]: The point marker is not actually unfilled

5 participants