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

Hatch linewidths in an rcParam context #21325

Closed
wants to merge 421 commits into from

Conversation

singhaditya28
Copy link

@singhaditya28 singhaditya28 commented Oct 9, 2021

PR Summary

Have added the suggested additions in order to solve Issue #21108

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

timhoffm and others added 30 commits September 18, 2021 23:05
in accordance what we've already done in the top-level menu.
- use a marker and no line for the data points
- hard-code yerr instead of using random with a fixed seed
- Slightly move y so that the data points don't always fall on the grid
- Remove "specialized" from section title. There are no more special
  than any other plots.
The original thumbnail margin in gallery.css is 5px. We reduce the
horizontal margin to 2px so that four columns fit within the available
width in the pydata-sphinx-theme.
…ypes

Improve errorbar plot types example
…arg-support-mplot3d

[ENH]: data kwarg support for mplot3d matplotlib#20912
Fix make_norm_from_scale `__name__` when used inline.
Rename section title Gallery -> Examples
Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
This has been the case since at least mpl2.0, so let's just fix the doc
for now.  Likely there was some confusion with zoom/pan mode, where CTRL
does fix the aspect.
- Most 2D data examples don't need Z.min() subtraction (the
  normalization adjusts itself as needed).
- Tweak spacing in the expression for Z to be the same everywhere.
- Use shorter .min(), .max() methods instead of free functions.
Capitalization fixes in example section titles.
Accepting to call _process_plot_format() (which is unlikely to be the
slowest step here) even in the default case makes the code logic much
simpler.
Simplify/uniformize sample data setup in plot_types examples.
When using the default padding and the pydata-sphinx-theme, the image
is shifted away from the center. While that should be fixed in
sphinx-gallery (and I will report it there), this serves as a workaround
on the matplotlib side, because I don't think they will have it fixed
ready for the 3.5 release.
…ding

DOC: Fix decenter of image in gallery thumbnails
…riented

DOC: clarify what we mean by object oriented in pyplot api
- remove contour plot for simplicity.
- don't set zorder.
- Z doesn't need to be made positive.
Add contour and tricontour plots to plot types
Tweak streamplot plot_types example.
- `__scale = "manual"` doesn't exist anymore since d1c5a6a.
- Shorten Boundary/NoNorm inversion and norm._scale check.
- No need to define `x` well before its use point, and no need to make
  it an array explicitly.
Fix polar() regression on second call failure
The zoom and pan funcitons change the vmin/vmax of the norm
attached to the colorbar. The colorbar is rendered as an inset
axis, but the event handler is implemented on the parent axis.
This helps for subclasses in finding the zoom/pan locations by
not having to duplicate the code used to determine the x/y locations
of the zoom or pan.
Setting the zoom selector rectangle to the vertical/horizontal
limits of the colorbar, depending on the orientation.

Remove some mappable types from colorbar navigation. Certain mappables,
like categoricals and contours shouldn't be mapped by default due to
the limits of an axis carrying certain meaning. So, turn that off
for now and potentially revisit in the future.
Adding tests for vertical and horizontal placements, zoom in, zoom out,
and pan. Also verifying that a colorbar on a Contourset is not able
to be interacted with.
QuLogic and others added 16 commits October 6, 2021 23:11
Make `Path.__deepcopy__` interact better with subclasses, e.g. TextPath.
Doing out-of-tree builds makes a copy that breaks symlinks in the git
tree, causing PyPy wheels to get a version that signifies a dirty tree
when they shouldn't.

This will change in pip soon, but changing this will fix the version for
our release now.
Simplify `Colormap.__call__` a bit.
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a while, please feel free to ping @matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@jklymak
Copy link
Member

jklymak commented Oct 12, 2021

Your test failure seems to mean that your hatch output is not the same each time? Note you will also need to add tests to this to test the behaviour change, and at some point it will need a whats-new. Is it also backwards incompatible? If so, you need to work out how to make the transition. Just applying @anntzer's patch is not enough here.

@tacaswell
Copy link
Member

This PR is affected by a re-writing of our history to remove a large number of accidentally committed files see discourse for details.

To recover this PR it will need be rebased onto the new default branch (main). There are several ways to accomplish this, but we recommend (assuming that you call the matplotlib/matplotlib remote "upstream"

git remote update
git checkout main
git merge --ff-only upstream/main
git checkout YOUR_BRANCH
git rebase --onto=main upstream/old_master
# git rebase -i main # if you prefer
git push --force-with-lease   # assuming you are tracking your branch

If you do not feel comfortable doing this or need any help please reach out to any of the Matplotlib developers. We can either help you with the process or do it for you.

Thank you for your contributions to Matplotlib and sorry for the inconvenience.

@rcomer
Copy link
Member

rcomer commented Mar 11, 2023

Closing in favour of #25367.

@rcomer rcomer closed this Mar 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet