11.2. Replotting of existing data
The default file extension of plots are png files. You can change this by the file_ext to e.g. pdf files. Png files are more suitable to assemble a movie out of the plots, whereas pdf files are better for inclusion in publications.
To change the file extension, you can just set it after plotter has been assigned, e.g.
# Changing the file extension (also a list works, e.g. ["pdf","png"]
problem.plotter.file_ext = "pdf"
It can also be a list of file extensions to be created simultaneously.
Furthermore, you can change e.g. the dpi of the plots or change the default settings of individual plotting parts here:
# Changing e.g. the dpi or default settings of the velocity arrows:
problem.plotter.dpi *= 1.5
# problem.plotter.defaults("arrows").arrowdensity /= 2
# problem.plotter.defaults("arrows").arrowlength *= 1.5
However, after having simulated a long simulation, you do not want to run it again to create the new plots. Instead, you can instruct pyoomph to just redo all plots, if you supply the command line argument --runmode p to the call (cf. also Section 3.9.2):
python evap_droplet_thermal_plot.py --runmode p
If you only want to recreate e.g. the plot number \(10\), you can add the --where argument as well
python evap_droplet_thermal_plot.py --runmode p --where step==10
Alternatively, you can also create something like --where 'step in [10,11,20]' or alternative python bool expressions involving the output step step.
Note that this replotting only works, if write_states is True (which is default). Replotting, just like continuing a simulation (cf. Section 5.5), relies on the state files which contain all information of the current state of the simulation.