util module

class mavis.illustrate.util.LabelMapping(**kwargs)[source]

Bases: object

__len__()[source]
add(value, prefix='')[source]
get_key(value)[source]
items()[source]
set_key(key, value)[source]
class mavis.illustrate.util.Tag(elementname, content='', **kwargs)[source]

Bases: svgwrite.base.BaseElement

get_xml()[source]
mavis.illustrate.util.dynamic_label_color(color)[source]

calculates the luminance of a color and determines if a black or white label will be more contrasting

mavis.illustrate.util.generate_interval_mapping(input_intervals, target_width, ratio, min_width, buffer_length=None, start=None, end=None, min_inter_width=None, min_pixel_accuracy=1)[source]
mavis.illustrate.util.split_intervals_into_tracks(intervals)[source]