Question: How do I rotate the axes the same Angle as the image of function

I know that the "rotate" can rotate image of a function, but we see that the coordinate axes don't change as much. For example:

r := rotate(p, Pi/4):display(p, r)

Although someone seems to have asked a similar question a long time ago, it was far from what I needed.

What I want to do is rotate the axes and the image at the same time rather than just flip axes.  The schematic diagram is as follows.

Please Wait...