# -*- coding: utf-8 -*-
"""
Created on Mon Nov 15 12:06:13 2021

@author: Sim
"""

import matplotlib.pyplot as plt

fig, (ax1, ax2) = plt.subplots(1,2)
xx = [ 8, 2, 10, 1, 1, 6, 6, 3,  4,  4, 3, 4, 5, 3, 
       14, 5,  3, 4, 7, 9, 5, 1, 10,  6, 2, 4, 6, 8,
        3, 4, 13, 3, 5, 7, 7, 6,  6,  7, 3, 8, 4, 4,
        5,  1,  1, 12,  2,  9,  3, 15]

ax1.hist(xx, bins=8, color='w', edgecolor='k')
ax2.hist(xx, bins=3, color='w', edgecolor='k')
plt.show()