Code to reconstruct the plots