ποΈ Layout Editorο
EOmaps provides a Layout Editor that can be used to quickly re-arrange the positions of all axes of a figure. You can use it to simply drag the axes the mouse to the desired locations and change their size with the scroll-wheel.
Keyboard shortcuts are assigned as follows:
Pick and re-arrange the axes as you like with the mouse.
Snap-To-Grid:
Undo, Redo, Save:
|
![]() |
Save and restore layoutsο
Once a layout (e.g. the desired position of the axes within a figure) has been arranged, the layout can be saved and re-applied with:
π
Maps.get_layout()
: get the current layout (or dump the layout as a json-file)π
Maps.apply_layout()
: apply a given layout (or load and apply the layout from a json-file)
It is also possible to enter the Layout Editor and save the layout automatically on exit with:
π
m.edit_layout(filepath=...)
: enter LayoutEditor and save layout as a json-file on exit
Note
A layout can only be restored if the number (and order) of the axes remains the same! In other words:
you always need to save a new layout-file after adding additional axes (or colorbars!) to a map
Get the positions of all axes within the current plot. |
|
Set the positions of all axes within the current plot based on a previously defined layout. |
|
Activate the "layout-editor" to quickly re-arrange the positions of subplots. |