Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
