Biomech-Sim-Toolbox 1
Toolbox for movement simulation and analysis
|
Function to get the position of a subfigure. More...
Functions | |
function | getSubfigurePosition (in iFig, in nRow, in nCol, in subFigSettings) |
Function to get the position of a subfigure. | |
function getSubfigurePosition | ( | in | iFig, |
in | nRow, | ||
in | nCol, | ||
in | subFigSettings | ||
) |
Function to get the position of a subfigure.
If you want to have a defined spacing between subfigures (e.g. to export it into tikz for a publication), this function can compute the positions of the subfigures for you.
This function can be used like the following to set the position of a subfigure:
During this call, you have to set the unit which was also used in subFigSettings.
iFig | Double: Index of the subfigure |
nRow | Double: Number of rows in the figure |
nCol | Double: Number of columns in the figure |
subFigSettings | Struct: Containing the settings to place the subfigures in the fields: width, height, originRight, originUp, oneRight, and oneUp. |
pos | Double vector: [left, bottom, width, height] |