Repair exact visibility and hole rendering and streamline search state

This commit is contained in:
Jan Petykiewicz 2026-11-28 20:13:00 -08:00
commit 9ee786d138

View file

@ -19,6 +19,7 @@ from inire.tests.routing_corpus import CASE_GROUPS, profile_options
matplotlib.use("Agg")
from matplotlib import pyplot as plt # noqa: E402
from matplotlib.patches import FancyBboxPatch # noqa: E402
from inire.utils.visualization import draw_polygon # noqa: E402
if TYPE_CHECKING:
from matplotlib.axes import Axes
@ -43,7 +44,7 @@ def _save(fig: Figure, directory: Path, name: str) -> None:
def _polygon(ax: Axes, polygon: Polygon, *, fill: str, edge: str, **kwargs: object) -> None:
ax.fill(*polygon.exterior.xy, facecolor=fill, edgecolor=edge, **kwargs)
draw_polygon(ax, polygon, facecolor=fill, edgecolor=edge, **kwargs)
def _waveguide(ax: Axes, result: RoutingResult, *, color: str, linestyle: str = "-") -> None: