PLECS 1.3 Online Help |
The Icon pane enables you to create icons that show descriptive text or labels, graphics and images.
The available drawing commands are described below. If you enter more than one command, the graphic objects are drawn in the order in which the commands appear. In case an error occurs during evaluation of the commands PLECS displays three question marks (? ? ?) in the mask icon.
Text text('text') displays a text in the center of the icon.
text(x, y, 'text' [, fontsize]) places the text at the coordinates x and y. The optional argument fontsize allows you to specify the font size.
The displayed text does not rotate or flip together with the icon. It is always displayed from left to right and it is centered both horizontally and vertically at its position.
Line line(xvec, yvec) plots the vector yvec against the vector xvec. Both vectors must have the same length. The vectors may contain NaN and inf values. When NaNs or infs are encountered, the line is interrupted and continued at the next point that is not NaN or inf.
Patch patch(xvec, yvec) draws a solid polygon whose vertices are specified by the vectors xvec and yvec. Both vectors must have the same length.
Circle circle(x, y, r) draws a circle at the coordinates x and y with the radius r.