.. highlight:: bash .. role:: bash(code) :language: bash Plots and images ================ ``image`` converter is very useful tool to quickly inspect simulation results. It accepts data with any 1-D and 2-D scoring grid and is producing images in PNG format with plots. Conversion is done using standard command:: convertmc image --many "*.bdo" After converting data with 1-D scoring grid, following plot can be generated: .. figure:: default_1d.png :scale: 80 % :alt: sample file default_1d.png generated with image converter Data containing 2-D scoring grid are visualised as heatmap with color denoting scored value. .. figure:: default_2d.png :scale: 80 % :alt: sample file default_2d.png generated with image converter Options ------- Logarithmic scale ^^^^^^^^^^^^^^^^^ User can also set logscale on one or more axis in the plots using `--log` option. An example plot with logarithmic scale on Y axis:: convertmc image --many "*.bdo" --log y .. figure:: logy_1d.png :scale: 80 % :alt: sample file logy_1d.png generated with image converter Scale can be also change on two axis at once:: convertmc image --many "*.bdo" --log x y .. figure:: logxy_1d.png :scale: 80 % :alt: sample file logxy_1d.png generated with image converter An example plot with 2-D heatmap and logarithmic scale on Z (color) axis:: convertmc image --many "*.bdo" --log z .. figure:: logz_2d.png :scale: 80 % :alt: sample file logz_2d.png generated with image converter Colormap ^^^^^^^^ When generating 2D heatmaps it is also possible to specify colormap. List of available colormaps is available here: https://matplotlib.org/stable/tutorials/colors/colormaps.html. By default colormap called `gnuplot2` is used. An example plot obtained with other colormap (`Greys`) can be obtained with following command:: convertmc image --many "*.bdo" --colormap Greys .. figure:: grey_2d.png :scale: 80 % :alt: sample file grey_2d.png generated with image converter