from matplotlib.backends.backend_gtk4agg import FigureCanvas # or gtk4cairo.
# Many of the MultiIndex slicing operations will fail if the index is not sorted. # The multiindex is not sorted lexographically.