powered by
Check that layout and mode are correct
check_layout(layout, mode)
Error if incorrect layout or mode, otherwise nothing.
Plot layout.
Plot mode.