Chapter Contents

Previous

Next
The GANNO Procedure

Example 2: Storing Annotate Graphics


Procedure features:
PROC GANNO statement options:
DESCRIPTION=
GOUT=
NAME=
Sample library member: GR12N02

[IMAGE]

This example creates an Annotate data set that draws four colored squares, displays the data set as a single graphics output, and stores the output as a catalog entry in a permanent catalog. In this example, the NAME= option specifies a text string that identifies the name that is stored with the graphics output in the catalog.
 Note about code
libname reflib 'SAS-data-library';
goptions reset=global gunit=pct cback=white
   colors=(black blue green red);
 Note about code
data reflib.squares;
   length function style color $ 8 text $ 15;
   xsys='3'; ysys='3';
 Note about code
   color='green';
   function='move'; x=10; y=65; output;
   function='bar';  x=30; y=95; style='solid'; output;
 Note about code
   function='label'; x=10; y=63; position='6';
      style='swissb'; size=2; text='Green'; output;
 Note about code
   color='red';
   function='move'; x=60; y=65; output;
   function='bar';  x=80; y=95; output;
   function='label'; x=60; y=63; position='6';
      style='swissb'; size=2; text='Red'; output;
 Note about code
   color='blue';
   function='move'; x=10; y=15; output;
   function='bar';  x=30; y=45; output;
   function='label'; x=10; y=12; position='6';
      style='swissb'; size=2; text='Blue'; output;
 Note about code
   color='gray';
   function='move'; x=60; y=15; output;
   function='bar';  x=80; y=45; output;
   function='label'; x=60; y=12; position='6';
      style='swissb'; size=2; text='Gray'; output;
 Note about code
   x=88; y=5; position='5'; size=1.5; style='swiss';
      text='GR12N02'; output;
 Note about code
   function='frame'; color='red'; when='b';
      style='empty'; output;
run;
 Note about code
proc ganno annotate=reflib.squares
   gout=reflib.excat
   name='gr12n02'
   description='Four squares';
run;
quit;


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.