import numpy as np from jutility import plotting scores_list = [ [69.0, 68.0, 137.0], [54.1, 68.1, 122.2], [48.7, 68.1, 116.8], [28.7, 72.0, 100.7], [44.7, 54.1, 98.8], [34.1, 57.0, 91.1], [33.8, 54.1, 87.9], [34.2, 45.1, 79.3], [29.7, 39.1, 68.8], [54.4, 12.1, 66.5], [49.2, 12.1, 61.3], [29.0, 30.1, 59.1], [24.7, 24.0, 48.7], [34.3, 12.0, 46.3], [34.0, 12.0, 46.0], [19.6, 24.0, 43.6], [24.0, 12.1, 36.1], [18.9, 12.0, 30.9], [9.4, 14.0, 23.4], [9.4, 7.1, 16.5], ] scores = np.array(scores_list) titles = ["Boulder", "Lead", "Total"] ranges = [102, 102, 202] mp = plotting.MultiPlot( *[ plotting.Subplot( plotting.Hist(scores[:, i], np.arange(r)), title=t, ) for i, (t, r) in enumerate(zip(titles, ranges)) ], title="Men's Olympic sport climbing semifinal", top_space=0.2, figsize=[15, 4], num_rows=1, ) mp.save("combined")