mdciao.plots.plot_unified_distro_dicts¶
-
mdciao.plots.
plot_unified_distro_dicts
(distros, colors=None, ctc_cutoff_Ang=None, panelheight_inches=5, fontsize=16, n_cols=1, legend_rows=4, sharex=False)¶ Plot unified (= with identical keys) distribution dictionaries for different systems
- Parameters
distros (dictionary of dictionaries) – The first-level dict is keyed by system names, e.g distros.keys() = [“WT”,”D10A”,”D10R”]. The second-level dict is keyed by contact names
colors (iterable (list or dict), or str, default is None) –
If list, the colors will be assigned in the same order of
groups
.If dict, has to have the same keys as
groups
.If str, it has to be a case-sensitve colormap-name of matplotlib: https://matplotlib.org/stable/tutorials/colors/colormaps.html
If None, the ‘tab10’ colormap (tableau) is chosen
be hard coded in a lot places
ctc_cutoff_Ang (float) – The cutoff to use
panelheight_inches (int, default is 5) – The height of each panel. Currently the only control on figure size, which is instantiated as >>> figsize=(n_cols * panelheight_inches * 2, n_rows * panelheight_inches)
fontsize (int, default is 16) – Will be used in :obj:`matplotlib._rcParams[“font.size”] # TODO be less invasive
n_cols (int, default is 1) – Number of columns of the plot
legend_rows (int, default is 4) – The maximum number of rows per column of the legend. If you have 10 systems, :obj:`legend_rows`=5 means you’ll get two columns, =2 means you’ll get five.
sharex (bool, default is False) – Whether the panels (subplots) will share their x-axis. Can be True or “col”, for sharing across columns. See
subplots
for more info.
- Returns
fig, axes
- Return type
Figure
and the axes array