fatf.utils.testing.vis.get_bar_data

fatf.utils.testing.vis.get_bar_data(plot_axis)[source]

Extracts plot’s title, x-axis name and range and y-axis name and range.

Parameters
plot_axismatplotlib.pyplot.Axes

A matplotlib axis from which all of the aforementioned information will be extracted.

Returns
plot_titlestring

Plot’s title.

plot_x_tick_namesList[string]

Tick labels of the plot’s x-axis.

plot_x_rangeList[Number]

Range of the plot’s x-axis.

plot_y_tick_namesList[string]

Tick labels of the plot’s y-axis.

plot_y_rangeList[Number]

Range of the plot’s y-axis.

plot_bar_widthList[Number]

Bar width of every bar in the plot.

plot_bar_coloursList[Tuple[float, float, float, float]]

Bar colour of every bar in the plot. This is represented as an (r, g, b, alpha) tuple.