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
संबंधित प्रश्न
Draw the output for the following data visualization plot.
import matplotlib.pyplot as plt
plt.bar([1,3,5,7,9],[5,2,7,8,2], label="Example one") plt.bar([2,4,6,8,10],[8,6,2,5,6], label="Example two", color='g')
plt.legend()
plt.xlabel('bar number')
plt.ylabel('bar height')
plt.title('Epic Graph\nAnother Line! Whoa')
plt.show()
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.
Write the coding for the following:
To list the packages in matplotlib.
Define Data Visualization.
List the general types of data visualization.
List the types of Visualizations in Matplotlib.
How will you install Matplotlib?
Read the following code: Identify the purpose of this code and choose the right option from the following.
C:\Users\Your Name\AppData\Local\Programs\Python\Python36-32\Scripts>pip list
Which key is used to run the module?
