finished script for crosslx diach plots