Home > composition-plot > QuaternaryShellPlot > setPlacement
Initialize the placement of the quaternary plot
Signature:
setPlacement(initialShell: number, finalShell: number, spacing: number, edgeUnit: number, origin?: Vec2, maxWidth?: number, margin?: number): void;
Parameter | Type | Description |
---|---|---|
initialShell | number | The initial shell number that needs to be plotted |
finalShell | number | The final shell number that needs to be plotted |
spacing | number | The composition fraction between shells |
edgeUnit | number | The legth of an edge spanning from 0 to 1 composition fraction |
origin | Vec2 | The origin of the plot |
maxWidth | number | The maximum width the plot can have before new shells are placed on a new row |
margin | number | The margin between shells |
Returns:
void