import numpy as np import matplotlib.pyplot as plt import math from collections import OrderedDict from matplotlib.markers import TICKLEFT, TICKRIGHT, TICKUP, TICKDOWN, CARETLEFT, CARETRIGHT, CARETUP, CARETDOWN x = np.linspace(0, 2.0 * math.pi, 20) y = np.sin(x) markers = OrderedDict([ ('.', 'point'), (',', 'pixel'), ('o', 'circle'), ('v', 'triangle_down'), ('^', 'triangle_up'), ('<', 'triangle_le