<｜begin▁of▁sentence｜>### Instruction:
As a competitive eater, I need to visually represent the relationships between different food items and their weights in a competition. I have a weighted adjacency matrix that shows the quantities of each food item consumed in relation to others. Is there a way to use the MatplotlibMatrixDrawer in the igraph library to plot this matrix using matplotlib, so that I can analyze and visualize the eating patterns more effectively?
### Response:
import igraph as ig
import matplotlib.pyplot as plt

# Create a weighted adjacency matrix
matrix = ig.Matrix([[0, 1, 2], [1, 0, 0], [2, 0, 0]])

# Setup the plotting area
fig, ax = plt.subplots()

# Initialize the matrix drawer with the given Axes
drawer = ig.drawing.MatplotlibMatrixDrawer(ax)

# Draw the matrix
drawer.draw(matrix)

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