What does the mapping node do with gradient texture

I want to learn how the mapping node works. I cannot understand the rotation part of the vector mapping node. Can someone explain how the axis operated in the vector mapping node. The way it works in the interaction mode and how the texture changes with mapping seems disconnected and confusing.

The following are screenshots at different rotations