Skip to content
forked from pydata/xarray

Commit

Permalink
small rename
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Jan 24, 2019
1 parent 1217ab1 commit 792291c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions xarray/plot/facetgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from ..core.formatting import format_item
from .utils import (
_infer_line_data, _infer_xy_labels, _process_cbar_cmap_kwargs,
_infer_line_data, _infer_xy_labels, _process_cmap_cbar_kwargs,
import_matplotlib_pyplot, label_from_attrs)

# Overrides axes.labelsize, xtick.major.size, ytick.major.size
Expand Down Expand Up @@ -223,7 +223,7 @@ def map_dataarray(self, func, x, y, **kwargs):
if kwargs.get('cbar_ax', None) is not None:
raise ValueError('cbar_ax not supported by FacetGrid.')

cmap_params, cbar_kwargs = _process_cbar_cmap_kwargs(
cmap_params, cbar_kwargs = _process_cmap_cbar_kwargs(
func, kwargs, self.data.values)

self._cmap_extend = cmap_params.get('extend')
Expand Down
4 changes: 2 additions & 2 deletions xarray/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from .utils import (
_add_colorbar, _ensure_plottable, _infer_interval_breaks, _infer_line_data,
_infer_xy_labels, _interval_to_double_bound_points,
_interval_to_mid_points, _process_cbar_cmap_kwargs, _rescale_imshow_rgb,
_interval_to_mid_points, _process_cmap_cbar_kwargs, _rescale_imshow_rgb,
_resolve_intervals_2dplot, _update_axes, _valid_other_type, get_axis,
import_matplotlib_pyplot, label_from_attrs)

Expand Down Expand Up @@ -564,7 +564,7 @@ def newplotfunc(darray, x=None, y=None, figsize=None, size=None,

_ensure_plottable(xplt, yplt)

cmap_params, cbar_kwargs = _process_cbar_cmap_kwargs(
cmap_params, cbar_kwargs = _process_cmap_cbar_kwargs(
plotfunc, locals(), zval.data)

if 'contour' in plotfunc.__name__:
Expand Down
2 changes: 1 addition & 1 deletion xarray/plot/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ def _infer_interval_breaks(coord, axis=0, check_monotonic=False):
return np.concatenate([first, coord[trim_last] + deltas, last], axis=axis)


def _process_cbar_cmap_kwargs(func, kwargs, data):
def _process_cmap_cbar_kwargs(func, kwargs, data):
"""
Parameters
==========
Expand Down

0 comments on commit 792291c

Please sign in to comment.