The pie function plots the pie chart. Mylabels attribute is given to the label of the pie function. Explode attribute is used to explode the part of the pie. There is also a shadow attribute in the pie function for giving a shadow effect. In legend function a loc variable is passed to specify the location of the legend.
Program:
Output
Explanation:
The pie function plots the pie chart. Mylabels attribute is given to the label of the pie function. Explode attribute is used to explode the part of the pie. There is also a shadow attribute in the pie function for giving a shadow effect. In legend function a loc variable is passed to specify the location of the legend.
need an explanation for this answer? contact us directly to get an explanation for this answer