(zbar, xstd)
| 289 | |
| 290 | |
| 291 | def plot_particle_evolved_quantity(zbar, xstd): |
| 292 | plt.figure() |
| 293 | plt.plot(zbar, xstd) |
| 294 | plt.xlabel("ave z (m)") |
| 295 | plt.ylabel("rms x (m)") |
| 296 | plt.title("%s evolution" % plot_particle_evolution) |
| 297 | plt.savefig( |
| 298 | os.path.join(image_dir, "%s_evolution.pdf" % plot_particle_evolution), |
| 299 | bbox_inches="tight", |
| 300 | ) |
| 301 | |
| 302 | |
| 303 | def reduce_evolved_quantity(z, q): |