You are reading an old version of the documentation (v3.0.3). For the latest version see https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.subplot_class_factory.html
Version 3.0.3
matplotlib
Fork me on GitHub

matplotlib.axes.subplot_class_factory

axes.subplot_class_factory

This makes a new class that inherits from SubplotBase and the given axes_class (which is assumed to be a subclass of axes.Axes). This is perhaps a little bit roundabout to make a new class on the fly like this, but it means that a new Subplot class does not have to be created for every type of Axes.