LearnPy Hub
← Matplotlib Charts problems
Medium

Rotate the Tick Labels

Read category names, values and an angle. Draw a bar chart, then set the x tick labels with ax.set_xticks(range(n)) and ax.set_xticklabels(names, rotation=angle). Print the label texts as a list, then the rotation of the first label.

Input

Names, values, angle.

Output

Two lines.

Sample 1

Input
January February March
10 20 15
45
Output
['January', 'February', 'March']
45.0

Sample 2

Input
One
5
90
Output
['One']
90.0
solution.py
Output appears here
Rotate the Tick Labels · Python practice problem · LearnPy Hub