Skip to content

Commit 4519843

Browse files
author
Joseph Hamman
committed
updates for 0.14 release
1 parent 4f5ca73 commit 4519843

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

doc/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -614,8 +614,8 @@ Plotting
614614
:toctree: generated/
615615

616616
Dataset.plot
617+
plot.scatter
617618
DataArray.plot
618-
Dataset.plot.scatter
619619
plot.plot
620620
plot.contourf
621621
plot.contour

doc/whats-new.rst

+17-18
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ What's New
1515
1616
.. _whats-new.0.14.0:
1717

18-
v0.14.0 (unreleased)
19-
--------------------
18+
v0.14.0 (14 Oct 2019)
19+
---------------------
2020

2121
Breaking changes
2222
~~~~~~~~~~~~~~~~
@@ -42,42 +42,43 @@ Breaking changes
4242

4343
(:issue:`3222`, :issue:`3293`, :issue:`3340`, :issue:`3346`, :issue:`3358`).
4444
By `Guido Imperiale <https://github.com/crusaderky>`_.
45-
- Dropped the 'drop=False' optional parameter from :meth:`Variable.isel`.
46-
It was unused and doesn't make sense for a Variable.
47-
(:pull:`3375`) by `Guido Imperiale <https://github.com/crusaderky>`_.
45+
46+
- Dropped the `drop=False` optional parameter from :meth:`Variable.isel`.
47+
It was unused and doesn't make sense for a Variable. (:pull:`3375`).
48+
By `Guido Imperiale <https://github.com/crusaderky>`_.
4849

4950
- Remove internal usage of `collections.OrderedDict`. After dropping support for
5051
Python <=3.5, most uses of `OrderedDict` in Xarray were no longer necessary. We
5152
have removed the internal use of the `OrderedDict` in favor of Python's builtin
5253
`dict` object which is now ordered itself. This change will be most obvious when
5354
interacting with the `attrs` property on the Dataset and DataArray objects.
54-
55-
(:issue:`3380`, :issue:`3389`). By `Joe Hamman <https://github.com/jhamman>`_.
55+
(:issue:`3380`, :pull:`3389`). By `Joe Hamman <https://github.com/jhamman>`_.
5656

5757
New functions/methods
5858
~~~~~~~~~~~~~~~~~~~~~
5959

6060
- Added :py:func:`~xarray.map_blocks`, modeled after :py:func:`dask.array.map_blocks`.
6161
Also added :py:meth:`Dataset.unify_chunks`, :py:meth:`DataArray.unify_chunks` and
62-
:py:meth:`testing.assert_chunks_equal`. By `Deepak Cherian <https://github.com/dcherian>`_
63-
and `Guido Imperiale <https://github.com/crusaderky>`_.
62+
:py:meth:`testing.assert_chunks_equal`. (:pull:`3276`).
63+
By `Deepak Cherian <https://github.com/dcherian>`_ and
64+
`Guido Imperiale <https://github.com/crusaderky>`_.
6465

6566
Enhancements
6667
~~~~~~~~~~~~
6768

6869
- :py:class:`~xarray.core.GroupBy` enhancements. By `Deepak Cherian <https://github.com/dcherian>`_.
6970

70-
- Added a repr. Example::
71+
- Added a repr (:pull:`3344`). Example::
7172

7273
>>> da.groupby("time.season")
7374
DataArrayGroupBy, grouped over 'season'
7475
4 groups with labels 'DJF', 'JJA', 'MAM', 'SON'
7576

7677
- Added a ``GroupBy.dims`` property that mirrors the dimensions
77-
of each group.(:issue:`3344`)
78+
of each group (:issue:`3344`).
7879

7980
- Speed up :meth:`Dataset.isel` up to 33% and :meth:`DataArray.isel` up to 25% for small
80-
arrays (:issue:`2799`, :pull:`3375`) by
81+
arrays (:issue:`2799`, :pull:`3375`). By
8182
`Guido Imperiale <https://github.com/crusaderky>`_.
8283

8384
Bug fixes
@@ -107,16 +108,14 @@ Documentation
107108
By `Gregory Gundersen <https://github.com/gwgundersen/>`_.
108109
- Created a "How do I..." section (:ref:`howdoi`) for solutions to common questions. (:pull:`3357`).
109110
By `Deepak Cherian <https://github.com/dcherian/>`_.
110-
- Add examples for :py:meth:`Dataset.swap_dims` and :py:meth:`DataArray.swap_dims`.
111-
By `Justus Magin <https://github.com/keewis>`_.
111+
- Add examples for :py:meth:`Dataset.swap_dims` and :py:meth:`DataArray.swap_dims`
112+
(pull:`3331`, pull:`3331`). By `Justus Magin <https://github.com/keewis>`_.
112113
- Add examples for :py:meth:`align`, :py:meth:`merge`, :py:meth:`combine_by_coords`,
113114
:py:meth:`full_like`, :py:meth:`zeros_like`, :py:meth:`ones_like`, :py:meth:`Dataset.pipe`,
114-
:py:meth:`Dataset.assign`, :py:meth:`Dataset.reindex`, :py:meth:`Dataset.fillna`.
115+
:py:meth:`Dataset.assign`, :py:meth:`Dataset.reindex`, :py:meth:`Dataset.fillna` (pull:`3328`).
115116
By `Anderson Banihirwe <https://github.com/andersy005>`_.
116117
- Fixed documentation to clean up an unwanted file created in ``ipython`` example
117-
(:pull:`3353`).
118-
By `Gregory Gundersen <https://github.com/gwgundersen/>`_.
119-
118+
(:pull:`3353`). By `Gregory Gundersen <https://github.com/gwgundersen/>`_.
120119

121120
.. _whats-new.0.13.0:
122121

xarray/core/dataarray.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2543,7 +2543,7 @@ def _copy_attrs_from(self, other: Union["DataArray", Dataset, Variable]) -> None
25432543
@property
25442544
def plot(self) -> _PlotMethods:
25452545
"""
2546-
Access plotting functions
2546+
Access plotting functions for DataArray's
25472547
25482548
>>> d = DataArray([[1, 2], [3, 4]])
25492549

xarray/core/dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5243,8 +5243,8 @@ def imag(self):
52435243
@property
52445244
def plot(self):
52455245
"""
5246-
Access plotting functions. Use it as a namespace to use
5247-
xarray.plot functions as Dataset methods
5246+
Access plotting functions for Datasets.
5247+
Use it as a namespace to use xarray.plot functions as Dataset methods
52485248
52495249
>>> ds.plot.scatter(...) # equivalent to xarray.plot.scatter(ds,...)
52505250

xarray/plot/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from .facetgrid import FacetGrid
22
from .plot import contour, contourf, hist, imshow, line, pcolormesh, plot, step
3+
from .dataset_plot import scatter
34

45
__all__ = [
56
"plot",
@@ -11,4 +12,5 @@
1112
"imshow",
1213
"pcolormesh",
1314
"FacetGrid",
15+
"scatter"
1416
]

0 commit comments

Comments
 (0)