atompy.add_polar_guideline#

atompy.add_polar_guideline(ax=None, datapoints=None, fit_degree=6, odd_terms=True, fit_steps=200, **plot_kwargs)[source]#

Add a visual guideline to polar plots based on Ylm fits.

Parameters:
axmatplotlib.axes.Axes, optional

If None, use currently active axes.

datapointstuple[ndarray, ndarray], optional

Tuple of x and y data. If not provided, use first data that is found as part of ax.

fit_degreeint, default 6

Degree of the underlying Legendre fit

odd_termsbool, default True

Control whether to include odd terms in the Legendre fit or not.

fit_stepsint, default 200,

Number of steps of the guideline.

**plot_kwargs

Dictionary of keyword arguments used in matplotlib.pyplot.plot() for plotting the guideline.

Returns:
xfit_datandarray
yfit_datandarray