Inspired by the Tate’s plans for Bankside, she gave the museum one third of her massive collection of modern art