<?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: How align the Y axis label if its very big for Graph in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778279#M22264</link>
    <description>Please show what you tried and happy to help you fix/adjust it as necessary. &lt;BR /&gt;I'm assuming you'll be using the second link with the option titled&lt;BR /&gt;"Using an annotation dataset for complete control of axis label placement"</description>
    <pubDate>Wed, 03 Nov 2021 17:25:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2021-11-03T17:25:59Z</dc:date>
    <item>
      <title>How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778260#M22261</link>
      <description>&lt;P&gt;I am&amp;nbsp; trying create the KM plot, my Y axis lable is very long,&amp;nbsp; How can I split and fit in to the lable in the graph also want to make it bold. This is the code&amp;nbsp; &amp;nbsp;I am using for Plot options&lt;/P&gt;
&lt;PRE&gt;goptions reset   = (global all) 
         device  = sasemf
         ftext   = "courier new unicode ms/unicode"
         ftitle  = "courier new unicode ms/unicode"
         xmax    = 9.0in 
         ymax    = 3.8in
         gunit   = pt;

axis1 value = (h=10pt rotate=0 angle=0)
      order = (0 to 225 by 25)
      label = (f = "courier new unicode ms/unicode" h=8pt j=c "contious days of requiremnt" j=c" " j=c" ")
      major = (h=1pt w=1)
      minor = (n=4)
;

axis2 value  = (h=10pt)
      order  = (0 to 1 by 0.1)  
      offset = (.1in)
      label  = (f = "courier new unicode ms/unicode" h=8pt a=90 /*j=c " " j=c " "*/ j=c "This is very long label I want to split and arrange horizontal")
      major  = (h=1pt w=1)
      minor  = (n=4)
;

legend1 shape    = symbol(40,6)
        mode     = reserve 
        position = (bottom center outside) 
        value    = (h=8.5)
        label    = (h=9 " " position=left j=l) 
        space    = 1
        across   = 1
        down     = 1
;

/*symbol1 i=steplj c=black  w=2 h=2 l=1;*/
symbol2 i=steplj c=black    w=2 h=2 l=1;&lt;/PRE&gt;
&lt;P&gt;the output on Y axis is like below in graph.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_1-1635958253129.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65359iBBEC141FCDDF5EA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SASuserlot_1-1635958253129.png" alt="SASuserlot_1-1635958253129.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Sas Log giving the warning about the enough space;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;WARNING: Not enough space for the label "Failure". Variable name is used.&lt;/P&gt;
&lt;P&gt;NOTE: There were 78 observations read from the data set WORK.lg.&lt;BR /&gt;NOTE: There were 59 observations read from the data set WORK.lg.&lt;BR /&gt;NOTE: PROCEDURE GPLOT used (Total process time):&lt;BR /&gt;real time 0.12 seconds&lt;BR /&gt;cpu time 0.06 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 16:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778260#M22261</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-11-03T16:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778266#M22262</link>
      <description>Don't use SAS/GRAPH, use SGPLOT and the XAXIS/YAXIS statements instead. Better quality graphics for starters for sure and more control. &lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-procedure/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2018/02/19/survival-plot-twist-using-sgplot-procedure/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Within SGPLOT here are two methods to split an axis label. I think the Annotate option will work is SAS/GRAPH if you need to stick with that for some reason.&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/code/generating-multiline-axis-labels-in-sas-proc-sgplot/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/code/generating-multiline-axis-labels-in-sas-proc-sgplot/&lt;/A&gt;</description>
      <pubDate>Wed, 03 Nov 2021 17:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778266#M22262</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-03T17:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778275#M22263</link>
      <description>&lt;P&gt;Thank you for the response. Its adhoc work , so I was sticking to the existed code of using annote . I tried the link but I am not able to get the ans. can you please provide an example if possible. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 17:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778275#M22263</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-11-03T17:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778279#M22264</link>
      <description>Please show what you tried and happy to help you fix/adjust it as necessary. &lt;BR /&gt;I'm assuming you'll be using the second link with the option titled&lt;BR /&gt;"Using an annotation dataset for complete control of axis label placement"</description>
      <pubDate>Wed, 03 Nov 2021 17:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778279#M22264</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-03T17:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778280#M22265</link>
      <description>&lt;P&gt;In the axis2 for order value make it (0 to 0.5(uptill where you want the value to display) by 0.1). This should help you.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 17:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778280#M22265</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2021-11-03T17:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778297#M22267</link>
      <description>&lt;P&gt;That just reduced the y axis length to 0.5 instead of 1 ( which is bigger the length than 0.5 option). I tried to increase by 0.05 but that did not help.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 17:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778297#M22267</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-11-03T17:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778312#M22270</link>
      <description>&lt;P&gt;Is this what you are looking for? The Split= option uses the specified character to split the text.&lt;/P&gt;
&lt;PRE&gt;      label  = (f = "courier new unicode ms/unicode" h=8pt a=90 j=c 
       split='/'
       "This is very long /label I want to split /and arrange horizontal")
&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Nov 2021 18:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778312#M22270</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-03T18:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778317#M22272</link>
      <description>My bad I thought it was for axis. Just confirmed you asked for label.</description>
      <pubDate>Wed, 03 Nov 2021 19:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778317#M22272</guid>
      <dc:creator>RAVI2000</dc:creator>
      <dc:date>2021-11-03T19:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778341#M22273</link>
      <description>It worked Thank you. Can you also what option need to use for making font bold?</description>
      <pubDate>Wed, 03 Nov 2021 21:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778341#M22273</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2021-11-03T21:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How align the Y axis label if its very big for Graph</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778348#M22274</link>
      <description>&lt;P&gt;With the older SAS Graph Axis statement fonts are sometimes a bit tricky. If a font has a BOLD version it may be addressed by adding the Bold option in the Font settings&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Possibly:&lt;/P&gt;
&lt;PRE&gt; label  = (f = "courier new unicode ms/unicode bold" h=8pt a=90 j=c 
       split='/'
       "This is very long /label I want to split /and arrange horizontal")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;or possibly&lt;/P&gt;
&lt;PRE&gt; label  = (f = "courier new unicode ms/unicode/bold" h=8pt a=90 j=c 
       split='/'
       "This is very long /label I want to split /and arrange horizontal")&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Unicode is way newer than my experience with SAS/Graph and the various statements like Axis so I am not sure how well it fits in with the old syntax. Some fonts had specific font names like "Arial Bold" (not sure it that was legit but the font name was required to use the bold versions of some. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also seem to recall dealing with some issues about font families versus actual font names that cropped up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 21:51:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-align-the-Y-axis-label-if-its-very-big-for-Graph/m-p/778348#M22274</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-11-03T21:51:13Z</dc:date>
    </item>
  </channel>
</rss>

