If light is on the left hand side of a plant, the auxin will accumulate on the right hand side which is shaded.
As auxin stimulates growth, the right side of the plants cells will grow faster and form a curve which shows the plant growing more obviously towards the left hand side, towards the light.
The same occurs for gravity, the auxin will accumulate on the lower side of the shoot, and will cause the plant to bend upward.