sft2d.plot_bfly

sft2d.plot_bfly(bfly_sft, grid, bmax=10, save_path=None, show_plot=True)[source]

Plots the butterfly diagram of the surface magnetic field.

Parameters:
  • bfly_sft (np.ndarray) – 2D array containing the surface magnetic field data [time, latitude].

  • grid (dict) – Dictionary containing grid information (‘theta’, ‘phi’, and their spacings).

  • save_path (str, optional) – Path to save the plot. If None, the plot is displayed interactively.

  • show_plot (bool, optional) – If True, the plot is displayed interactively.