Strange layout for sources

When displaying multiple source figures, some stack vertically only, while others form a grid. See this strange resulting layout:

Edit: at first I thought it was kernel vs non-kernel, but that's not it. I'm not sure what determines their layout behavior.

This grouping logic is related to how the figures are currently organized in memory.
All the figures from a GlobalData.DataSet are grouped in the same block (= one row in your example).
The figures that are grouped on a row are all loaded on the same DataSet, either because they depend on the same DataFile, or because they do not depend on any DataFile.

The order in which you open the different figures can lead to different structures in memory, and threfore different grouping.