I'm trying to save a pandas.DataFrame.boxplot variable to a image to use it with a Qt widget, but I don't know how to convert this variable. I have this code:
import matplotlib.pyplot as plt
from pandas import DataFrame
import numpy as np
df = DataFrame(np.random.rand(10,5))
plt.figure();
bp = df.boxplot()
And Spyder shows it:

Are there instructions to do it automatically within the code?
