This repository has been archived by the owner on Oct 7, 2024. It is now read-only.
forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Scatter plots of one variable vs another (pydata#2277)
* initial commit * formatting * fix bug * refactor map_scatter * colorbar * formatting * refactor * refactor _infer_data * added tests * minor formatting * fixed tests * Refactor out to dataset_plot.py + move utilities to utils.py * Fix tests. * Fixes. * discrete_legend → add_colorbar * Revert "discrete_legend → add_colorbar" This reverts commit d3e1308. * Only use scatter instead of alternating between scatter and plot. * Create and use plot.utils._add_colorbar * fix tests. * More fixes to hue, cmap_kwargs. * doc fixes. * Dataset plotting docs. * group existing docs under "DataArrays." * bugfix. * Fix. * Add whats-new * Add api.rst. * Add hue_style. * Update tests. * cleanup imports. * facetgrid: Refactor out cmap_params, cbar_kwargs processing * Dataset.plot.scatter obeys cmap_params, cbar_kwargs. * _determine_cmap_params supports datetime64 * dataset.plot.scatter supports hue=datetime64, timedelta64 * pep8 * Update docs. * bugfix: facetgrid now uses hue_style * minor fixes. * Scatter docs * Refactor out more code to utils.py * map_scatter → map_dataset * Use some wrapping magic to generalize code. * Add hist as test of generalization. * Get facetgrid working again * Refactor out utility functions. * facetgrid refactor 1. refactor out _easy_facetgrid 2. Combine map_dataarray_line with map_dataarray * flake8 * Refactor out colorbar making to plot.utils._add_colorbar * Refactor out cmap_params, cbar_kwargs processing * Back to map_dataarray_line * lint * small rename * review comment. * Bugfix merge * hue, hue_style aren't needed for all functions. * lint * Use _process_cmap_cbar_kwargs. * Update whats-new * Some doc fixes. * Fix tests? * another attempt to fix tests. * small * remove py2 line * remove extra _infer_line_data * Use _is_facetgrid flag. * Revert "_determine_cmap_params supports datetime64" This reverts commit 0a01e7c. * Remove datetime/timedelta hue support * _meta_data → meta_data. * isort * Add doc line * Switch to add_guide. * Save hist for a future PR. * rename _numeric to _is_numeric. * Raise error if add_colorbar or add_legend are passed to scatter. * Add scatter_example_dataset to tutorial.py * Support scattering against coordinates, dimensions or data vars * Support 'scatter_size' kwarg * color → hue and other changes. * Facetgrid support for scatter_size. * add_guide in docs. * Avoid top-level matplotlib import * Fix lint errors. * Follow shoyer's suggestions. * scatter_size → markersize. * Update more error messages. * lint errors * lint errors again * some more lints * docstrings * fix legend bug in line plots * unittest for legend in lineplot * bug fix * add figlegend to __init__ * remove import from facetgrid.py * Remove xr.plot.scatter. * facetgrid._hue_var is always a DataArray. * scatter_size bugfix. * Update for latest _process_cmap_params_cbar_kwargs * Fix whats-new * Fix tests. * Make add_guide=False work.
- Loading branch information
Showing
10 changed files
with
743 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.