<?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: Problem with axis in gplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404754#M13827</link>
    <description>&lt;P&gt;Move to sgplot, it is far simpler to any type of graph with the modern graphing setup, for instance:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0wvmd88sz151ln1i1vx8l72b73c.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0wvmd88sz151ln1i1vx8l72b73c.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2017 12:00:27 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-10-17T12:00:27Z</dc:date>
    <item>
      <title>Problem with axis in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404745#M13825</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doing a simple plot with proc GPLOT y have two values in vertical axis (left and right).&lt;/P&gt;
&lt;P&gt;When I show the graph I don't have the same top value in both axis, is possible to set the same top for boh axis,&lt;/P&gt;
&lt;P&gt;for example, range 200 to 1200 for axis1 and axis2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GPLOT DATA = predic3;
PLOT val_real * date /
VAXIS=AXIS1
HAXIS=AXIS2
FRAME LEGEND=real;
PLOT2 val_pre * date = 2 /
VAXIS=AXIS3
OVERLAY LEGEND=previsto ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and my plot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ejes.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15933i324C607AD95F31D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="ejes.png" alt="ejes.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any advice will be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 11:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404745#M13825</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2017-10-17T11:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with axis in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404754#M13827</link>
      <description>&lt;P&gt;Move to sgplot, it is far simpler to any type of graph with the modern graphing setup, for instance:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0wvmd88sz151ln1i1vx8l72b73c.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=p0wvmd88sz151ln1i1vx8l72b73c.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 12:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404754#M13827</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-17T12:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with axis in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404817#M13829</link>
      <description>&lt;P&gt;If you are going to reference AXIS statements then you should show the code for the axis statements used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am going to guess that one or both do not have Order sections to control the tick mark values&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 14:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404817#M13829</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-17T14:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with axis in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404979#M13831</link>
      <description>&lt;P&gt;This is my code. Thanks for your help:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SORT
	DATA=WORK.PREDIC3(KEEP=DATE val_real val_pre)
	OUT=WORK.SORTTempTableSorted
	;
	BY DATE;
RUN;
SYMBOL1
	INTERPOL=JOIN
	HEIGHT=10pt
	VALUE=NONE
	LINE=1
	WIDTH=2

	CV = _STYLE_
;
SYMBOL2
	INTERPOL=JOIN
	HEIGHT=10pt
	VALUE=NONE
	LINE=1
	WIDTH=2

	CV = _STYLE_
;
Legend1
	FRAME
	;
Axis1
	STYLE=1
	WIDTH=1
	MINOR=NONE


;
Axis2
	STYLE=1
	WIDTH=1
	MINOR=NONE


;
Axis3
	STYLE=1
	WIDTH=1
	MINOR=NONE


;
TITLE;
TITLE1 "Gráfico de línea";
FOOTNOTE;
FOOTNOTE1 "Generado por el Sistema SAS (&amp;amp;_SASSERVERNAME, &amp;amp;SYSSCPL) el %TRIM(%QSYSFUNC(DATE(), NLDATE20.)) a las %TRIM(%SYSFUNC(TIME(), TIMEAMPM12.))";
PROC GPLOT DATA = WORK.SORTTempTableSorted
;
PLOT val_real * DATE  /
 	VAXIS=AXIS1

	HAXIS=AXIS2

FRAME	LEGEND=LEGEND1
;
PLOT2 val_pre * DATE  = 2 /
 
 	VAXIS=AXIS3

OVERLAY 
 	LEGEND=LEGEND1
 
 ;
/* -------------------------------------------------------------------
   Fin de código de la tarea
   ------------------------------------------------------------------- */
RUN; QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Oct 2017 19:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/404979#M13831</guid>
      <dc:creator>juanvg1972</dc:creator>
      <dc:date>2017-10-17T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with axis in gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/405174#M13846</link>
      <description>&lt;P&gt;add the following to both axis statements ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;order=(200 to 1200 by 200)&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 12:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Problem-with-axis-in-gplot/m-p/405174#M13846</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2017-10-18T12:09:57Z</dc:date>
    </item>
  </channel>
</rss>

