With Makie this is rather easy. There was just a thread the other day:
It is also explained in the documentation:
The only thing missing is that you need to set pt_per_unit when saving and not upon creation of the Figure.
Figure