LatticeDrawStyle#

class LatticeDrawStyle(pos=None, ax=None, with_labels=False, node_list=None, edge_list=None, node_size=300, node_color='#1f78b4', node_shape='o', alpha=None, cmap=None, vmin=None, vmax=None, linewidths=1.0, width=1.0, edge_color='k', edge_cmap=None, edge_vmin=None, edge_vmax=None, style='solid', labels=None, edge_labels=None, font_size=12, font_color='k', font_weight='normal', font_family='sans-serif', label=None, connectionstyle='arc3')[source]#

Bases: object

A stylesheet for lattice figure. Please see https://www.rustworkx.org/apiref/rustworkx.visualization.mpl_draw.html for each element.

Attributes

alpha: float | None = None#
ax: Axes | None = None#
cmap: Colormap | None = None#
connectionstyle: str = 'arc3'#
edge_cmap: Colormap | None = None#
edge_color: str | Sequence = 'k'#
edge_labels: Callable | None = None#
edge_list: list | None = None#
edge_vmax: float | None = None#
edge_vmin: float | None = None#
font_color: str = 'k'#
font_family: str = 'sans-serif'#
font_size: int = 12#
font_weight: str = 'normal'#
label: str | None = None#
labels: Callable | None = None#
linewidths: float | Sequence = 1.0#
node_color: str | Tuple[float, float, float] | List[str | Tuple[float, float, float] | Tuple[float, float, float, float]] = '#1f78b4'#
node_list: list | None = None#
node_shape: str = 'o'#
node_size: int | list = 300#
pos: dict | None = None#
style: str = 'solid'#
vmax: float | None = None#
vmin: float | None = None#
width: float | Sequence = 1.0#
with_labels: bool = False#

Methods