In Chapter 2, Getting Started with Basic Plots, we learned how to draw polar plots using pyplot's projection='polar' option while defining the axes. In this recipe, we will learn how to draw a polar plot using floating axes.
Creating polar axes using floating axes
Getting ready
You'll need to import the requisite libraries using the following commands:
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.transforms import Affine2D
import mpl_toolkits.axisartist.floating_axes as floating_axes
from matplotlib.projections import PolarAxes
from mpl_toolkits.axisartist.grid_finder import (FixedLocator, MaxNLocator, DictFormatter)