plot_point_monthly#

plot_point_monthly(title, time_label, data_point, n_xticks_desired=6, path_save='.', name_save='figure', point_labels=None)[source]#

Plot monthly time series for one or multiple points using custom tick labels.

Parameters:
  • title (str) – Title of the figure.

  • time_label (sequence of str) – Sequence of labels for the x-axis, typically months or years. Length must match the time dimension of data_point.

  • data_point (np.ndarray) –

    Time series data array. Shape can be:

    • (n_time,) — single time series.

    • (n_point, n_time) — multiple time series.

  • n_xticks_desired (int, optional) – Desired number of x-axis ticks. The function adjusts this automatically to achieve clean and evenly spaced labels. Default is 6.

  • path_save (str, optional) – Directory path where the output image will be saved. Default is ".".

  • name_save (str, optional) – Base name (without extension) for the saved image. Default is "figure".

  • point_labels (list of str, optional) – Optional list of names for each time series. If not provided, default names like “Point 1”, “Point 2”, etc. are used.

Returns:

Full path to the saved PNG image.

Return type:

str