Skip to content

Refactor plot utils #2670

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

Merged
merged 13 commits into from
Jan 30, 2019
Merged

Refactor plot utils #2670

merged 13 commits into from
Jan 30, 2019

Conversation

dcherian
Copy link
Contributor

@dcherian dcherian commented Jan 14, 2019

Making the Dataset plotting PR smaller. This one

  1. Refactors out plotting utility functions.
  2. Refactors some facetgrid code.
  3. Refactors out parsing colormap, colorbar kwargs
  4. Refactors out making colorbars

dcherian added 2 commits January 14, 2019 00:48
1. refactor out _easy_facetgrid
2. Combine map_dataarray_line with map_dataarray
@pep8speaks
Copy link

pep8speaks commented Jan 14, 2019

Hello @dcherian! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on January 30, 2019 at 16:44 Hours UTC

@dcherian dcherian changed the title Refactor plot utils WIP Refactor plot utils Jan 14, 2019
@dcherian dcherian changed the title WIP Refactor plot utils Refactor plot utils Jan 14, 2019
* upstream/master:
  xfail cftimeindex multiindex test (pydata#2669)
  DOC: refresh "Why xarray" and shorten top-level description (pydata#2657)
  Remove broken Travis-CI builds (pydata#2661)
  Type checking with mypy (pydata#2655)
  Added Coarsen (pydata#2612)
@dcherian
Copy link
Contributor Author

Tests should pass after #2673 is fixed.

Copy link
Member

@shoyer shoyer left a comment

Choose a reason for hiding this comment

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

This is definitely a step in the right direction!

dcherian and others added 5 commits January 23, 2019 21:14
* master:
  stale requires a label (pydata#2701)
  Update indexing.rst (pydata#2700)
  add line break to message posted (pydata#2698)
  Config for closing stale issues (pydata#2684)
  to_dict without data (pydata#2659)
  Update asv.conf.json (pydata#2693)
  try no rasterio in py36 env (pydata#2691)
  Detailed report for testing.assert_equal and testing.assert_identical (pydata#1507)
  Hotfix for pydata#2662 (pydata#2678)
  Update README.rst (pydata#2682)
  Fix test failures with numpy=1.16 (pydata#2675)
@dcherian dcherian merged commit 37a947a into pydata:master Jan 30, 2019
dcherian pushed a commit that referenced this pull request Jan 30, 2019
commit 37a947a
Author: Deepak Cherian <[email protected]>
Date:   Wed Jan 30 09:20:57 2019 -0800

    Refactor plot utils (#2670)

    * 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.

    * Move _infer_line_data back.

commit fd2552a
Author: Spencer Clark <[email protected]>
Date:   Wed Jan 30 11:45:09 2019 -0500

    Enable subtracting a scalar cftime.datetime object from a CFTimeIndex (#2672)

    * Enable subtracting a scalar cftime.datetime object from a CFTimeIndex

    * lint

    * Test cftime.datetime minus CFTimeIndex as well

    * Fix cftime minus CFTimeIndex

commit e8bf4bf
Author: Tom Nicholas <[email protected]>
Date:   Wed Jan 30 02:02:22 2019 +0000

    Bugfix for line plot axes (#2726)

    * Fixed logic for setting line data

    * Added tests to check line data matches values of correct coords

    * Recorded bugfix for line plots

    * Update doc/whats-new.rst

    Co-Authored-By: TomNicholas <[email protected]>

    * Update doc/whats-new.rst

    Co-Authored-By: TomNicholas <[email protected]>

commit 620b946
Author: Stephan Hoyer <[email protected]>
Date:   Sun Jan 27 13:02:03 2019 -0800

    Fix test failures / warnings for pandas 0.24 (#2720)

    * Fix test failures / warnings for pandas 0.24

    Fixes GH2717

    * Brief doc note

    * Comment on name order

commit 882deac
Author: Stephan Hoyer <[email protected]>
Date:   Sun Jan 27 09:11:47 2019 -0800

    DOC: refresh whats-new for 0.11.3 / 0.12.0 (#2718)

commit 8ca8efe
Author: Stephan Hoyer <[email protected]>
Date:   Sat Jan 26 10:14:49 2019 -0800

    Update environment for doc build (#2708)

    * Update environment for doc build

    We were pinning very old versions for most of these packages. This should
    fix the failures on ReadTheDocs.

    * Build fixes

commit 2e99c7d
Author: Stephan Hoyer <[email protected]>
Date:   Fri Jan 25 13:52:17 2019 -0800

    Print full environment fron conf.py (#2709)

    This should make it easier to debug the doc build environment.

commit cc5015a
Author: Stephan Hoyer <[email protected]>
Date:   Fri Jan 25 11:55:07 2019 -0800

    BUG: ensure indexes are reset when coords are modified (#2707)

    This was introduced by the recent indexes refactor, but never made it into a
    release.

commit aabda43
Author: Joe Hamman <[email protected]>
Date:   Fri Jan 25 08:38:45 2019 -0800

    Remove py2 compat (#2645)

    * strip out PY2 compat code from pycompat.py

    * isort

    * remove 2 unused imports

    * remove extra import

    * no more future

    * no unicode literals

    * no more ReprMixin

    * cleanup merge

    * remove deprecated imports from collections

    * 2 more cleanups from shoyer
dcherian pushed a commit to yohai/xarray that referenced this pull request Jan 30, 2019
* upstream/master:
  Refactor plot utils (pydata#2670)
  Enable subtracting a scalar cftime.datetime object from a CFTimeIndex (pydata#2672)
  Bugfix for line plot axes (pydata#2726)
  Fix test failures / warnings for pandas 0.24 (pydata#2720)
  DOC: refresh whats-new for 0.11.3 / 0.12.0 (pydata#2718)
  Update environment for doc build (pydata#2708)
  Print full environment fron conf.py (pydata#2709)
  BUG: ensure indexes are reset when coords are modified (pydata#2707)
  Remove py2 compat (pydata#2645)
@dcherian dcherian deleted the refactor-plot-utils branch March 7, 2019 20:39
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.

3 participants