<?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: PROC SGPLOT axis break with different distribution/scale before and after the break in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-axis-break-with-different-distribution-scale-before/m-p/979449#M25729</link>
    <description>&lt;P&gt;As a start have a look here&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/&lt;/A&gt;&amp;nbsp;it provides a code sample that does the break of an axis "manually". You will have to use the GTL (Graph Template Language). I have taken the above example and adapted it for a broken X axis. Since you did not provide any data and what kind of plot you want I assumed something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this sample:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plotdata;
  do month = 1 to 14;
    value = rand("integer", 10, 20);
    output;
  end;
run;

/*-- manual break in axis --*/
proc template;
  define statgraph series_break;
    begingraph;
      /* the columweights determine the space available */
      layout lattice / columns=2 rowdatarange=union columnweights=(0.9 0.1) ;
        layout overlay / 
          xaxisopts=(
            griddisplay=on display=(ticks tickvalues label) 
            tickvalueattrs=(size=7)
             linearopts=(viewmin=1 viewmax=11 TICKVALUELIST=(1 2 3 4 5 6 7 8 9 10))
             offsetmax=0
          );
          seriesplot x=month y=value;
        endlayout;
        layout overlay / 
          xaxisopts=(
            griddisplay=on display=(ticks tickvalues) 
            tickvalueattrs=(size=7)
            linearopts=(viewmin=11 TICKVALUELIST=(11 12 13 14))
            offsetmin=0
          )
          yaxisopts=( display=none)
        ;
          seriesplot x=month y=value;
        endlayout;
      endlayout;
    endgraph;
  end;
run;

ods graphics / reset=all;

proc sgrender data=plotdata template=series_break;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Nov 2025 13:49:03 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2025-11-26T13:49:03Z</dc:date>
    <item>
      <title>PROC SGPLOT axis break with different distribution/scale before and after the break</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-axis-break-with-different-distribution-scale-before/m-p/979436#M25727</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is it possible to create a break in the x-axis with the range following the break at a different distribution/scale than the data prior to the break? For example, prior to the break the x-axis ranges from 0 to 11 by 1, taking up the majority of the graph space. After the break at 11, the range is from 11-16 by 1, but more condensed, only occupying the last 10% or so of the graph. (Most data to display occurs prior to x=11.) I've attached a screenshot of the desired x-axis with the break and proper distributions prior to and after the break.&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-left" image-alt="Screenshot 2025-11-24 074129.png" style="width: 906px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111530iE7571D43AD056FE9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-11-24 074129.png" alt="Screenshot 2025-11-24 074129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2025 12:53:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-axis-break-with-different-distribution-scale-before/m-p/979436#M25727</guid>
      <dc:creator>ampatella</dc:creator>
      <dc:date>2025-11-24T12:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT axis break with different distribution/scale before and after the break</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-axis-break-with-different-distribution-scale-before/m-p/979449#M25729</link>
      <description>&lt;P&gt;As a start have a look here&amp;nbsp;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/graphicallyspeaking/2012/05/31/broken-y-axis/&lt;/A&gt;&amp;nbsp;it provides a code sample that does the break of an axis "manually". You will have to use the GTL (Graph Template Language). I have taken the above example and adapted it for a broken X axis. Since you did not provide any data and what kind of plot you want I assumed something.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See this sample:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data plotdata;
  do month = 1 to 14;
    value = rand("integer", 10, 20);
    output;
  end;
run;

/*-- manual break in axis --*/
proc template;
  define statgraph series_break;
    begingraph;
      /* the columweights determine the space available */
      layout lattice / columns=2 rowdatarange=union columnweights=(0.9 0.1) ;
        layout overlay / 
          xaxisopts=(
            griddisplay=on display=(ticks tickvalues label) 
            tickvalueattrs=(size=7)
             linearopts=(viewmin=1 viewmax=11 TICKVALUELIST=(1 2 3 4 5 6 7 8 9 10))
             offsetmax=0
          );
          seriesplot x=month y=value;
        endlayout;
        layout overlay / 
          xaxisopts=(
            griddisplay=on display=(ticks tickvalues) 
            tickvalueattrs=(size=7)
            linearopts=(viewmin=11 TICKVALUELIST=(11 12 13 14))
            offsetmin=0
          )
          yaxisopts=( display=none)
        ;
          seriesplot x=month y=value;
        endlayout;
      endlayout;
    endgraph;
  end;
run;

ods graphics / reset=all;

proc sgrender data=plotdata template=series_break;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 13:49:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-axis-break-with-different-distribution-scale-before/m-p/979449#M25729</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2025-11-26T13:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SGPLOT axis break with different distribution/scale before and after the break</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-axis-break-with-different-distribution-scale-before/m-p/979501#M25733</link>
      <description>&lt;P&gt;Or using X2AXIS statement.&lt;/P&gt;
&lt;PRE&gt;data plotdata;
  do month = 1 to 14;
    if month&amp;lt;11 then month1=month;
	 else do;month1=.;month2=month;end;
    value = rand("integer", 10, 20);
    output;
  end;
run;

proc sgplot data=plotdata noautolegend;
series x=month1 y=value;
series x=month2 y=value/x2axis;
xaxis offsetmax=0.2 integer values=(1 to 10 by 1);
x2axis offsetmin=0.8;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1764064177390.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111559i327609F3A4556951/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1764064177390.png" alt="Ksharp_1-1764064177390.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Nov 2025 09:49:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-axis-break-with-different-distribution-scale-before/m-p/979501#M25733</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-11-25T09:49:53Z</dc:date>
    </item>
  </channel>
</rss>

