def convert_dash(mpl_dash):
 if (mpl_dash in DASH_MAP):
  return DASH_MAP[mpl_dash]
 else:
  return 'solid'

def convert_dash ( mpl_dash ) : if ( mpl_dash in DASH_MAP ) : return DASH_MAP [ mpl_dash ] else : return 'solid'
convert mpl line symbol to plotly line symbol and return symbol .