Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How to change the unit of Y-Axis? (it's currently 1,2,3,4,5, and I want to make it 10,000,000 20,000,000 30,000,000...) import matplotlib.pyplot as plt %matplotlib inline
How to change the unit of Y-Axis? (it's currently 1,2,3,4,5, and I want to make it 10,000,000 20,000,000 30,000,000...) import matplotlib.pyplot as plt %matplotlib inline plt.style.use('ggplot') plt.rcParams["figure.figsize"] = (12, 9) # (width, height) x = ['Brunie Darussalam', 'Indonesia', 'Cambodia', 'Timor-Leste', 'Malaysia', 'Philippines', 'Thailand', 'Vietnam'] y = [216253.156, 65200000, 1089000, 63875, 12982685, 4332222.32, 26853366, 9570300] x_pos = [i for i,_ in enumerate(x)] plt.bar(x_pos, y, color='blue') plt.xlabel('countries') plt.xlabel('Total Genrated Waste (Tons)') plt.title('Total Generated Waste in Southeast Asian Countries - 2019') plt.xticks(x_pos, x) plt.show()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started