def test_domain(simple_boundary_gdf, domain_artists_keys): fig, artists = _viz_mpl._plot_domain(simple_boundary_gdf, betacol='beta') assert sorted(artists.keys()) == domain_artists_keys return fig
def test__plot_domain_without_beta(): data = pgtest.makeSimpleBoundary() fig1 = _viz_mpl._plot_domain(domain_x="x", domain_y="y", data=data) fig2 = _viz_mpl._plot_domain(domain_x=data["x"], domain_y=data["y"], data=None)
def test_domain_without_beta_array(simple_boundary): fig, artists = _viz_mpl._plot_domain(domain_x=simple_boundary['x'], domain_y=simple_boundary['y'], data=None) return fig
def test__plot_domain_with_beta(): data = pgtest.makeSimpleBoundary() fig3 = _viz_mpl._plot_domain(domain_x="x", domain_y="y", beta="beta", data=data) fig4 = _viz_mpl._plot_domain(domain_x=data["x"], domain_y=data["y"], beta=data["beta"], data=None)
def test_domain_without_beta_df(simple_boundary): fig, artists = _viz_mpl._plot_domain(domain_x='x', domain_y='y', data=simple_boundary) return fig