<?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: annotate: function=&amp;quot;image&amp;quot; position with pixels? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78152#M2903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps an alternative in this case would be to let Gchart create the color legend, and then annotate the colored smiley-faces below the annotated legend values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Mar 2013 12:23:06 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2013-03-15T12:23:06Z</dc:date>
    <item>
      <title>annotate: function="image" position with pixels?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78150#M2901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to annotate my hbar graph and plac an image over the graph with the help of the annotate function image. I have an image which is 544x15 pixel in width x height. My graph is 800px wide (I use goptions xpixels = 800). Now I'd like to position the image over the graph by using this pixel information. Something like: position it here: from x=10px, y=5px to x=554px, y=25px. Can I do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The problem is that xsys and ysys are either in cells or percent - I'd like to position the image under the x axis. I tried it with percent but the result doesn't look nice.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's the original image:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3198" alt="legende_g05.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3198_legende_g05.png" /&gt;&lt;/P&gt;&lt;P&gt;and that's the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3199" alt="result.gif" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/3199_result.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see there are little red dots and the smilies get worse on the right. I guess SAS tries to strech the image (which is a png) as I use xsys="3" (percent). That's why I'd prefer using pixels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's my annotate code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3202" alt="code.gif" class="jive-image" src="https://communities.sas.com/legacyfs/online/3202_code.gif" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes&lt;/P&gt;&lt;P&gt;Eva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 07:49:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78150#M2901</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-03-15T07:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: annotate: function="image" position with pixels?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78151#M2902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm ... looks like what you're doing should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps (temporarily) experiment with style='tile', and then keep making your annotated image area a little bigger and a little bigger, until you start seeing the image getting 'tiled' (more than 1 copy visible).&amp;nbsp; Then reduce the size until you no longer see the tiling.&amp;nbsp; And then switch back to style='fit'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sometimes there's a bit of round-off, and sometimes 1 pixels difference can cause the image to appear dithered or stretched (which takes some trial-and-error to get looking right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a request in to R&amp;amp;D to add the capability to just specify the center coordinate of the annotated image, and then annotate the image at actual/perfect size (without the user having to calculate the x/y extents for the annotate).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 12:20:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78151#M2902</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-03-15T12:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: annotate: function="image" position with pixels?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78152#M2903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps an alternative in this case would be to let Gchart create the color legend, and then annotate the colored smiley-faces below the annotated legend values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 12:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78152#M2903</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-03-15T12:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: annotate: function="image" position with pixels?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78153#M2904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I experiment with that - one question: does the xpixels and ypixels option in the goptions statement refer to the graph area or the data area? Maybe that's the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, pixels instead of cells/percent in the image annotate function would be great! Because you don't work with % or cells with images. Or just using the start position and let SAS do the rest (calculate the end position). I tried leaving out the x and y variables on the observation with function="image" but then SAS throws an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you do the alternative?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 10:18:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78153#M2904</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2013-03-18T10:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: annotate: function="image" position with pixels?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78154#M2905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In general, the goptions xpixels &amp;amp; ypixels applies to the total size of the output graph.&lt;/P&gt;&lt;P&gt;(you can check the size of the output graph with an image viewing/editing software to verify that)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 12:11:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/annotate-function-quot-image-quot-position-with-pixels/m-p/78154#M2905</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-03-18T12:11:14Z</dc:date>
    </item>
  </channel>
</rss>

