<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239036</link>
    <title>MATLAB Central Newsreader - Can I use a JPEG as background to Matlab plot ?</title>
    <description>Feed for thread: Can I use a JPEG as background to Matlab plot ?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 11 Nov 2008 09:21:02 -0500</pubDate>
      <title>Can I use a JPEG as background to Matlab plot ?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239036#610236</link>
      <author>Claus </author>
      <description>Dear experts,&lt;br&gt;
&lt;br&gt;
can you tell me if I can use an image as background to a Matlab plot? How?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
Claus</description>
    </item>
    <item>
      <pubDate>Tue, 11 Nov 2008 10:03:33 -0500</pubDate>
      <title>Re: Can I use a JPEG as background to Matlab plot ?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239036#610243</link>
      <author>Rune Allnor</author>
      <description>On 11 Nov, 10:21, &quot;Claus &quot; &amp;lt;il_consigli...@excite.com&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; can you tell me if I can use an image as background to a Matlab plot? How?&lt;br&gt;
&lt;br&gt;
It *can* be done, but it can be very cumbersome, depending&lt;br&gt;
on what you want to do. To demonstrate:&lt;br&gt;
&lt;br&gt;
load clown    % Stand-in for your JPEG&lt;br&gt;
imagesc(X)    % Stand-in for your JPEG&lt;br&gt;
colormap(map) % Specific for the clown example&lt;br&gt;
&lt;br&gt;
hold on;      % Prepare to plot on top of the image&lt;br&gt;
plot([100 200],[50,150],'g','linewidth',3)  % plot a line&lt;br&gt;
&lt;br&gt;
Now, try and see what happens if you want to change the&lt;br&gt;
AXIS settings:&lt;br&gt;
&lt;br&gt;
axis([1 500 1 1000])&lt;br&gt;
&lt;br&gt;
Both the image and the line is still there, but the image&lt;br&gt;
is distorted. It is up to you to implement all the stuff&lt;br&gt;
that is necessary to handle the image, preserve the scales&lt;br&gt;
and so on.&lt;br&gt;
&lt;br&gt;
Rune</description>
    </item>
    <item>
      <pubDate>Tue, 11 Nov 2008 13:55:19 -0500</pubDate>
      <title>Re: Can I use a JPEG as background to Matlab plot ?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/239036#610277</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Claus &quot; &amp;lt;il_consigliere@excite.com&amp;gt; wrote in message &lt;br&gt;
news:gfbipu$c3e$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Dear experts,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; can you tell me if I can use an image as background to a Matlab plot? How?&lt;br&gt;
&lt;br&gt;
It depends on what exactly you mean by &quot;background to a MATLAB plot&quot; -- if &lt;br&gt;
you don't need the image on the same axes as the plot, read through this &lt;br&gt;
document on the support website:&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/support/solutions/data/1-19J7T.html&quot;&gt;http://www.mathworks.com/support/solutions/data/1-19J7T.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
If you do need it on the same axes as the plot, see Rune's message.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
  </channel>
</rss>

