Visualizing the data using Matplotlib