def make_margins(width, height, left=0, right=0, top=0, bottom=0, margins=None):
    """Create Matplotlib margins. Returns tuple that can be unpacked for subplots_adjust with *
    Args:
        width, height: figure size
        margins: equal margins all around
        left, right, top, bottom: set individual margins
    """
    if margins: 
        left = margins
        right = margins
        top = margins
        bottom = margins

    LM = left/width
    BM = bottom/height
    RM = 1-right/width
    TM = 1-top/height
    return LM, BM, RM, TM