title: Display transparent image on axes (MATLAB)
body: <p>So I have this transparent image (<a href="http://imgur.com/fyqslAx" rel="nofollow">http://imgur.com/fyqslAx</a>) that I want to display on an axes in MATLAB with its transperancy. To do this, I used the code below, which works with other transparent png images that I have:</p>
  
  <pre><code>[A, map, alpha] = imread('fyqslAx.png');
  h = imshow(A, map)
  set(h, 'AlphaData', alpha);
  </code></pre>
  
  <p>This code however, does not seem to work with the image above. Im guessing this is because it has something to do with the image being grayscale and having a bitdepth of 1, resulting in the map and alpha having nothing in it (whereas the other png transparent images I have, have something in map and alpha). If I just use this: </p>
  
  <pre><code>A = imread('fyqslAx.png');
  h = imshow(A)
  </code></pre>
  
  <p>A black background appears where the image should be transparent. </p>
  
  <p>How do I display this <a href="http://imgur.com/fyqslAx" rel="nofollow">http://imgur.com/fyqslAx</a> with its transperancy on an axes?</p>
  
  <p>EDIT: horchler's method worked; Thanks!!</p>