Here's how it works:
* During the day: The leaves will generally turn towards the sun, maximizing their surface area exposed to sunlight.
* At night: Some plants will rotate their leaves back to a more vertical position to prevent water loss and damage from the cold.
The specific movement of the leaves depends on the type of plant. Some plants have a more pronounced heliotropic response than others.