human
Write me a Python program to convert matrix to pictures.
assistant
Here is a Python program to convert matrix to pictures

import numpy as np

def matrix_to_picture(matrix):
    """Converts matrix to pictures by."""
    import matplotlib.pyplot as plt
    fig, ax = plt.subplots()
    ax.imshow(matrix)
    plt.show()

# Enter the matrix
matrix = np.array([[1, 2, 3], [4, 5, 6]])

# Calling the function
picture = matrix_to_picture(matrix)

# Printing the picture
print(picture)

#Example Output
# Figure(640x480)
# None

#Remember to inspect code for bugs.