code and data for creating domain plot