Plotting

Plotting#

Plotting contains the ColorHandler class and functions for plotting geometries using matplotlib.

ColorHandler(colors)

A class to handle color/layer adjustments for plotting.

adjust_lightness(color[, amount])

Adjusts the lightness of a given color and converts it to hexidecimal format.

default_ax()

Gets the default axis object (matplotlib.axes.Axes) with grid enabled and equal aspect ratio.

draw_labels(geometry, ax)

Draws labels on the given axis for each point in the geometry.

interactive_widget_handler()

Closes the current matplotlib figure if it exists.

plot_geometry(geometry[, ax, show_idx, ...])

Plots a geometry object on the given axes.

plot_line_idx_in_polygon(poly[, ax, color])

Plots the index of each line in the given polygon on the specified axes.

plot_points_withlabel(geometry[, ax, color, ...])

Plot points with labels on a given axis.

plot_polygon_idx(geometry[, ax, color])

Plots the index of each polygon in the given geometry on the specified axes.

segments(curve)

Returns a list of segments from a given curve.

set_limits(ax, coor, dxdy)

Sets the limits of the given axes object.