-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dataset.plot.quiver #4407
Dataset.plot.quiver #4407
Conversation
This does not work because quiverkey.get_window_extent(...) return 0...
2c40bb5
to
f1da0c0
Compare
This is ready for a review. I don't I can fix the quiverkey without matplotlib/matplotlib#18530 . This is still useful for a quick look at the data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. The plotting code is not getting simpler 🙃 but it's so useful!
- Why is scale required for facetgrid and not for a single panel?
- Should it emit a Warning/ Error if
u
orv
are given andfuncname != "quiver"
matplotlib will make a nice choice for the single panel. With facetgrid, the scale will be different for each panel if we don't specify it. And i had trouble porting the matplotlib algorithm. We can always add this in the future.
Good idea. Done. |
* upstream/master: speed up the repr for big MultiIndex objects (pydata#4846) dim -> coord in DataArray.integrate (pydata#3993) WIP: backend interface, now it uses subclassing (pydata#4836) weighted: small improvements (pydata#4818) Update related-projects.rst (pydata#4844) iris update doc url (pydata#4845) Faster unstacking (pydata#4746) Allow swap_dims to take kwargs (pydata#4841) Move skip ci instructions to contributing guide (pydata#4829) fix issues in drop_sel and drop_isel (pydata#4828) Bugfix in list_engine (pydata#4811) Add drop_isel (pydata#4819) Fix RST. Remove the references to `_file_obj` outside low level code paths, change to `_close` (pydata#4809)
self.figlegend = None | ||
self.quiverkey = None | ||
self.cbar = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically backwards incompatible but I'm not sure it affects anyone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good (but I don't have experience with plt.quiver
).
Co-authored-by: Mathias Hauser <[email protected]>
* upstream/master: FIX: h5py>=3 string decoding (pydata#4893) Update matplotlib's canonical (pydata#4919) Adding vectorized indexing docs (pydata#4711) Allow fsspec URLs in open_(mf)dataset (pydata#4823) Fix typos in example notebooks (pydata#4908) pre-commit autoupdate CI (pydata#4906) replace the ci-trigger action with a external one (pydata#4905) Update area_weighted_temperature.ipynb (pydata#4903) hide the decorator from the test traceback (pydata#4900) Sort backends (pydata#4886) Compatibility with dask 2021.02.0 (pydata#4884)
I'll merge on Friday if there are no more comments. |
isort . && black . && mypy . && flake8
whats-new.rst
api.rst
I could use some help with adding tests and parameter checking if someone wants to help :)