def symbol_translator(**kw):
    """
    Translates Matplotlib markers into pyqtgraph symbols.

    :param kw: dict
        Dictionary of Matplotlib style plot keywords in which marker may be specified. The entire set of mpl plot
        keywords may be passed in, although only linestyle-relevant ones will be used.

    :return: string
        Code for the relevant pyqtgraph symbol.
    """
    # mpl symbol : pyqt4 symbol
    pyqt_symbol = {
        '.': '.', ',': ',', 'x': 'x', '+': '+', '*': 'star', 'o': 'o', 'v': 't', '^': 't1', '>': 't2', '<': 't3',
        'd': 'd', 's': 's', 'p': 'p', 'h': 'h', '_': '_', '|': '|', 'None': None, 'none': None, None: None,
    }.get(kw.get('marker', None), 'o')
    return pyqt_symbol