Answered step by step
Verified Expert Solution
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 axis represents age, with the 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 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 ytick marks and the frame of the plot,
the vertical white, dashed line is present to denote 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.
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