cirq.TextDiagramDrawer.grid_line¶
-
TextDiagramDrawer.grid_line(x1: int, y1: int, x2: int, y2: int, emphasize: bool = False)[source]¶ Adds a vertical or horizontal line from (x1, y1) to (x2, y2).
Horizontal line is selected on equality in the second coordinate andvertical line is selected on equality in the first coordinate.Raises: ValueError– If line is neither horizontal nor vertical.