Question: 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']

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.ticklabel_format(style='plain') plt.xticks(x_pos, x) plt.show()

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.ylabel('Total Genrated Waste (10 Million Tons)') plt.title('Total Generated Waste in Southeast Asian Countries - 2019') plt.xticks(x_pos, x) plt.show()

I want to combine these 2 graphs just like the graph I attached below

import matplotlib.pyplot as plt #%matplotlib inline plt.style.use('ggplot') plt.rcParams["figure.figsize"] = (12, 9) #

le 7 2.5 250000 amount (right) price 2.0 200000 15 150000 10 100000 0.5 50000 0.0 00 B E F G H

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!