create_plot

Create a graph and save to disk.

photostats.utils.create_plot.create_bar_chart(group_names: list, group_data: list, x_label: str = '', y_label: str = '', title: str = '', graph_path: str = '', graph_filename: str = '')

Create matplotlib bar graph.

Parameters
  • group_names – A list with the names for bars

  • group_data – A list with the data that pairs with the names.

  • x_label – The label for the x-axis on the graph.

  • y_label – The label for the y-axis on the graph.

  • title – The Title for the graph.

  • graph_path – The path to save the graph to.

  • graph_filename – The filename to give the png file of the graph.

photostats.utils.create_plot.create_pie_chart()