<｜begin▁of▁sentence｜>### Instruction:
Given a set of sample data points representing the frequency of occurrences, plot a histogram using MatplotlibHistogramDrawer class on a given set of axes of a Matplotlib figure. Assume we have the sample data and the figure with the axes has already been created.
### Response:
import matplotlib.pyplot as plt
from igraph.drawing import MatplotlibHistogramDrawer

# Sample data for histogram
data = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4]

# Create a figure and a set of subplots
fig, ax = plt.subplots()

# Construct the histogram drawer on the given axes
hist_drawer = MatplotlibHistogramDrawer(ax=ax)

# Call the histogram drawer's method to draw the histogram (not shown here)
# hist_drawer.draw(data)

# Show the plot
plt.show()
<|EOT|>
