Graphical commands of LME for Pocket PC are borrowed from Sysquake. There are low-level commands for basic shapes as well as high-level commands for more specialized plots:
Here is the list of these commands:
Clear the figure.
clf
clf erases the figure and resets its scale.
Immediate drawing of the plots.
drawnow
drawnow makes LME immediately draws the result of graphical commands which were executed before. Graphics are buffered to provide optimal performances. drawnow may be useful for basic animations or for benchmarks.
tic;for i=1:100;clf;step(1,1:4);drawnow;end;toc 2.2212
Manage subplots.
subplot(m, n, i) subplot(mni) subplot mni
The subplot function specifies the layout of subplots and where the graphical output produced by the commands which follow will be displayed. It can be used from the command-line interface (directly or indirectly in functions) or in SQ scripts. SQ files rely on a different mechanism, where each subplot is defined with a different draw handler and may be displayed on demand.
subplot(m,n,i), subplot(mni) with a three-digits number, or subplot mni all set an m-by-n grid layout and select the i:th subplot, with i between 1 for the top-left subplot and m*n for the bottom-right subplot. subplot should be executed before each subplot with the same values of m and n.
Four subplots in a 2-by-2 layout:
subplot 221
title('Top-left');
step(1,[1,2,3,4]);
subplot 222
title('Top-right');
plot(rand(10));
subplot 223
title('Bottom-left');
scale equal
nyquist(1,1:4);
subplot 224
title('Last one');
contour(randn(10));