Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

import numpy as np import matplotlib.pyplot as plt X = ['Brunie Darussalam', 'Indonesia', 'Cambodia', 'Timor-Leste', 'Malaysia', 'Philippines', 'Thailand', 'Vietnam'] Y = [216253.156, 65200000, 1089000, 63875,

import numpy as np import matplotlib.pyplot as plt X = ['Brunie Darussalam', 'Indonesia', 'Cambodia', 'Timor-Leste', 'Malaysia', 'Philippines', 'Thailand', 'Vietnam'] Y = [216253.156, 65200000, 1089000, 63875, 12982685, 4332222.32, 26853366, 9570300] Z = [0.499088743030168, 0.240923281868178, 0.0660538759431783, 0.0493960725965669, 0.406346654626102, 0.0400699034093881, 0.385682463666874, 0.0992130526364415] X_axis = np.arange(len(X)) plt.bar(X_axis - 0.2, Ygirls, 0.4, label = 'Total Genrated Waste (Tons)') plt.bar(X_axis + 0.2, Zboys, 0.4, label = 'Genrated Waste per person (Tons)') plt.xticks(X_axis, X) plt.xlabel('countries') plt.ylabel('Total Genrated Waste (Tons)') plt.title("Comparison of Total Generated Waste and Generated Waste per Person in Southeast Asian Countries - 2019") plt.legend() plt.show()

image text in transcribed

Because Y and Z has a huge gap between figures, Z has not shown in this graph. Is there any way I can add another decimal Y-axis on the right side?

Comparison of Total Generated Waste and Generated Waste per Person in Southeast Asian Countries - 2019 Total Genrated Waste (Tons) Genrated Waste per person (Tons) 6- 5 Total Genrated Waste (Tons) 1 - 0 Brunie Darussalam Indonesia Cambodia Philippines Thailand Timor-Leste Malaysia countries Vietnam

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books