Drought has a strong impact on the growth of plant populations, and the number of different species in a plant community plays an important role in the drought adaptation of the community's progeny. In this paper, a mathematical model is developed to analyze how the number of different species in a plant community under a long-term irregular drought cycle is adaptive to drought in future generations, and thus how the plant community benefits from it. This paper uses biomass to quantify the growth of plant populations and changes in plant communities, and uses a large amount of visual data for visual analysis. First, a logistic growth model of plant population biomass change is developed based on temperature accumulation, precipitation and interspecific competition as influencing factors. The correlation coefficients were then obtained using the collected plant population biomass to predict the changes in total plant biomass and species richness, and the interspecific competition model was then used to calculate the values of total community biomass after final stabilization based on logistic, and the system of differential equations was solved using the Runge-Kutta Methods was finally concluded that the biomass of the community after final stabilization showed a positive correlation with the number of species and species type, and showed a strong positive correlation with species type and a weak positive correlation with species number.