Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* allow adding any number of extra coords * Explain how ds will becom darray * Update dataset_plot.py * Update dataset_plot.py * use coords for coords * Explain goal of moving ds plots to da * Update dataset_plot.py * Update dataset_plot.py * Update dataset_plot.py * handle non-existant coords * Update dataset_plot.py * Look through the kwargs to find extra coords * output of legend labels has changed * pop plt, comment out error test * Update dataset_plot.py * Update facetgrid.py * move some funcs to utils * add the funcs to the moved place * various bugfixes * use coords to check if valid * only normalize sizes, hue is not necessary. * Use same scatter parameter order as the dataset version. * Fix tests assuming a list of patchollections is returned. * improve ds to da wrapper * Filter kwargs * normalize args to be able to filter the correct args * Update plot.py * Update plot.py * Update dataset_plot.py * Some fixes to string colorbar * Update plot.py * Check if hue is str * Fix some failing tests * Update dataset_plot.py * Add more relevant params higher up * use hue in facetgrid, normalize data * Update plot.py * Move parts of scatter to a decorator * Update plot.py * Update plot.py * get scatter to work with decorator * use correct name * Add a Normalize class For categoricals to work most of the time a normalization to numerics has to be done. Once shown on the plot it has to be reformatted however with a lookup function * skip use of Literal * remove test code * fix lint errors * more linting fixes * doctests fixing * Update utils.py * Update plot.py * Update utils.py * Update plot.py * Update facetgrid.py * revert some old ideas * Update utils.py * Update plot.py * trim unused code * use to_numpy instead * more pint compats * work on facetgrid legends * facetgrid colorbar tweaks * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Categoricals starts on 1 and is bounded 0,2 This makes plt.colorbar return ticks in the center of the color * Handle None in Normalize * Fix labels * Update plot.py * determine guide * fix plt * Update facetgrid.py * Don't be able to plot empty legends * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * try out linecollection so lines behaves similar to scatter * linecollections half working * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update utils.py * Update plot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * A few variations of linecollection * linecollection can behave as scatter, with hue and size, But which part of the array will be considered a line and how do you filter for that? * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update plot.py * line to utils * line plot changes * reshape to get hues working * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * line edits legend not nice on line plots yet * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update tutorial.py * doc changes, tuple to dict * nice line plots and working legend * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * comment out some variants * some cleanup * Guess some dims if they weren't defined * None is supposed to pass as well * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * make precommit happy * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update plot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add hist, step * handle step using repeat, remove pint errors * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * handle pint * fix some tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * use isel instead to be independent of categoricals or not * allow multiple primitives and filter duplicates * Update test_plot.py * Copy data inside instead at init. * Histograms has counted values along y, switch around x and y labels. * output as numpy array * histogram outputs primitive only * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update utils.py * Update facetgrid.py * use add_labels inputs, explicit indexes now handles attrs * colorbar in correct position * Update plot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Avoid always stacking To avoid adding unnecessary NaNs. * linecollection fixes TODO is to make sure the values are plotted the along the same axis. * Update plot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add datarray scatter * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update plot.py * Update plot.py * out of scope stuff * Update test_plot.py * Update plot.py * fix some tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update utils.py * Update whats-new.rst * Update utils.py * Update xarray/plot/facetgrid.py Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com> * Update plot.py * typo * Apply suggestions from code review Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com> * Update xarray/plot/utils.py Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com> * Update plot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update plot.py * some typing * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update facetgrid.py * Update plot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Convert name to string in label_from_attrs * Update whats-new.rst * Add typing to soem interval funcs * undo parse_size edits, not necessary * ax not needed * Add some typing * Update utils.py * Cleaner retrieval of add_labels and * type hints * Fix facetgrid and normal plot not matching * Update facetgrid.py * Update plot.py * Add typing to dataset funcs + some fixes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update dataset_plot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add type hints to plot1d * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update facetgrid.py * Update facetgrid.py * Update facetgrid.py * remove sharex for 3d plots, not supported. Add set_lims so all data in plots are shown * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update facetgrid.py * Update facetgrid.py * fix typing * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Self should be any * more fixes to typing * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update facetgrid.py * fix some mypy errors * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update plot.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update plot.py * Update whats-new.rst Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com> Co-authored-by: Anderson Banihirwe <axbanihirwe@ualr.edu>
- Loading branch information