statys.plotters.significance

Significance-based plotting utilities, such as h-index and p-value.

statys.plotters.significance._create_labels(size: Optional[int] = 1)

Creates a list of labels strings.

Parameters

size – Amount of strings to be created.

Returns

Stringed labels, e.g., arg0, arg1, …, argn.

Return type

(List[str])

statys.plotters.significance._prepare_plot(n_args: int, labels: List[str], title: str)

Prepares the plot with common definitions.

Parameters
  • n_args – Number of arguments.

  • labels – List of stringed labels.

  • title – Title to be displayed.

Returns

Axis property from the plot.

Return type

(Axis)

statys.plotters.significance.plot_h_index(h_dict: Dict[str, Any], color_map: Optional[str] = 'YlOrRd', labels: Optional[List[str]] = None, title: Optional[str] = None)

Plots an h-index grid according to statistical results.

Parameters
  • h_dict – H-indexes and p-values.

  • color_map – Color map from matplotlib.

  • labels – Stringed labels.

  • title – Title to be displayed.

statys.plotters.significance.plot_p_value(p_dict: Dict[str, Any], color_map: Optional[str] = 'YlOrRd', labels: Optional[List[str]] = None, title: Optional[str] = None)

Plots a p-value grid according to statistical results.

Parameters
  • p_dict – Significances and p-values.

  • color_map – Color map from matplotlib.

  • labels – Stringed labels.

  • title – Title to be displayed.