Use plt.subplots to build subplots and figure. Added support for plotting histograms. Added support for customising markers.