# -*- coding: utf-8 -*-
"""
Created on Fri Dec 10 11:07:17 2021

@author: Sim
"""
import numpy as np
import matplotlib.pyplot as plt


x = np.array([12, 37, 62, 87, 124.5, 174.5, 224.5, 325])
freq = np.array([10, 21, 20, 13, 7, 2, 4, 2])
rfreq = freq/np.sum(freq)
binwd = [25, 25, 25, 25, 50, 50, 50, 150]
xlab =[str(tick) for tick in x]

plt.bar(x, rfreq, width=binwd, edgecolor='w', tick_label=xlab)


