graphorge.gnn_base_model.train.training_plots.grouped_bar_chart¶
- grouped_bar_chart(groups_labels, groups_data, bar_width=None, is_avg_hline=False, y_lims=(None, None), title=None, x_label=None, y_label=None, y_scale='linear', y_tick_format=None, is_latex=False)[source]¶
Plot grouped bar chart.
- Parameters:
tuple[str] (groups_labels =) – Bar groups labels.
dict (groups_data =) – Store groups data (item, tuple) for data set (key, str). Dictionary keys are taken as labels for each data set.
bar_width (float, default=None) – Width of bars.
is_avg_hline – Plot horizontal line for average value of each data set.
default=False – Plot horizontal line for average value of each data set.
y_lims (tuple, default=(None, None)) – y-axis limits in data coordinates.
title (str, default=None) – Plot title.
x_label (str, default=None) – x-axis label.
y_label (str, default=None) – y-axis label.
y_scale (str {'linear', 'log'}, default='linear') – y-axis scale. If None or invalid format, then default scale is set. Scale ‘log’ overrides any y-axis ticks formatting.
is_latex (bool, default=False) – If True, then render all strings in LaTeX. If LaTex is not available, then this option is silently set to False and all input strings are processed to remove $(…)$ enclosure.
- Returns:
figure (Matplotlib Figure) – Figure.
axes (Matplotlib Axes) – Axes.