<?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: Title is hidden behind graph - how to bring out? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10155#M124</link>
    <description>Hi:&lt;BR /&gt;
  Rather than rotate with GOPTIONS, I rotated the PDF output and then with columns=2, had enough real estate to get the two plots side-by-side using SASHELP.PRDSALE. (With only 2 numeric variables, I took out the OVERLAY option.)&lt;BR /&gt;
  &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
                 &lt;BR /&gt;
options orientation=landscape &lt;BR /&gt;
        topmargin=.5in bottommargin=.5in leftmargin=.5in rightmargin=.5in;&lt;BR /&gt;
ods pdf file='c:\temp\PlotBRet.pdf' columns=2;&lt;BR /&gt;
                            &lt;BR /&gt;
GOPTIONS reset=all  HTITLE=1;&lt;BR /&gt;
                  &lt;BR /&gt;
/* symbols defs skipped for pasting */&lt;BR /&gt;
             &lt;BR /&gt;
Legend1 FRAME;&lt;BR /&gt;
Axis1 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
Axis2 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
Axis3 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
                      &lt;BR /&gt;
TITLE;&lt;BR /&gt;
TITLE1 "Barra Factor Returns as of %SYSFUNC(DATE(), EURDFDE9.)";&lt;BR /&gt;
FOOTNOTE;&lt;BR /&gt;
FOOTNOTE1;&lt;BR /&gt;
                 &lt;BR /&gt;
ods proclabel 'BF Returns';&lt;BR /&gt;
               &lt;BR /&gt;
PROC GPLOT DATA = sashelp.prdsale NOCACHE ;&lt;BR /&gt;
where year = 1994 and region='EAST' and country='CANADA' and product='DESK';&lt;BR /&gt;
PLOT (actual)*Month / NOFRAME VZERO VAXIS=AXIS1 VREF=0 HAXIS=AXIS2 SKIPMISS LEGEND=LEGEND1;&lt;BR /&gt;
PLOT (predict)*Month / NOFRAME VZERO VAXIS=AXIS1 VREF=0 HAXIS=AXIS3 SKIPMISS LEGEND=LEGEND1;&lt;BR /&gt;
RUN; &lt;BR /&gt;
                     &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
                   &lt;BR /&gt;
ods listing;&lt;BR /&gt;
TITLE; FOOTNOTE;&lt;BR /&gt;
GOPTIONS RESET=ALL; &lt;BR /&gt;
[/pre]</description>
    <pubDate>Thu, 30 Sep 2010 21:46:32 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-09-30T21:46:32Z</dc:date>
    <item>
      <title>Title is hidden behind graph - how to bring out?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10154#M123</link>
      <description>I am plotting a couple of line plots using proc gplot.  I am rotating the graphs to a landscape orientation and outputting to pdf.  My problem is that the graphs take up too much real estate and the title gets hidden.  I tried playing around with some of the hsize, horigin, etc. kinds of options to no avail.  Does anyone have any ideas?  Here is the code:&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
&lt;BR /&gt;
ods html close;&lt;BR /&gt;
ods pdf file='c:\PlotBRet.pdf' columns=2;&lt;BR /&gt;
&lt;BR /&gt;
GOPTIONS xpixels=0 ypixels=0 ROTATE=LANDSCAPE HTITLE=1;&lt;BR /&gt;
&lt;BR /&gt;
/* symbols defs skipped for pasting */&lt;BR /&gt;
&lt;BR /&gt;
Legend1	FRAME;&lt;BR /&gt;
Axis1 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
Axis2 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
Axis3 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
&lt;BR /&gt;
TITLE;&lt;BR /&gt;
TITLE1 "Barra Factor Returns as of %SYSFUNC(DATE(), EURDFDE9.)";&lt;BR /&gt;
FOOTNOTE;&lt;BR /&gt;
FOOTNOTE1;&lt;BR /&gt;
&lt;BR /&gt;
ods proclabel 'BF Returns';&lt;BR /&gt;
&lt;BR /&gt;
PROC GPLOT DATA = BFRET NOCACHE ;&lt;BR /&gt;
PLOT (EV EY G L)*EndDate / NOFRAME Overlay VZERO VAXIS=AXIS1 VREF=0 HAXIS=AXIS2 SKIPMISS LEGEND=LEGEND1;&lt;BR /&gt;
PLOT (M S V Vo Y)*EndDate / NOFRAME Overlay VZERO VAXIS=AXIS1 VREF=0 HAXIS=AXIS3 SKIPMISS LEGEND=LEGEND1;&lt;BR /&gt;
RUN; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
ods html;&lt;BR /&gt;
ods listing;&lt;BR /&gt;
TITLE; FOOTNOTE;&lt;BR /&gt;
GOPTIONS RESET=ALL;</description>
      <pubDate>Thu, 30 Sep 2010 21:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10154#M123</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-09-30T21:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Title is hidden behind graph - how to bring out?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10155#M124</link>
      <description>Hi:&lt;BR /&gt;
  Rather than rotate with GOPTIONS, I rotated the PDF output and then with columns=2, had enough real estate to get the two plots side-by-side using SASHELP.PRDSALE. (With only 2 numeric variables, I took out the OVERLAY option.)&lt;BR /&gt;
  &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
                 &lt;BR /&gt;
options orientation=landscape &lt;BR /&gt;
        topmargin=.5in bottommargin=.5in leftmargin=.5in rightmargin=.5in;&lt;BR /&gt;
ods pdf file='c:\temp\PlotBRet.pdf' columns=2;&lt;BR /&gt;
                            &lt;BR /&gt;
GOPTIONS reset=all  HTITLE=1;&lt;BR /&gt;
                  &lt;BR /&gt;
/* symbols defs skipped for pasting */&lt;BR /&gt;
             &lt;BR /&gt;
Legend1 FRAME;&lt;BR /&gt;
Axis1 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
Axis2 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
Axis3 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
                      &lt;BR /&gt;
TITLE;&lt;BR /&gt;
TITLE1 "Barra Factor Returns as of %SYSFUNC(DATE(), EURDFDE9.)";&lt;BR /&gt;
FOOTNOTE;&lt;BR /&gt;
FOOTNOTE1;&lt;BR /&gt;
                 &lt;BR /&gt;
ods proclabel 'BF Returns';&lt;BR /&gt;
               &lt;BR /&gt;
PROC GPLOT DATA = sashelp.prdsale NOCACHE ;&lt;BR /&gt;
where year = 1994 and region='EAST' and country='CANADA' and product='DESK';&lt;BR /&gt;
PLOT (actual)*Month / NOFRAME VZERO VAXIS=AXIS1 VREF=0 HAXIS=AXIS2 SKIPMISS LEGEND=LEGEND1;&lt;BR /&gt;
PLOT (predict)*Month / NOFRAME VZERO VAXIS=AXIS1 VREF=0 HAXIS=AXIS3 SKIPMISS LEGEND=LEGEND1;&lt;BR /&gt;
RUN; &lt;BR /&gt;
                     &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
                   &lt;BR /&gt;
ods listing;&lt;BR /&gt;
TITLE; FOOTNOTE;&lt;BR /&gt;
GOPTIONS RESET=ALL; &lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 30 Sep 2010 21:46:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10155#M124</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-30T21:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Title is hidden behind graph - how to bring out?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10156#M125</link>
      <description>Thanks Cynthia.  I knew I had tried something like this, but couldn't recall the result.  I tried it again and I get an Error: Device Not Specified message in the log.  It seems to be related to the "reset=all" in GOPTIONS statement, because I can remove that and it runs (but I'm back to my original problem of the title being hidden at that point).  Any thoughts as to why that would occur.&lt;BR /&gt;
&lt;BR /&gt;
--Charlie</description>
      <pubDate>Fri, 01 Oct 2010 13:38:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10156#M125</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-01T13:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Title is hidden behind graph - how to bring out?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10157#M126</link>
      <description>Hi:&lt;BR /&gt;
  You can fix the device issue by using an explicit DEVICE= specification after the RESET=ALL (or I believe it might also work if you moved the GOPTIONS statement BEFORE the ODS PDF statement):&lt;BR /&gt;
[pre]&lt;BR /&gt;
goptions reset=all device=sasprtc htitle=1;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
However, I ran my code in SAS 9.2, Phase 2 release and did not get an ERROR message or warning in the LOG:&lt;BR /&gt;
[pre]&lt;BR /&gt;
4326  ods _all_ close;&lt;BR /&gt;
4327 &lt;B&gt;&lt;BR /&gt;
4328  %put &amp;amp;sysvlong;&lt;BR /&gt;
9.02.02M2P090109 &lt;/B&gt;&lt;BR /&gt;
4329&lt;BR /&gt;
4330  options orientation=landscape topmargin=.5in&lt;BR /&gt;
4330! bottommargin=.5in leftmargin=.5in rightmargin=.5in;&lt;BR /&gt;
4331  ods pdf file='c:\temp\PlotBRet2.pdf' columns=2;&lt;BR /&gt;
NOTE: Writing ODS PDF output to DISK destination&lt;BR /&gt;
      "c:\temp\PlotBRet2.pdf", printer "PDF".&lt;BR /&gt;
4332&lt;BR /&gt;
4333  GOPTIONS reset=all htitle=1;&lt;BR /&gt;
4334&lt;BR /&gt;
4335  /* symbols defs skipped for pasting */&lt;BR /&gt;
4336&lt;BR /&gt;
4337  Legend1 FRAME;&lt;BR /&gt;
4338  Axis1 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
4339  Axis2 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
4340  Axis3 STYLE=1 WIDTH=1 MINOR=NONE;&lt;BR /&gt;
4341&lt;BR /&gt;
4342  TITLE;&lt;BR /&gt;
4343  TITLE1 "Barra Factor Returns as of %SYSFUNC(DATE(),&lt;BR /&gt;
4343! EURDFDE9.)";&lt;BR /&gt;
4344  FOOTNOTE;&lt;BR /&gt;
4345  FOOTNOTE1;&lt;BR /&gt;
4346&lt;BR /&gt;
4347  ods proclabel 'BF Returns';&lt;BR /&gt;
4348&lt;BR /&gt;
                          &lt;BR /&gt;
NOTE: There were 24 observations read from the data set&lt;BR /&gt;
      SASHELP.PRDSALE.&lt;BR /&gt;
      WHERE (year=1994) and (region='EAST') and&lt;BR /&gt;
      (country='CANADA') and (product='DESK');&lt;BR /&gt;
NOTE: PROCEDURE GPLOT used (Total process time):&lt;BR /&gt;
      real time           3:17.76&lt;BR /&gt;
      cpu time            1.76 seconds&lt;BR /&gt;
&lt;BR /&gt;
                               &lt;BR /&gt;
4349  PROC GPLOT DATA = sashelp.prdsale NOCACHE ;&lt;BR /&gt;
4350  where year = 1994 and region='EAST' and country='CANADA'&lt;BR /&gt;
4350! and product='DESK';&lt;BR /&gt;
4351  PLOT (actual)*Month / NOFRAME  VZERO VAXIS=AXIS1 VREF=0&lt;BR /&gt;
4351! HAXIS=AXIS2 SKIPMISS LEGEND=LEGEND1;&lt;BR /&gt;
4352  PLOT (predict)*Month / NOFRAME  VZERO VAXIS=AXIS1 VREF=0&lt;BR /&gt;
4352! HAXIS=AXIS3 SKIPMISS LEGEND=LEGEND1;&lt;BR /&gt;
4353  RUN;&lt;BR /&gt;
                           &lt;BR /&gt;
4354&lt;BR /&gt;
4355&lt;BR /&gt;
4356  ods pdf close;&lt;BR /&gt;
NOTE: ODS PDF printed 1 page to c:\temp\PlotBRet2.pdf.&lt;BR /&gt;
4357&lt;BR /&gt;
4358  ods listing;&lt;BR /&gt;
4359  TITLE; FOOTNOTE;&lt;BR /&gt;
4360  GOPTIONS RESET=ALL;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                        &lt;BR /&gt;
This leads me to wonder 1) what version of SAS you're using and 2) what operating system you're using and 3) in what other context you might be submitting the code (such as from within SAS Enterprise Guide or as a SAS Stored Process).&lt;BR /&gt;
         &lt;BR /&gt;
However, at this point I have no idea why your title is being obscured. Without knowing the units that are set for your SAS/GRAPH goptions, it is hard to know what HTITLE=1 means -- the UNITS for HTITLE could be in CELLS, CM, IN, PCT or PT -- so a few things you could try are 1) to specify an explicit unit for size for the HTITLE= option:&lt;BR /&gt;
[pre]&lt;BR /&gt;
HTITLE=14pt&lt;BR /&gt;
HTITLE=2pct&lt;BR /&gt;
[/pre]&lt;BR /&gt;
and see whether the title is still obscure;   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
              &lt;BR /&gt;
or 2) take HTITLE out altogether and allow the style template (if you are using SAS 9.2) to control the titles and see whether the title is still obscure; or&lt;BR /&gt;
               &lt;BR /&gt;
or 3) take HTITLE out altogether and alter the TITLE statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
TITLE1 h=2pct "Barra Factor Returns as of %SYSFUNC(DATE(), EURDFDE9.)";&lt;BR /&gt;
TITLE1 h=14pt  "Barra Factor Returns as of %SYSFUNC(DATE(), EURDFDE9.)";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
               &lt;BR /&gt;
At this point, your best bet for help might be to open a track with Tech Support. They can help you with solutions that will be specific to your version of SAS and your operating system. To open a track with Tech Support, fill out the form at this link:&lt;BR /&gt;
&lt;A href="http://support.sas.com/ctx/supportform/createForm" target="_blank"&gt;http://support.sas.com/ctx/supportform/createForm&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 01 Oct 2010 15:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10157#M126</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-10-01T15:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: Title is hidden behind graph - how to bring out?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10158#M127</link>
      <description>OK, thanks Cynthia.  That more or less did it.  Just for reference, I'm using Enterprise Guide and currently running the program locally rather than on our server.  It's a Windows platform and the SAS version is 9.1.3 SP4.  &lt;BR /&gt;
&lt;BR /&gt;
This last iteration fixed the title, but then added Titles on each plot and also messed up the legend and x-axis in terms of the font.  I'm assuming I can fix that though.  &lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help!&lt;BR /&gt;
&lt;BR /&gt;
--Charlie</description>
      <pubDate>Fri, 01 Oct 2010 17:30:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Title-is-hidden-behind-graph-how-to-bring-out/m-p/10158#M127</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-01T17:30:59Z</dc:date>
    </item>
  </channel>
</rss>

