<?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: Mirrored plots in GTL in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164855#M6166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great.&amp;nbsp; Thanks, Sanjay.&amp;nbsp; (At this point I'm not sure which version I prefer.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2014 18:24:44 GMT</pubDate>
    <dc:creator>jdmarino</dc:creator>
    <dc:date>2014-11-11T18:24:44Z</dc:date>
    <item>
      <title>Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164841#M6152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to do something like Sanjay's &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/files/2013/11/MirrorHistogramVert.png"&gt;vertical mirrored histograms&lt;/A&gt;, but with the overlays with 2 plots each.&amp;nbsp; No matter what I try, I can't get the x-axes to be on the same line; there is always a gap.&amp;nbsp; (See the attached pdf.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what I'm doing wrong? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Also, if you tell me how to reduce the whitespace to the right of the chart, I'd appreciate it.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the template I wrote (using a picture of my code because cut/paste does not work):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Template.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7855_Template.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 20:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164841#M6152</guid>
      <dc:creator>jdmarino</dc:creator>
      <dc:date>2014-11-10T20:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164842#M6153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try setting YAXISOPTS=(Offsetmin=0);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 21:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164842#M6153</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-10T21:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164843#M6154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added the option to each "layout overlay" statement, but it did not change the output at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 21:39:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164843#M6154</guid>
      <dc:creator>jdmarino</dc:creator>
      <dc:date>2014-11-10T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164844#M6155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please attach full code with data to produce the graph.&lt;/P&gt;&lt;P&gt;Try removing the "0" ticks in both Y axes. Sometimes the lattice needs to allow space for half the text height to avoid collision.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aside:&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could you make this using SGPLOT with negative and positive values for the needles?&amp;nbsp; Use a picture format to turn the -ive values to +ive, and maybe a Band plot to draw the blocks?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 21:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164844#M6155</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-10T21:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164845#M6156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(Still working on getting you a simplified code+data example.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does one remove a particular tick?&amp;nbsp; (I think I can figure out how to remove everything from the axis.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the aside, that is my backup plan.&amp;nbsp; Since I remembered reading your "mirrored" post, I looked it up and started there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 13:25:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164845#M6156</guid>
      <dc:creator>jdmarino</dc:creator>
      <dc:date>2014-11-11T13:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164846#M6157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attached is Sample.sas, a&amp;nbsp; self-contained example that exhibits the problem I'm hoping you can help me solve.&lt;/P&gt;&lt;P&gt;FYI, here's my configuration from the log file:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;NOTE: SAS (r) Proprietary Software 9.3 (TS1M1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;NOTE: This session is executing on the X64_7PRO&amp;nbsp; platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 13:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164846#M6157</guid>
      <dc:creator>jdmarino</dc:creator>
      <dc:date>2014-11-11T13:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164847#M6158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set the YAxisOpts=(LinearOpts=())&amp;nbsp; TickValueList or TickValueSequence option.&amp;nbsp; Remove needle baseline.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 14:18:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164847#M6158</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-11T14:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164848#M6159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can't get it working the way you want with GTL, here's a way to do it with Proc Gplot...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data timeline; set timeline;&lt;/P&gt;&lt;P&gt;ab_count=-1*ab_count;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno_top; set timeline;&lt;/P&gt;&lt;P&gt;by xy_blocked notsorted;&lt;/P&gt;&lt;P&gt;xsys='2'; ysys='2'; when='b';&lt;/P&gt;&lt;P&gt;if first.xy_blocked then do;&lt;/P&gt;&lt;P&gt; if xy_blocked='Y' then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=date; y=0; function='move'; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt;if last.xy_blocked then do;&lt;/P&gt;&lt;P&gt; if xy_blocked='Y' then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=date; y=8; function='bar'; style='solid'; color='graydd'; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno_bottom; set timeline;&lt;/P&gt;&lt;P&gt;by ab_blocked notsorted;&lt;/P&gt;&lt;P&gt;xsys='2'; ysys='2'; when='b';&lt;/P&gt;&lt;P&gt;if first.ab_blocked then do;&lt;/P&gt;&lt;P&gt; if ab_blocked='Y' then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=date; y=0; function='move'; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt;if last.ab_blocked then do;&lt;/P&gt;&lt;P&gt; if ab_blocked='Y' then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x=date; y=-8; function='bar'; style='solid'; color='graydd'; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data anno_blocked; set anno_top anno_bottom;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=none interpol=needle mode=include color=blue;&lt;/P&gt;&lt;P&gt;symbol2 value=none interpol=needle mode=include color=red;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 label=(a=90 "Y-Bottom&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Y-Top")&lt;/P&gt;&lt;P&gt; order=(-8 to 8 by 2) minor=none offset=(0,0);&lt;/P&gt;&lt;P&gt;axis2 label=none order=('01jan2012'd to '01jan2015'd by year)&lt;/P&gt;&lt;P&gt; minor=none offset=(0,0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format; picture posval low-high='000,009'; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title1 ls=1.5 "Mirrored Gplot";&lt;/P&gt;&lt;P&gt;proc gplot data=timeline anno=anno_blocked;&lt;/P&gt;&lt;P&gt;format date mmddyys10.;&lt;/P&gt;&lt;P&gt;format xy_count ab_count posval.;&lt;/P&gt;&lt;P&gt;plot xy_count*date=1 ab_count*date=2 / overlay&lt;/P&gt;&lt;P&gt; vaxis=axis1 haxis=axis2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="mirror.png" class="jive-image-thumbnail jive-image" height="488" src="https://communities.sas.com/legacyfs/online/7862_mirror.png" style="width: 651px; height: 487.526666666667px;" width="651" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 14:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164848#M6159</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-11-11T14:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164849#M6160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;YAxisOpts=(LinearOpts=()) &lt;/P&gt;&lt;P&gt;This did not help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting yaxisopts=(display=none) did get the zeros to coincide, but I need the axis and the ticks.&amp;nbsp; But I think this means you're on to something w.r.t. labels needing space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try your other suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 14:32:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164849#M6160</guid>
      <dc:creator>jdmarino</dc:creator>
      <dc:date>2014-11-11T14:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164850#M6161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&amp;nbsp; The only SAS graphing I've worked with so far is GTL, so there is much new to me in the gplot syntax.&amp;nbsp; I'm under time pressure (of course!), so your solution will have to be the backup to Sanjay's backup (of using a tricked SGPLOT rather than a lattice template).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 14:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164850#M6161</guid>
      <dc:creator>jdmarino</dc:creator>
      <dc:date>2014-11-11T14:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164851#M6162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to put a TickValueList inside the LinearOpts bundle.&amp;nbsp; See the code and result I attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 14:37:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164851#M6162</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-11T14:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164852#M6163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies; I didn't notice the attachments.&amp;nbsp; I ran SampleNew.sas and it looks good.&amp;nbsp; I'll have to detect the max y-value and use a macro to generate the list of tick labels, but that's in my wheelhouse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm glad I don't have to use the backup plan (sgplot), because I'm not finished tweaking this layout.&amp;nbsp; For example, I'm probably going to top the needles that appear in the "blocked" region with a circle (using a series plot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to get the graph to fit the width of the page in the PDF?&amp;nbsp; The PNG file doesn't have extra space to the right of the graph?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 14:47:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164852#M6163</guid>
      <dc:creator>jdmarino</dc:creator>
      <dc:date>2014-11-11T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164853#M6164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the TickValueSequence instead.&amp;nbsp; You don't need to know the exact data extent.&amp;nbsp; If you provide a sequence that exceeds the data, it will only use the part that is needed to cover the data.&amp;nbsp; You will need to determine the increment. That is why I think the SGPLOT version will be easier. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 15:09:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164853#M6164</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-11T15:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164854#M6165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the same graph with SG and code.&amp;nbsp; See attached zip file.&amp;nbsp; You just need to add the picture format to turn the negative values on the Y axis to positive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 15:47:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164854#M6165</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-11-11T15:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mirrored plots in GTL</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164855#M6166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's great.&amp;nbsp; Thanks, Sanjay.&amp;nbsp; (At this point I'm not sure which version I prefer.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2014 18:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Mirrored-plots-in-GTL/m-p/164855#M6166</guid>
      <dc:creator>jdmarino</dc:creator>
      <dc:date>2014-11-11T18:24:44Z</dc:date>
    </item>
  </channel>
</rss>

