Code to generate plot3 (without legend yet)