MCPcopy Index your code
hub / github.com/pydata/xarray / test_get_axis

Function test_get_axis

xarray/tests/test_plot.py:3319–3331  ·  view source on GitHub ↗
(
    figsize: tuple[float, float] | None,
    size: float | None,
    aspect: float | None,
    ax: bool,
    kwargs: dict[str, Any],
)

Source from the content-addressed store, hash-verified

3317 ],
3318)
3319def test_get_axis(
3320 figsize: tuple[float, float] | None,
3321 size: float | None,
3322 aspect: float | None,
3323 ax: bool,
3324 kwargs: dict[str, Any],
3325) -> None:
3326 with figure_context():
3327 inp_ax = plt.axes() if ax else None
3328 out_ax = get_axis(
3329 figsize=figsize, size=size, aspect=aspect, ax=inp_ax, **kwargs
3330 )
3331 assert isinstance(out_ax, mpl.axes.Axes)
3332
3333
3334@requires_matplotlib

Callers

nothing calls this directly

Calls 3

get_axisFunction · 0.90
figure_contextFunction · 0.85
axesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…