mpl-direct-layout

A kiwisolver-free layout engine for Matplotlib. Positions axes by direct algebraic solving instead of constraint optimisation, making it lighter and requiring no optional solver dependency.

Quick start

import mpl_direct_layout          # registers the 'direct' key
import matplotlib.pyplot as plt

fig, axs = plt.subplots(2, 2, layout='direct')
for ax in axs.flat:
    ax.plot([1, 2, 3])
    ax.set_xlabel('x')
    ax.set_ylabel('y')
    ax.set_title('Title')
plt.show()

Indices and tables