Statistical data visualization using matplotlib