-
Write a program that will draw the following figure:
- Create a Horizontal Bar chart for:
CityPopulationDelhi10000000Mumbai30000000Kolkata15000000Bangalore20000000- Display the names of X and Y axis
- Display Graph Name
-
Write a python program to create a pie chart for the population of following states:
StatePopulation (in Cr)West Bengal10Maharashtra12Utter Pradesh20Madhya Pradesh8
Pie chart should display:
- Name of each state
- Percentage in the form (xx.yy%)
- Pop up the West Bengal state
- Add legend in the Pie Chart
- Solve the below Questions ((a)-> 2 Marks, (b),(c) -> 1 Marks)
- (a) Draw the plot for the following code:
x=np.arange(0,50,1) plt.plot(x,x) plt.show()
- (b) Write the command to add “X-axis”,”Y-axis” to respectively on X and Y axis.
- (c) Write Command to add name for the Plot.
- (a) Draw the plot for the following code:
- Write a python program to draw a bar chart with the following information:
CitypollutionKolkata78Delhi91Kanpur88Patna90Banglore82
- a) X-axis label should be City and Y-axis label should be Pollution
- b) The title of the chart should be Pollution Index
- c) The colour of the bars should be Red
- Write a python program to draw a histogram with following information:
10 15 10 10 10 15 20 20 20 20 20 25 25
The histogram should have following information - a) X-axis label should be score and Y-axis should be Frequency
- b) The title should be Frequency of Score
- c) The colour of histogram should be blue with 10 bins
- Write commands to plot the chart as per given instructions:
- Plot the same line in red color dashed line with line width = 3
- Mention label on x axis as “x in range -50 to 50”, y axis as “y=x+5” and the title of the plot as “mytitle”.
- Consider data frame as shown below.
Category 1995 2000 2005 A 52 148 230 B 66 136 283 C 78 176 236 D 94 122 315 E 104 154 286 - Create a histogram using this data frame.
- A scatter chart from 1995 and 2005 columns of dataframe.
answer please
ReplyDelete