()
| 193 | |
| 194 | @image_comparison(baseline_images=["fixed"], extensions=["png"]) |
| 195 | def test_fixed(): |
| 196 | pgm = daft.PGM(aspect=1.5, node_unit=1.75) |
| 197 | pgm.add_node("unobs", r"Unobserved!", 1, 4) |
| 198 | pgm.add_node("obs", r"Observed!", 1, 3, observed=True) |
| 199 | pgm.add_node("alt", r"Alternate!", 1, 2, alternate=True) |
| 200 | pgm.add_node( |
| 201 | "fixed", r"Fixed!", 1, 1, fixed=True, aspect=1.0, offset=[0, 5] |
| 202 | ) |
| 203 | pgm.render() |
| 204 | |
| 205 | |
| 206 | @image_comparison(baseline_images=["gaia"], extensions=["png"]) |