Generating graphic of the simulation