Matplotlib can be used to plot various type of plots. In this article we will look ta various parameters that can be used to display required information, adjust scale, adding labels etc.
Different type of plots can be plotted using following primary commands
plt.plot(x,y,color='green',alpha=0.5,) plt.bar(np.arange(len(drinks)), sales, width=0.5, yerr=salesyerr, label="Jagur", color='r',edgecolor='b', fill=True, hatch='*',linestyle='--',align='center') plt.scatter(x,y,marker='s',color='green', edgecolors='red',alpha=0.7,) plt.pie(payment_method_freqs,autopct="%0.1f%%")
To add various point, we can use various options, most commonly used options are as below:
and here is the output