MCPcopy
hub / github.com/pydata/xarray / test_add_guide

Method test_add_guide

xarray/tests/test_plot.py:2864–2881  ·  view source on GitHub ↗
(
        self,
        add_guide: bool | None,
        hue_style: Literal["continuous", "discrete"] | None,
        legend: bool,
        colorbar: bool,
    )

Source from the content-addressed store, hash-verified

2862 ],
2863 )
2864 def test_add_guide(
2865 self,
2866 add_guide: bool | None,
2867 hue_style: Literal["continuous", "discrete"] | None,
2868 legend: bool,
2869 colorbar: bool,
2870 ) -> None:
2871 meta_data = _infer_meta_data(
2872 self.ds,
2873 x="A",
2874 y="B",
2875 hue="hue",
2876 hue_style=hue_style,
2877 add_guide=add_guide,
2878 funcname="scatter",
2879 )
2880 assert meta_data["add_legend"] is legend
2881 assert meta_data["add_colorbar"] is colorbar
2882
2883 def test_facetgrid_shape(self) -> None:
2884 g = self.ds.plot.scatter(x="A", y="B", row="row", col="col")

Callers

nothing calls this directly

Calls 1

_infer_meta_dataFunction · 0.85

Tested by

no test coverage detected