human
Complete this python program:
def figure_edit(axes, parent=None):
assistant
#Here is the Python program you requested.

    """Edit matplotlib figure options
    """
    sep = (None, None)
    (xmin, xmax) = map(float, axes.get_xlim())
    (ymin, ymax) = map(float, axes.get_ylim())
    general = [(u'Title', axes.get_title()), sep, (None, u'<b>X-Axis</b>'), (u'Left', xmin), (u'Right', xmax), (u'Label', axes.get_xlabel()), (u'Scale', [axes.get_xscale(), u'linear', u'log', u'logit']), sep, (None, u'<b>Y-Axis</b>'), (u'Bottom', ymin), (u'Top', ymax), (u'Label', axes.get_ylabel()), (u'Scale', [axes.get_yscale(), u'linear', u'log', u'logit']), sep, (u'(Re-)Generate    automatic    legend', False)]
    xconverter = axes.xaxis.converter
    yconverter = axes.yaxis.converter
    xunits = axes.xaxis.get_units()
    yunits = axes.yaxis.get_units()
    def cmp_key(label):
        match = re.match(u'(_line|_image)(\\d+)', label)
        if match:
            return (match.group(1), int(match.group(2)))
        else:
            return (label, 0)
    linedict = {}
    for line in axes.get_lines():
        label = line.get_label()
        if (label == u'_nolegend_'):
            continue
        linedict[label] = line
    curves = []
    def prepare_data(d, init):
        u'Prepare    entry    for    FormLayout.\n\n                                `d`    is    a    mapping    of    shorthands    to    style    names    (a    single    style    may\n                                have    multiple    shorthands,    in    particular    the    shorthands    `None`,\n                                `"None"`,    `"none"`    and    `""`    are    synonyms);    `init`    is    one    shorthand\n                                of    the    initial    style.\n\n                                This    function    returns    an    list    suitable    for    initializing    a\n                                FormLayout    combobox,    namely    `[initial_name,    (shorthand,\n                                style_name),    (shorthand,    style_name),    ...]`.\n                                '
        name2short = {name: short for (short, name) in d.items()}
        short2name = {short: name for...