making 3 in 1 figure