# Postprocessing Each case in the `Cases` folder is unique. But, they share the same post-processing routines located in [`./Cases/src/post.py`](https://gitlab.jsc.fz-juelich.de/CoE-RAISE/FZJ/ai4hpc/ai4hpc/-/blob/main/Cases/src/post.py). At this moment, post-processing can generate cool images and export any field in `.h5` format. If a new post-processing routine is required, `post.py` should be extended. #### Contour plots AI4HPC can generate contour plots using the [Matplotlib's contour library](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.contour.html), then save the image in any format. For example, [`plot_scatter_CDM`](https://gitlab.jsc.fz-juelich.de/CoE-RAISE/FZJ/ai4hpc/ai4hpc/-/blob/main/Cases/src/post.py) function in [`./Cases/src/post.py`](https://gitlab.jsc.fz-juelich.de/CoE-RAISE/FZJ/ai4hpc/ai4hpc/-/blob/main/Cases/src/post.py) generates 3 contour plots of the input, output and the target, extract the image in `.pdf` and `.h5` formats for further usage. #### Line plots Similarly, AI4HPC can generate line plots using also [Matplotlib's plot library](https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.plot.html), then save the image in any format. For example, [`plot_line`](https://gitlab.jsc.fz-juelich.de/CoE-RAISE/FZJ/ai4hpc/ai4hpc/-/blob/main/Cases/src/post.py) function in [`./Cases/src/post.py`](https://gitlab.jsc.fz-juelich.de/CoE-RAISE/FZJ/ai4hpc/ai4hpc/-/blob/main/Cases/src/post.py) generates 2 lines from the input and the output, and then save the image in `.pdf` format.