drawing#

swmmio.graphics.drawing.annotate_details(txt, draw)[source]#
swmmio.graphics.drawing.annotate_streets(df, img, text_col)[source]#
swmmio.graphics.drawing.annotate_timestamp(draw)[source]#
swmmio.graphics.drawing.annotate_title(title, draw)[source]#
swmmio.graphics.drawing.conduit_draw_color(conduit)[source]#

return the draw color of a conduit

swmmio.graphics.drawing.conduit_draw_size(conduit)[source]#

return the draw size of a conduit

swmmio.graphics.drawing.draw_conduit(conduit, draw)[source]#
swmmio.graphics.drawing.draw_node(node, draw)[source]#

draw a node to the given PIL ImageDraw object

swmmio.graphics.drawing.draw_parcel_risk(parcel, draw)[source]#
swmmio.graphics.drawing.draw_parcel_risk_delta(parcel, draw)[source]#
swmmio.graphics.drawing.gradient_color_red(x, xmin, xmax, startCol=(235, 235, 225))[source]#
swmmio.graphics.drawing.gradient_grey_red(x, xmin, xmax)[source]#
swmmio.graphics.drawing.line_size(q, exp=1)[source]#
swmmio.graphics.drawing.node_draw_color(node)[source]#

given a row of a nodes() dataframe, return the color it should be drawn

swmmio.graphics.drawing.node_draw_size(node)[source]#

given a row of a nodes() dataframe, return the size it should be drawn

swmmio.graphics.drawing.parcel_draw_color(parcel, style='risk')[source]#