Skip to content

Commit c804fbb

Browse files
author
dcherian
committed
Minor fixes.
1 parent 80f2dd4 commit c804fbb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

xarray/plot/plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,6 @@ def hist(darray, figsize=None, size=None, aspect=None, ax=None, **kwargs):
403403

404404
primitive = ax.hist(no_nan, **kwargs)
405405

406-
ax.set_ylabel('Count')
407406
ax.set_title('Histogram')
408407
ax.set_xlabel(label_from_attrs(darray))
409408

@@ -415,7 +414,8 @@ def hist(darray, figsize=None, size=None, aspect=None, ax=None, **kwargs):
415414

416415
def _update_axes(ax, xincrease, yincrease,
417416
xscale=None, yscale=None,
418-
xticks=None, yticks=None, xlim=None, ylim=None):
417+
xticks=None, yticks=None,
418+
xlim=None, ylim=None):
419419
"""
420420
Update axes with provided parameters
421421
"""

xarray/tests/test_plot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,6 +1682,7 @@ def test_plot_cftime_data_error():
16821682
DataArray(easy_array((10, 3, 2)))]
16831683

16841684

1685+
@requires_matplotlib
16851686
class TestAxesKwargs(object):
16861687
@pytest.mark.parametrize('da', test_da_list)
16871688
@pytest.mark.parametrize('xincrease', [True, False])

0 commit comments

Comments
 (0)