CHAPTER 3 PLOTTING WITH PYPLOT I (BAR …

Creating Bar Charts - A Bar Graph/ Chart is a graphical display of data using bars of different heights. - Pyplot offers bar( ) function to create a bar chart where you can specify the sequences for x-axis and corresponding sequence to be plotted on y-axis . e.g. import matplotlib.pyplot as plt a=[1,2,3,4] b=[2,4,6,8] c=[1,4,9,16] plt.bar(a,b) ................
................