A new exhibition of modernist paintings at the Royal Academy of Arts puts plants and gardens at the centre of the show