plot automation on all directories