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

Method test_facetgrid

xarray/tests/test_plot.py:2804–2822  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2802 )
2803
2804 def test_facetgrid(self) -> None:
2805 with figure_context():
2806 fg = self.ds.plot.streamplot(
2807 x="x", y="y", u="u", v="v", row="row", col="col", hue="mag"
2808 )
2809 for handle in fg._mappables:
2810 assert isinstance(handle, mpl.collections.LineCollection)
2811
2812 with figure_context():
2813 fg = self.ds.plot.streamplot(
2814 x="x",
2815 y="y",
2816 u="u",
2817 v="v",
2818 row="row",
2819 col="col",
2820 hue="mag",
2821 add_guide=False,
2822 )
2823
2824
2825@requires_matplotlib

Callers

nothing calls this directly

Calls 2

figure_contextFunction · 0.85
streamplotMethod · 0.80

Tested by

no test coverage detected