Advertisements
Advertisements
प्रश्न
Write the plot for the following pie chart output.

Advertisements
उत्तर
‘import matplotlib.pyplot as pit
slices = [7,2,2,13]
activities = [‘sleeping’, ‘eating’, ‘working’, ‘playing’]
plt.pie(slices, labels = activities, autopct = ‘y.1.1 f % %‘)
plt.title(‘Interesting Graph check it out’)
plt.show( )
APPEARS IN
संबंधित प्रश्न
Write any three uses of data visualization.
Write the coding for the following:
To check if PIP is Installed on your PC.
Write the coding for the following:
To check the version of PIP installed on your PC.
Define Data Visualization.
List the general types of data visualization.
How will you install Matplotlib?
To install matplotlib, the following function will be typed in your command prompt. What does “-U” represents?
Python –m pip install –U pip
Read the following code: Identify the purpose of this code and choose the right option from the following.
C:\Users\YourName\AppData\Local\Programs\Python\Python36-32\Scripts>pip – version
Which key is used to run the module?
Identify the package manager for Python packages, or modules.
