Visualization _Questions
1. Write a python program to display the graph as show:
Create the above graph by using the data shown below:
Car Toyota Mazda Nissan Suzuki Fiat
Price 79.000 89.000 105.000 56.000 120.000
Answer:
import [Link] as plt
x_values =['Toyota','Mazda','Nissan','Suzuki','Fiat']
y_values =[79.000,89.000,105.000,56.000,120.000]
[Link](x_values, y_values,label = "car
price",color='green')
[Link]('Company')
[Link]('Price')
[Link]('The Price Report')
[Link]()
[Link]()
Visualization _Questions
2. Write a python program to display the graph as show:
Create the above graph by using the data shown below:
Car Toyota Mazda Nissan Suzuki Fiat
Price 79.000 89.000 105.000 56.000 120.000
2022
Price 85.000 95.000 120.000 70.000 150.000
2023
Visualization _Questions
Answer:
import [Link] as plt
x_values
=['Toyota','Mazda','Nissan','Suzuki','Fiat']
y_values =[79.000,89.000,105.000,56.000,120.000]
y2_values=[85.000,95.000,120.000,70.000,150.000]
[Link](x_values, y_values,label = "car price
2022",color='green')
[Link](x_values, y2_values,label = "car price
2023",color='orange')
[Link]('Company')
[Link]('Price')
[Link]('The Price Report in 2022 and 2023')
[Link]()
[Link]()
Visualization _Questions
3. Write a python program to display the graph as show:
Answer:
import [Link] as plt
labels=['water','land']
values=[70,30]
color=["blue","yellow"]
[Link](values,labels=labels,colors=color,autopct=
"%.1f%%")
[Link]("The distribution of land and water on
Earth")
[Link]()
[Link]()