Skip to content

Instantly share code, notes, and snippets.

@Prunus1350
Created June 8, 2015 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Prunus1350/8a20ae603a4f5e6b2871 to your computer and use it in GitHub Desktop.
Save Prunus1350/8a20ae603a4f5e6b2871 to your computer and use it in GitHub Desktop.
白魔道士のドット絵を描く
data waku;
do y = 1 to 32;
do x = 1 to 32;
output;
end;
end;
run;
data attrmap1;
retain id "id1"
markersymbol "squarefilled"
markersize 16;
input (value markercolor) ($);
cards;
0 cxffffff
1 cxbeb9b4
2 cxa09b96
3 cx918787
4 cx5f555a
5 cx463c41
6 cx000000
7 cxd2c8c8
8 cxaa8c82
9 cx9b0519
a cx6e0014
b cx14469b
c cx0f4182
d cx052869
e cx0a235a
f cx14144b
g cx5a371e
h cx462819
i cx372319
j cxdcdc32
k cxc8c828
l cxb9af28
m cxa08c28
n cx826e19
o cx6d5322
p cxdca58c
q cxc88264
;
run;
data shiro;
input (var1 - var1024) ($);
cards;
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 6 6 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 6 7 7 7 6 6 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 6 7 0 0 0 0 0 7 6 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 6 0 8 0 0 0 0 0 0 0 6 0 0 0 0 0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 6 7 0 9 9 9 9 a 6 9 0 9 6 a 6 0 0 0 0 6 6 6 0 0 0 0
0 0 0 0 0 0 6 a 9 9 9 9 a 6 a 9 9 9 9 6 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 6 6 6 6 6 6 6 6 6 6 6 6 6 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
;
run;
proc transpose data = shiro out = t_shiro(keep=col1);
var _all_;
run;
data m_shiro;
merge waku
t_shiro;
run;
ods graphics / width = 800 height = 800;
proc sgplot data = m_shiro dattrmap = attrmap1 noautolegend;
scatter x = x y = y / group = col1 attrid = id1;
xaxis display = none;
yaxis display = none reverse;
run;
ods graphics / reset = width reset = height;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment