%matplotlib inline import matplotlib import matplotlib.pyplot as plt import brewer2mpl brewer2mpl.print_all_maps() bmap = brewer2mpl.get_map('Greens', 'sequential', 5) colors = bmap.mpl_colors plt.plot([0,1,2,3,4], [1,2,1,2,1], marker = 'o', c=colors) plt.scatter([0,1,2,3,4], [1,2,1,2,1], s=150, marker = 'o', c=colors) plt.scatter? matplotlib.backends? %pylab import numpy as np x = np.arange(10) y = np.sin(x) pyplot.plot(x, y) pyplot.plot(x, y, linestyle = '--') pyplot.plot(x, y, marker = 'o') pyplot.plot(x, y, color = 'salmon') pyplot.xlabel('x') pyplot.ylabel('sin(x)') pyplot.title('Sine curve') fig = pyplot.figure() ax = fig.add_subplot(1, 1, 1) ax.plot(x, y, marker = 's', linestyle = ':', color = 'lime') ax.set_xlabel('x') ax.set_ylabel('sin(x)')