Code and orbit parameters for figures in Revisiting Radial Metallicity Gradient-Age Relation in the Milky Way's Thin and Thick Disks. LAMOST DR8 can be found at http://www.lamost.org/dr8/v1.0/doc/vac.