<｜begin▁of▁sentence｜>### Instruction:
Given a set of numerical data, how can you use the MatplotlibHistogramDrawer from networkx to display a histogram on a given Axes object?
### Response:
import matplotlib.pyplot as plt
from networkx.drawing.nx_pylab import MatplotlibHistogramDrawer

# Assuming we have an Axes object 'ax' to draw on
fig, ax = plt.subplots()

# Initialize the MatplotlibHistogramDrawer with the given Axes
hist_drawer = MatplotlibHistogramDrawer.MatplotlibHistogramDrawer(ax)

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

# Draw the histogram
ax.hist(data, bins=4)

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