Put the Python code in a figure