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'

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'
convert mpl marker symbol to plotly symbol and return symbol .