Download this file
1 2 3 4 5 6 7 8 9
#!/usr/bin/env python from matplotlib.matlab import * x = linspace(0.1, 2*pi, 10) markerline, stemlines, baseline = stem(x, cos(x), '-.') set(markerline, 'markerfacecolor', 'b') set(baseline, 'color','r', 'linewidth', 2) show()