hatvis.layout.normalize_layout#

hatvis.layout.normalize_layout(Y, labels, margin=0.0)[source]#

Scale coordinates to the unit box (keeping the aspect ratio) and return a label dict.