update query parameter
only test boxplot if matplotlib is already installed