Repair exact visibility and hole rendering and streamline search state
This commit is contained in:
parent
8ad26cc3c1
commit
9ee786d138
1 changed files with 148 additions and 86 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue