matplotlib.figure.Figure.set_dpi Figure.set_dpi(val) Set the resolution of the figure in dots-per-inch. Parameters: val : float