Finally, I would like to emphasize an important fact: The PyCX simulator ﬁle used in this chapter was used only for creating a GUI, while the core simulation model was still fully implemented in your own code. This means that your simulation model is completely independent of PyCX, and once the interactive exploration and model veriﬁcation is over, your simulator can “graduate” from PyCX and run on its own.
For example, here is a revised version of Code 10.6, which automatically generates a series of image ﬁles without using PyCX at all. You can generate an animated movie from the saved image ﬁles using, e.g., Windows Movie Maker. This is a nice example that illustrates the main purpose of PyCX—to serve as a stepping stone for students and
researchers in learning complex systems modeling and simulation, so that it eventually becomes unnecessary once they have acquired sufﬁcient programming skills.
Develop your own interactive simulation code. Explore various features of the plotting functions and the PyCX simulator’s GUI. Then revise your code so that it automatically generates a series of image ﬁles without using PyCX. Finally, create an animated movie ﬁle using the image ﬁles generated by your own code. Enjoy!