import matplotlib.pyplot as plt
from tenpy.models import lattice
fig, axes = plt.subplots(2, 1, sharex=True, sharey=True, figsize=(8, 3))
lat = lattice.Chain(8, None, bc='periodic')
order_names=['default', 'folded']
for order_name, ax in zip(order_names, axes.flatten()):
    lat.plot_coupling(ax, linestyle='-', linewidth=1)
    lat.order = lat.ordering(order_name)
    lat.plot_sites(ax)
    lat.plot_order(ax, linestyle=':', linewidth=2)
    lat.plot_basis(ax, origin=(-0.5, -0.25), shade=False)
    ax.set_title(f"order={order_name!r}")
    ax.set_aspect('equal')
    ax.set_xlim(-0.8)
    ax.set_ylim(-0.5, 0.5)
plt.show()