<?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 SAS GPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17750#M367</link>
    <description>Hi!&lt;BR /&gt;
 I'm running this code, (It's a density plot).&lt;BR /&gt;
what I want is to have the background grey, and the inside-blue. what I get is the background -grey and the inside -black!!  Where can I change it? The "c=blue" option doesn't seem to affect anything.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance!&lt;BR /&gt;
Tal&lt;BR /&gt;
  GOPTIONS RESET=all;&lt;BR /&gt;
axis1 order=(0 to .1 by 0.01) label=(f=swiss h=0.35 cm a=90 'Density') value=(h=2) minor=none; &lt;BR /&gt;
axis2 label=(f=swiss h=0.35 cm'O3') order=(-10 to 140 by 10) length=6 in offset=(.5 cm) value=(h=1.5) minor=none origin=(1.5 in, 1.5 in); &lt;BR /&gt;
&lt;BR /&gt;
pattern1 v=solid c=grey; &lt;BR /&gt;
symbol1 v=none i=join &lt;B&gt;c=blue&lt;/B&gt;; &lt;BR /&gt;
		 proc gplot data=dens_hh.densplot_O3_&amp;amp;stat. gout=work.b&lt;BR /&gt;
;&lt;BR /&gt;
         plot density * o3/&lt;BR /&gt;
		 name="&amp;amp;stat.o3" areas=2;&lt;BR /&gt;
	&lt;BR /&gt;
		 run;</description>
    <pubDate>Mon, 16 Nov 2009 21:24:49 GMT</pubDate>
    <dc:creator>tal83</dc:creator>
    <dc:date>2009-11-16T21:24:49Z</dc:date>
    <item>
      <title>SAS GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17750#M367</link>
      <description>Hi!&lt;BR /&gt;
 I'm running this code, (It's a density plot).&lt;BR /&gt;
what I want is to have the background grey, and the inside-blue. what I get is the background -grey and the inside -black!!  Where can I change it? The "c=blue" option doesn't seem to affect anything.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance!&lt;BR /&gt;
Tal&lt;BR /&gt;
  GOPTIONS RESET=all;&lt;BR /&gt;
axis1 order=(0 to .1 by 0.01) label=(f=swiss h=0.35 cm a=90 'Density') value=(h=2) minor=none; &lt;BR /&gt;
axis2 label=(f=swiss h=0.35 cm'O3') order=(-10 to 140 by 10) length=6 in offset=(.5 cm) value=(h=1.5) minor=none origin=(1.5 in, 1.5 in); &lt;BR /&gt;
&lt;BR /&gt;
pattern1 v=solid c=grey; &lt;BR /&gt;
symbol1 v=none i=join &lt;B&gt;c=blue&lt;/B&gt;; &lt;BR /&gt;
		 proc gplot data=dens_hh.densplot_O3_&amp;amp;stat. gout=work.b&lt;BR /&gt;
;&lt;BR /&gt;
         plot density * o3/&lt;BR /&gt;
		 name="&amp;amp;stat.o3" areas=2;&lt;BR /&gt;
	&lt;BR /&gt;
		 run;</description>
      <pubDate>Mon, 16 Nov 2009 21:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17750#M367</guid>
      <dc:creator>tal83</dc:creator>
      <dc:date>2009-11-16T21:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17751#M368</link>
      <description>Not sure I'm following, but if you're meaning the background of the whole page gray &amp;amp; the background inside the plot axes blue, then here's what you'd want...&lt;BR /&gt;
&lt;BR /&gt;
goptions cback=gray;&lt;BR /&gt;
&lt;BR /&gt;
symbol1 color=yellow value=dot interpol=none;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.class;&lt;BR /&gt;
plot height*age / cframe=blue;&lt;BR /&gt;
run;

Message was edited by: Robert Allison @ SAS</description>
      <pubDate>Tue, 17 Nov 2009 12:56:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17751#M368</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-11-17T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17752#M369</link>
      <description>Or, if you're wanting an area plot, with the color under the line blue, and the area not under the line gray, something like this...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
goptions cback=white;&lt;BR /&gt;
&lt;BR /&gt;
pattern1 v=solid c=blue;&lt;BR /&gt;
&lt;BR /&gt;
symbol1 color=blue value=none interpol=join;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.stocks (where=(stock="IBM"));&lt;BR /&gt;
plot close*date / areas=1 cframe=gray;&lt;BR /&gt;
run;</description>
      <pubDate>Tue, 17 Nov 2009 13:02:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17752#M369</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-11-17T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17753#M370</link>
      <description>Thanks for your answers!&lt;BR /&gt;
What  I want is the second option you mentioned, but the symbol's specified color doesn't seem to actually affect the graph's color&lt;BR /&gt;
Thanks again!&lt;BR /&gt;
&lt;BR /&gt;
  GOPTIONS RESET=all&lt;BR /&gt;
cback=white&lt;BR /&gt;
;&lt;BR /&gt;
pattern1 v=solid c=grey; &lt;BR /&gt;
symbol1 v=none i=join &lt;BR /&gt;
&lt;B&gt;c=purple&lt;/B&gt;  &lt;I&gt;( I tried all kind of colors. I want it to be blue- but none actually affects it, they all produced the same graph)&lt;/I&gt;.&lt;BR /&gt;
; &lt;BR /&gt;
axis1 order=(0 to .1 by 0.01) label=(f=swiss h=0.35 cm a=90 'Density') value=(h=2) minor=none; &lt;BR /&gt;
axis2 label=(f=swiss h=0.35 cm'O3') order=(-10 to 140 by 10) length=6 in offset=(.5 cm) value=(h=1.5) minor=none origin=(1.5 in, 1.5 in); &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 proc gplot data=dens_hh.densplot_O3_&amp;amp;stat. gout=work.c;&lt;BR /&gt;
         plot density * o3/&lt;BR /&gt;
		 name="&amp;amp;stat.o3" areas=2;&lt;BR /&gt;
	&lt;BR /&gt;
		 run;</description>
      <pubDate>Wed, 18 Nov 2009 15:38:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17753#M370</guid>
      <dc:creator>tal83</dc:creator>
      <dc:date>2009-11-18T15:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17754#M371</link>
      <description>Generally, the shaded area covers/obscures the line.&lt;BR /&gt;
&lt;BR /&gt;
If you want a visible line, you can plot a 2nd line (in addition to the area), and overlay that on top of the first one.  Something like this, where I added "close*date=2 / overlay" (and specify the desired line color in the symbol2 statement) ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
goptions cback=white;&lt;BR /&gt;
&lt;BR /&gt;
pattern1 v=solid c=blue;&lt;BR /&gt;
&lt;BR /&gt;
symbol1 color=blue value=none interpol=join;&lt;BR /&gt;
symbol2 color=yellow value=none interpol=join;&lt;BR /&gt;
&lt;BR /&gt;
proc gplot data=sashelp.stocks (where=(stock="IBM"));&lt;BR /&gt;
plot close*date=1 close*date=2 / overlay areas=1 cframe=gray;&lt;BR /&gt;
run;</description>
      <pubDate>Wed, 18 Nov 2009 15:57:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17754#M371</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-11-18T15:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17755#M372</link>
      <description>Hi!&lt;BR /&gt;
Thanks again. I'm sorry, i think  i misunderstood your second option (English is not my native language).&lt;BR /&gt;
what i want is a plot like in here:&lt;BR /&gt;
&lt;BR /&gt;
&lt;U&gt;http://images.google.co.il/imgres?imgurl=http://www.statmethods.net/advstats/images/cdplot.jpg&amp;amp;imgrefurl=http://www.statmethods.net/advstats/glm.html&amp;amp;usg=__5R-Bv_UWJVNz0YjQ9_S547i7tjU=&amp;amp;h=689&amp;amp;w=689&amp;amp;sz=51&amp;amp;hl=iw&amp;amp;start=339&amp;amp;sig2=EggoXZR5PB4a8QPP4b9Txg&amp;amp;tbnid=H8IzCcBt-ZAUNM:&amp;amp;tbnh=139&amp;amp;tbnw=139&amp;amp;prev=/images%3Fq%3Ddensity%2Bplot%26gbv%3D2%26ndsp%3D20%26hl%3Diw%26sa%3DN%26start%3D320&amp;amp;ei=20QES4aaH8ua_QaTx-jhDQ&lt;/U&gt;&lt;BR /&gt;
&lt;BR /&gt;
where the dark-grey area is blue.&lt;BR /&gt;
&lt;BR /&gt;
GOPTIONS- CBACK=white makes what I want. (white, like in the picture)&lt;BR /&gt;
so does the color in the pattern statement. (light grey, like in the picture)&lt;BR /&gt;
but the color in the symbol statement doesn't make the density plot area blue (in the picture it's dark grey)&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Tal&lt;BR /&gt;
&lt;BR /&gt;
PS For some reason i don't have the sashelp.stocks file in my sashelp library.</description>
      <pubDate>Wed, 18 Nov 2009 19:16:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17755#M372</guid>
      <dc:creator>tal83</dc:creator>
      <dc:date>2009-11-18T19:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17756#M373</link>
      <description>Hmm ... I guess you're using a version older than v9.2, and sashelp.stocks is a new v9.2 sample data set [note - I *strongly* encourage everyone to upgrade to v9.2, because it has _lots_ of neat new features, etc!]&lt;BR /&gt;
&lt;BR /&gt;
Ok - there are basically *three* colors you want to control ...&lt;BR /&gt;
&lt;BR /&gt;
1 - The background of the entire page (goptions cback='white')&lt;BR /&gt;
&lt;BR /&gt;
2 - The background/area within the axes (cframe=gray)&lt;BR /&gt;
&lt;BR /&gt;
3 - The area under the line (pattern1 v=s color=blue)&lt;BR /&gt;
&lt;BR /&gt;
(the color of the symbol statement really has no impact, since the line generated by the symbol statement is obscured/covered by the solid-filled area.)&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Here's an example (using v9.1.3 sample data) that demonstrates this:&lt;BR /&gt;
&lt;BR /&gt;
goptions cback=white;&lt;BR /&gt;
&lt;BR /&gt;
pattern1 v=solid color=blue; /* color of area below line */&lt;BR /&gt;
symbol1 value=none interpol=join color=blue; /* not really visible */&lt;BR /&gt;
&lt;BR /&gt;
axis1 label=(angle=90);&lt;BR /&gt;
proc gplot data=sashelp.citiday (where=(date le '01jan1990'd));&lt;BR /&gt;
plot snydjcm*date / areas=1&lt;BR /&gt;
  vaxis=axis1&lt;BR /&gt;
  cframe=graydd   /* color of area above line */&lt;BR /&gt;
  ;&lt;BR /&gt;
run;

Message was edited by: Robert Allison @ SAS</description>
      <pubDate>Wed, 18 Nov 2009 20:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17756#M373</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-11-18T20:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS GPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17757#M374</link>
      <description>It's working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!</description>
      <pubDate>Thu, 19 Nov 2009 18:04:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-GPLOT/m-p/17757#M374</guid>
      <dc:creator>tal83</dc:creator>
      <dc:date>2009-11-19T18:04:18Z</dc:date>
    </item>
  </channel>
</rss>

