def convert_symbol(mpl_symbol):
    if isinstance(mpl_symbol, list):
        symbol = list()
        for s in mpl_symbol:
            symbol += [convert_symbol(s)]
        return symbol
    elif mpl_symbol in SYMBOL_MAP:
        return SYMBOL_MAP[mpl_symbol]
    else:
        return 'dot'  # default
Convert mpl marker symbol to plotly symbol and return symbol.
dataset/ETHPy150Open plotly/plotly.py/plotly/matplotlylib/mpltools.py/convert_symbol