### Summary set_size_inches currently uses https://github.com/matplotlib/matplotlib/blob/eecdbbc110faec59956a6c86741e8eb956209538/lib/matplotlib/figure.py#L2659 I haven't actually tried, but I wonder if that was missed in https://github.com/matplotlib/matplotlib/pull/19126, and should be changed to `canvas.device_pixel_ratio`? (Likewise, backend_macosx.py would likely need to be updated in the same manner?) ### Proposed fix _No response_