Clean up print statements in qwtplot