sp2graph.visual
¶
Visualisation and ploting functions.
-
sp2graph.visual.
viewV
(V, figname=None, sizex=5, sizey=5, dpi=150)[source]¶ Visualize the vertices (nodes)
-
sp2graph.visual.
viewKekule
(V, A, DB, L=None, C=None, rad=None, figname=None, sizex=5, sizey=5, dpi=150, annotate=False)[source]¶ Visualize a single Kekule representation with vertices coordinates ‘V’, adjacency matrix ‘A’ and double-bonds ‘DB’. If provided, constrained bonds ‘C’ are shown with the usual Kekule representation and radicals are marked with a dot next to the vertex.
-
sp2graph.visual.
viewKekuleGrid
(V, A, DB, L=None, C=None, rad=None, figname=None, sizex=5, sizey=5, dpi=150, annotate=False)[source]¶ Visualize a single Kekule representation with vertices coordinates ‘V’, adjacency matrix ‘A’ and double-bonds ‘DB’. If provided, constrained bonds ‘C’ are shown with the usual Kekule representation and radicals are marked with a dot next to the vertex.
-
sp2graph.visual.
viewBondOrderAverage
(V, A, DB, L=None, C=None, rad=None, figname=None, sizex=5, sizey=5, dpi=150, annotate=False, astyle='white')[source]¶ Visualize a single Kekule representation with vertices coordinates ‘V’, adjacency matrix ‘A’ and double-bonds ‘DB’. If provided, constrained bonds ‘C’ are shown with the usual Kekule representation and radicals are marked with a dot next to the vertex.
Parameters: astyle: {‘white’, ‘boxed’}
Annotation style