ctdclient.model.plotting module

class ctdclient.model.plotting.Plotting[source]

Bases: object

Organizes plotting logic.

check_html_dir()[source]

Handles initialization of new html directory if none found.

plot_file(file='', show_plot=True)[source]

Runs plotting logic from ctdam python package on single file.

Parameters:
  • file (Path | str) – The target file to plot

  • show_plot (bool) – Whether to open the plot in webbrowser automatically

plot_cruise(dir='', no_new_plots=False)[source]

Runs plotting logic from ctdam python package on whole cruise.

Parameters:
  • dir (str) – The directory of target files to plot

  • no_new_plots (bool) – Whether to overwrite existing plots or not

run_auto_plotting(target)[source]

Performs single plotting and update of cruise plot html.

Parameters:

target (Path) – The target file to plot

toggle_auto_plot(new_value=None)[source]

Toggle whether to automatically plot new files or not.

Parameters:

new_value (bool | None) – The new plot option

open_config()[source]

Open plot configuration in a file editor.