draw_matplotlib#

Draw a planar graph from a PlanarGraph object.

Functions

average_color(color1, color2)

canonically_rotate_layout(layout[, PCA_degrees])

compute_PCA(complex_points)

https: // en.wikipedia.org / wiki / Principal_component_analysis

draw(k[, draw_circles, with_labels, ...])

Draw the planar diagram using the Matplotlib library.

draw_from_layout(k, layout[, draw_circles, ...])

export_pdf(diagrams, filename[, ...])

Draw the planar diagram(s) using Matplotlib and save to a PDF file.

export_pdf_groups(groups, filename[, ...])

Draw the planar diagram(s) using Matplotlib and save to a PDF file.

export_png(k, filename[, draw_circles, ...])

get_style_from_style(style_kwargs)

Get full style from (optional) partial style keywords.

to_color(item)

Classes

Arrow(pointy_end, direction)

Class representing a graphical arrow.