<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS 9.1.3 Proc gplot with annotate in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-3-Proc-gplot-with-annotate/m-p/76461#M2842</link>
    <description>Hard to tell without the work.temp data to try the graph, but ...&lt;BR /&gt;
&lt;BR /&gt;
I assume since you're using xsys/ysys=2 that you're annotating the table inside the graph axes area(?), and you don't want the annotated text to overlap with the gplot markers(?)&lt;BR /&gt;
&lt;BR /&gt;
In axis statements, you can use the 'offset' option to add whitespace within the axes, to guarantee there will be space inside the axes that doesn't contain gplot lines/markers, and annotate the table there.&lt;BR /&gt;
&lt;BR /&gt;
Or, I would recommend annotating the table outside the gplot axes, along the side of the graph (you'll have to use a different xsys/ysys) - you can use a fake/blank title, angled on the side of the graph, to make room for the table, such as ...&lt;BR /&gt;
&lt;BR /&gt;
   title2 angle=90 height=10pct " ";&lt;BR /&gt;
   (or use -90 for the other side)&lt;BR /&gt;
&lt;BR /&gt;
[Note that you can't use fake blank titles like this with dev=java and activex, only with the traditional devices like gif, png, etc.]</description>
    <pubDate>Thu, 22 Oct 2009 12:16:28 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2009-10-22T12:16:28Z</dc:date>
    <item>
      <title>SAS 9.1.3 Proc gplot with annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-3-Proc-gplot-with-annotate/m-p/76460#M2841</link>
      <description>Hi everyone,&lt;BR /&gt;
&lt;BR /&gt;
                  How can i fix the overlap of the chart and the annotate in a proc gplot?&lt;BR /&gt;
Here is the code that i use please see the code below.&lt;BR /&gt;
&lt;BR /&gt;
proc sql noprint;&lt;BR /&gt;
	create table lineanno as&lt;BR /&gt;
	select * from work.temp&lt;BR /&gt;
	having prc_date=max(prc_date);&lt;BR /&gt;
quit; run;&lt;BR /&gt;
&lt;BR /&gt;
data lineanno; set lineanno;&lt;BR /&gt;
length text $20.;&lt;BR /&gt;
xsys='2'; ysys='2'; hsys='3'; position='6'; style='"arial/bold"'; color='black'; &lt;BR /&gt;
x=prc_date; y=yield; function='label'; text='  '||trim(left(pass_grade));&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data tablanno; set work.temp;&lt;BR /&gt;
length text $20.;&lt;BR /&gt;
length function $8.;&lt;BR /&gt;
xsys='2'; ysys='2'; hsys='3'; position='5'; style='"arial/bold"'; color='black';&lt;BR /&gt;
function='move'; x=prc_date; y=0; output;&lt;BR /&gt;
ysys='3'; &lt;BR /&gt;
function='label';&lt;BR /&gt;
text=trim(left(put(yield,comma4.1))); &lt;BR /&gt;
if pass_grade eq 'Grade 1' then y=15; &lt;BR /&gt;
else if pass_grade eq 'Grade 2' then y=11; &lt;BR /&gt;
else if substr(pass_grade,1,1) eq 'T' then y=7; &lt;BR /&gt;
output;&lt;BR /&gt;
run;&lt;BR /&gt;
data tabllabl;&lt;BR /&gt;
length text $20.;&lt;BR /&gt;
length function $8.;&lt;BR /&gt;
xsys='3'; ysys='3'; hsys='3'; position='6'; style='"arial/bold"'; color='black';&lt;BR /&gt;
x=2.5; &lt;BR /&gt;
y=15; text='Grade 1'; output;&lt;BR /&gt;
y=11; text='Grade 2'; output;&lt;BR /&gt;
y=7; text='Total G'; output;&lt;BR /&gt;
run;&lt;BR /&gt;
data grayline;&lt;BR /&gt;
xsys='1'; ysys='3'; color='gray';&lt;BR /&gt;
function='move'; x=0; y=17; output;&lt;BR /&gt;
function='draw'; x=100; y=17; output;&lt;BR /&gt;
run;&lt;BR /&gt;
data tablanno; set tablanno tabllabl grayline;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
ODS LISTING CLOSE;&lt;BR /&gt;
goptions reset=all cback='white' device=activex gunit=pct ctext=black &lt;BR /&gt;
		 htitle=6 ftitle="arial/bo" htext=3.25 ftext="arial/bo";&lt;BR /&gt;
		 &lt;BR /&gt;
&lt;BR /&gt;
/* ODS HTML path=odsout body="&amp;amp;name..htm" (title="") style=minimal;*/&lt;BR /&gt;
/*goptions noborder;*/&lt;BR /&gt;
&lt;BR /&gt;
goptions xpixels=1200 ypixels=350;&lt;BR /&gt;
&lt;BR /&gt;
symbol1 i=sm v=circle h=1.8 w=1.8 c=blue  ;&lt;BR /&gt;
symbol2 i=sm v=circle h=1.8 w=1.8 c=black ;&lt;BR /&gt;
symbol3 i=sm v=circle h=1.8 w=1.8 c=green ;&lt;BR /&gt;
&lt;BR /&gt;
axis1 label=(angle=270 "Grade") order=(0 to 100 by 10) minor=none offset=(0,0) major=none;&lt;BR /&gt;
axis2 label=none order=('01OCT2009'd to '01NOV2009'd by 1) minor=none offset=(0,0) ;&lt;BR /&gt;
&lt;BR /&gt;
title1 "DET";&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=work.temp anno=tablanno;&lt;BR /&gt;
	plot yield*prc_date=pass_grade / &lt;BR /&gt;
    cframe=ligr &lt;BR /&gt;
	vaxis=axis1 &lt;BR /&gt;
	haxis=axis2&lt;BR /&gt;
/*	autovref */&lt;BR /&gt;
/*  cvref=black */&lt;BR /&gt;
/*	nolegend*/&lt;BR /&gt;
/*	cvref=black vref=32*/&lt;BR /&gt;
	anno=lineanno&lt;BR /&gt;
	autovref&lt;BR /&gt;
/*	legend=legend1*/&lt;BR /&gt;
	noframe&lt;BR /&gt;
	;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
quit;&lt;BR /&gt;
ODS HTML CLOSE;&lt;BR /&gt;
ODS LISTING;	&lt;BR /&gt;
&lt;BR /&gt;
Thanks,,,</description>
      <pubDate>Thu, 22 Oct 2009 02:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-3-Proc-gplot-with-annotate/m-p/76460#M2841</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-10-22T02:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS 9.1.3 Proc gplot with annotate</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-3-Proc-gplot-with-annotate/m-p/76461#M2842</link>
      <description>Hard to tell without the work.temp data to try the graph, but ...&lt;BR /&gt;
&lt;BR /&gt;
I assume since you're using xsys/ysys=2 that you're annotating the table inside the graph axes area(?), and you don't want the annotated text to overlap with the gplot markers(?)&lt;BR /&gt;
&lt;BR /&gt;
In axis statements, you can use the 'offset' option to add whitespace within the axes, to guarantee there will be space inside the axes that doesn't contain gplot lines/markers, and annotate the table there.&lt;BR /&gt;
&lt;BR /&gt;
Or, I would recommend annotating the table outside the gplot axes, along the side of the graph (you'll have to use a different xsys/ysys) - you can use a fake/blank title, angled on the side of the graph, to make room for the table, such as ...&lt;BR /&gt;
&lt;BR /&gt;
   title2 angle=90 height=10pct " ";&lt;BR /&gt;
   (or use -90 for the other side)&lt;BR /&gt;
&lt;BR /&gt;
[Note that you can't use fake blank titles like this with dev=java and activex, only with the traditional devices like gif, png, etc.]</description>
      <pubDate>Thu, 22 Oct 2009 12:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-9-1-3-Proc-gplot-with-annotate/m-p/76461#M2842</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-10-22T12:16:28Z</dc:date>
    </item>
  </channel>
</rss>

