Set options for xarray in a controlled context. Parameters ---------- arithmetic_broadcast : bool, default: True Whether to perform automatic broadcasting in binary operations. arithmetic_compat: {"identical", "equals", "broadcast_equals", "no_conflicts", "override", "m
| 198 | |
| 199 | |
| 200 | class set_options: |
| 201 | """ |
| 202 | Set options for xarray in a controlled context. |
| 203 | |
| 204 | Parameters |
| 205 | ---------- |
| 206 | arithmetic_broadcast : bool, default: True |
| 207 | Whether to perform automatic broadcasting in binary operations. |
| 208 | arithmetic_compat: {"identical", "equals", "broadcast_equals", "no_conflicts", "override", "minimal"}, default: "minimal" |
| 209 | How to compare non-index coordinates of the same name for potential |
| 210 | conflicts when performing binary operations. (For the alignment of index |
| 211 | coordinates in binary operations, see `arithmetic_join`.) |
| 212 | |
| 213 | - "identical": all values, dimensions and attributes of the coordinates |
| 214 | must be the same. |
| 215 | - "equals": all values and dimensions of the coordinates must be the |
| 216 | same. |
| 217 | - "broadcast_equals": all values of the coordinates must be equal after |
| 218 | broadcasting to ensure common dimensions. |
| 219 | - "no_conflicts": only values which are not null in both coordinates |
| 220 | must be equal. The returned coordinate then contains the combination |
| 221 | of all non-null values. |
| 222 | - "override": skip comparing and take the coordinates from the first |
| 223 | operand. |
| 224 | - "minimal": drop conflicting coordinates. |
| 225 | arithmetic_join : {"inner", "outer", "left", "right", "exact"}, default: "inner" |
| 226 | DataArray/Dataset index alignment in binary operations: |
| 227 | |
| 228 | - "outer": use the union of object indexes |
| 229 | - "inner": use the intersection of object indexes |
| 230 | - "left": use indexes from the first object with each dimension |
| 231 | - "right": use indexes from the last object with each dimension |
| 232 | - "exact": instead of aligning, raise `ValueError` when indexes to be |
| 233 | aligned are not equal |
| 234 | chunk_manager : str, default: "dask" |
| 235 | Chunk manager to use for chunked array computations when multiple |
| 236 | options are installed. |
| 237 | facetgrid_figsize : {"computed", "rcparams"} or tuple of float, default: "computed" |
| 238 | How :class:`~xarray.plot.FacetGrid` determines figure size when |
| 239 | ``figsize`` is not explicitly passed: |
| 240 | |
| 241 | * ``"computed"`` : figure size is derived from ``size`` and ``aspect`` |
| 242 | parameters (current default behavior). |
| 243 | * ``"rcparams"`` : use ``matplotlib.rcParams['figure.figsize']`` as the |
| 244 | total figure size. |
| 245 | * ``(width, height)`` : use a fixed figure size (in inches). |
| 246 | cmap_divergent : str or matplotlib.colors.Colormap, default: "RdBu_r" |
| 247 | Colormap to use for divergent data plots. If string, must be |
| 248 | matplotlib built-in colormap. Can also be a Colormap object |
| 249 | (e.g. mpl.colormaps["magma"]) |
| 250 | cmap_sequential : str or matplotlib.colors.Colormap, default: "viridis" |
| 251 | Colormap to use for nondivergent data plots. If string, must be |
| 252 | matplotlib built-in colormap. Can also be a Colormap object |
| 253 | (e.g. mpl.colormaps["magma"]) |
| 254 | display_expand_attrs : {"default", True, False} |
| 255 | Whether to expand the attributes section for display of |
| 256 | ``DataArray`` or ``Dataset`` objects. Can be |
| 257 |
no outgoing calls
searching dependent graphs…