atompy.square_polar_axes#

atompy.square_polar_axes(ax=None, n_gridlines=12, mark_zero=True, **plot_kwargs)[source]#

Format polar axes to be squared.

Hide original axes, then overlay another axes that is squared.

Parameters:
axmatplotlib.axes.Axes, optional

If None, use currently active axes.

n_gridlinesint, default 12

Number of gridlines to add. 360 should probably be dividable by this.

mark_zerobool, default True

If True, draw a crosshair at 0.

Returns:
framematplotlib.axes.Axes

The frame axes. The zorder of frame is one less than that of ax.