bacteria_density.plots module
- bacteria_density.plots.main(csv_path, out_dir='plots', x_column='Cumulative distance')[source]
Load CSV preserving blank rows, construct a continuous (summed) X axis from x_column across blocks separated by blank rows, draw vertical lines at blank rows, and call save_plot for each numeric column (except x_column).
- bacteria_density.plots.save_plot(x, y, vertical_lines, colname, out_dir, dpi=150, figsize=(8, 4))[source]
Plot y vs x, draw vertical lines and save a PNG, then close the figure. x, y : 1D numpy arrays (same length). Only finite pairs will be plotted. vertical_lines : iterable of x positions where a vertical dashed line is drawn. colname : used for ylabel and filename.