Change axes titles positions

How can I change the position of axes titles like the second screenshot? On the first screenshot, you can see standard axes titles positions.


2