bloqade.visual.animation.base.SpotGateArtist
← Module overview
class
method
sourcemethod
method
sourcemethod
classSpotGateArtist¶source
bloqade.visual.animation.base.SpotGateArtist
Bases: GateArtist
Signature
class SpotGateArtist(mpl_ax: Any, xy: List[Tuple[float, float]], radius, color)Parameters
| Name | Type | Description |
|---|---|---|
mpl_ax | Any | |
xy | List[Tuple[float, float]] | |
radius | — | |
color | — |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
mpl_obj | mcollections.PathCollection | mpl_ax.scatter([x for x, y in xy], [y for x, y in xy], s=radius, visible=False, marker='o', facecolors=color, alpha=0.5… |
methodclear_data¶source
bloqade.visual.animation.base.SpotGateArtist.clear_data
def clear_data() -> Nonemethodget_artists¶source
bloqade.visual.animation.base.SpotGateArtist.get_artists
methodupdate_data¶source
bloqade.visual.animation.base.SpotGateArtist.update_data
def update_data(xy: List[Tuple[float, float]])Parameters
| Name | Type | Description |
|---|---|---|
xy | List[Tuple[float, float]] |
methodset_visible¶source
bloqade.visual.animation.base.SpotGateArtist.set_visible