Drawing in pyFormex is not limited to a single canvas. You can create any number of canvas widgets laid out in an array with given number of rows or columns. The following functions are available for manipulating the viewports.
nvps=None,ncols=None,nrows=None) |
If a number of viewports is given, viewports will be added or removed to match the number requested. By default they are layed out rowwise over two columns.
If ncols is an int, viewports are laid out rowwise over ncols columns and nrows is ignored. If ncols is None and nrows is an int, viewports are laid out columnwise over nrows rows.
) |
) |
vp,tovp) |
Both vp and tovp should be numbers of viewports. The viewport vp will now show the same contents as the viewport tovp.
n) |
This action is also implicitly called by clicking with the mouse inside a viewport.