For many years, the%PlotIt macro provided the only convenient way to get graphical scatter plots of labeled points. With SAS Version 9.2, however, there are other and in many cases better options for making these plots. Now, ODS Graphics automatically does much of what the%PlotIt macro was. I think Scatter Arrow instantly killing the squishier targets is fine, while annoying. It's frustrating to be killed by it because it is so easy to use Scatter Arrow, but if it doesn't do enough damage to kill someone like Tracer instantly, it would be pretty useless in most other circumstances.
![]()
SCATTER3 takes its data as vectors and interprets them as the locations to place circles. In the help example for SCATTER3, the X,Y, and Z matrices returned by SPHERE are indexed with : to convert them to vectors. For your example, this might looks like:
testy(:,:,2)=[0,0,0;1,1,0;0,0,0];
How Much Dmg Does Scatter Arrow Do If Not Scattered In Spanish
Ymatrix = testy(:,:,2);
How Much Dmg Does Scatter Arrow Do If Not Scattered Heart![]()
scatter3(Xmatrix(:), Ymatrix(:), Zmatrix(:));
However, based on your mention of SPY, I suspect that you are not interested in the plot above but instead in seeing the (x,y,z) locations of each 1 plotted. If this is the case, it might be helpful to use IND2SUB with FIND to get the coordinates of each 1 and then plot this with SCATTER3:
[rowInd,colInd,zInd]=ind2sub(size(testy),find(testy));
The resultant scatter plot is similar to stacking SPY plots of each matrix sheet.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |