Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The only libraries you are allowed to import to complete this assignment are: pandas, Matplotlib. and math or NumPy. Give me python code to Recreate

The only libraries you are allowed to import to
complete this assignment are: pandas, Matplotlib.
and math or NumPy. Give me python code to
Recreate the Marimekko chart displayed below, which comes from the Reuters article. The x-axis represents age, with the y-axis the number of hours of sleep. The region with the diagonal hatching is the recommended number of hours of sleep for that age category.
Elements that should be included in your final representation include:
the width of each bar is sized according to the age,
there is a small gap between adjacent bars,
the diagonal hatching for the recommended number of hours is present with similar density of lines,
the xy-axes labels and tick mark locations / labels are correct,
the background colour outside the main frame of the plot is present,
all colours of all elements should be accurate (see assignment instructions for list of colours),
there is a space between the y-tick marks and the frame of the plot,
the vertical white, dashed line is present to denote 18 years of age,
all textual elements inside the plot are present and in the correct locations,
the moon and sun icons are represented, and
the arrows on either side of the "Age" label are present.
image text in transcribed

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

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions