<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354</link>
    <title>MATLAB Central Newsreader - Transform a plot into an image</title>
    <description>Feed for thread: Transform a plot into an image</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The 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>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 15 May 2008 22:03:30 -0400</pubDate>
      <title>Transform a plot into an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354#432376</link>
      <author>Dave</author>
      <description>Hi everyone,&lt;br&gt;
&lt;br&gt;
I would like to transform a plot into an image.&lt;br&gt;
&lt;br&gt;
i've tried:&lt;br&gt;
&lt;br&gt;
plot(x,y);&lt;br&gt;
d=getimage(gca)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
but it doesnt work&lt;br&gt;
&lt;br&gt;
THANKS!&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 15 May 2008 22:32:50 -0400</pubDate>
      <title>Re: Transform a plot into an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354#432381</link>
      <author>Nomee</author>
      <description>From Matlab Help&lt;br&gt;
A = getimage(h) returns the first image data contained in the Handle&lt;br&gt;
Graphics object h. h can be a figure, axes, or image. A is identical&lt;br&gt;
to the image CData; it contains the same values and is of the same&lt;br&gt;
class (uint8, uint16, double, or logical) as the image CData. If h is&lt;br&gt;
not an image or does not contain an image, A is empty.&lt;br&gt;
&lt;br&gt;
You might be getting A = [] which obviously means an empty matrix.&lt;br&gt;
&lt;br&gt;
Try this&lt;br&gt;
d=getimage(gcf)&lt;br&gt;
This will atleast give you handle of current figure (if it has not&lt;br&gt;
been closed).&lt;br&gt;
&lt;br&gt;
You may be able to get axis handle by defining an axis before you plot&lt;br&gt;
and then capture that axis. You have not mentioned if you want axis of&lt;br&gt;
figure so I hope gcf will do it for now.&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 00:17:13 -0400</pubDate>
      <title>Re: Transform a plot into an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354#432396</link>
      <author>ImageAnalyst</author>
      <description>On May 15, 6:03=A0pm, Dave &amp;lt;koho...@hotmail.com&amp;gt; wrote:&lt;br&gt;
&amp;gt; Hi everyone,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I would like to transform a plot into an image.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; i've tried:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; plot(x,y);&lt;br&gt;
&amp;gt; d=3Dgetimage(gca)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; but it doesnt work&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; THANKS!&lt;br&gt;
&lt;br&gt;
Try getframe()&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 10:14:02 -0400</pubDate>
      <title>Re: Transform a plot into an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354#432452</link>
      <author>aasim Azooz</author>
      <description>Dave &amp;lt;kohonen@hotmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;33278300.1210889040237.JavaMail.jakarta@nitrogen.mathforum.&lt;br&gt;
org&amp;gt;...&lt;br&gt;
&amp;gt; Hi everyone,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I would like to transform a plot into an image.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; i've tried:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; plot(x,y);&lt;br&gt;
&amp;gt; d=getimage(gca)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; but it doesnt work&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; THANKS!&lt;br&gt;
I usualy do the following&lt;br&gt;
&amp;nbsp;edit copy figure paste to microsoft power point slide save &lt;br&gt;
as jpeg or tiff .... as you like&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 10:42:41 -0400</pubDate>
      <title>Re: Transform a plot into an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354#432461</link>
      <author>Yumnam Kirani Singh</author>
      <description>From the File menu of the figure window, choose the save as option and save it as bmp, or jpeg etc in any image file format of your choice. Do not think that Matlab does not have options for saving plots as image or figure etc. Just have a little patience and try around, you will find almost all!&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 18:31:02 -0400</pubDate>
      <title>Re: Transform a plot into an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354#432571</link>
      <author>aasim Azooz</author>
      <description>Yumnam Kirani Singh &amp;lt;kirani.singh@gmail.com&amp;gt; wrote in &lt;br&gt;
message &lt;br&gt;
&amp;lt;2591859.1210934591622.JavaMail.jakarta@nitrogen.mathforum.o&lt;br&gt;
rg&amp;gt;...&lt;br&gt;
&amp;gt; From the File menu of the figure window, choose the save &lt;br&gt;
as option and save it as bmp, or jpeg etc in any image file &lt;br&gt;
format of your choice. Do not think that Matlab does not &lt;br&gt;
have options for saving plots as image or figure etc. Just &lt;br&gt;
have a little patience and try around, you will find almost &lt;br&gt;
all!&lt;br&gt;
&lt;br&gt;
Thank you for this information. This facility is not &lt;br&gt;
available in matlab6.5 which I prefer for benig faster. I &lt;br&gt;
checked it is included in R2007a which I keep for some &lt;br&gt;
special tasks. This is going to be one of them. Thank you&lt;br&gt;
Aasim Azooz&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Fri, 16 May 2008 20:27:42 -0400</pubDate>
      <title>Re: Transform a plot into an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354#432589</link>
      <author>Richard Quist</author>
      <description>aasim Azooz wrote:&lt;br&gt;
&amp;gt; Yumnam Kirani Singh &amp;lt;kirani.singh@gmail.com&amp;gt; wrote in &lt;br&gt;
&amp;gt; message &lt;br&gt;
&amp;gt; &amp;lt;2591859.1210934591622.JavaMail.jakarta@nitrogen.mathforum.o&lt;br&gt;
&amp;gt; rg&amp;gt;...&lt;br&gt;
&amp;gt;&amp;gt; From the File menu of the figure window, choose the save &lt;br&gt;
&amp;gt; as option and save it as bmp, or jpeg etc in any image file &lt;br&gt;
&amp;gt; format of your choice. Do not think that Matlab does not &lt;br&gt;
&amp;gt; have options for saving plots as image or figure etc. Just &lt;br&gt;
&amp;gt; have a little patience and try around, you will find almost &lt;br&gt;
&amp;gt; all!&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you for this information. This facility is not &lt;br&gt;
&amp;gt; available in matlab6.5 which I prefer for benig faster. I &lt;br&gt;
&amp;gt; checked it is included in R2007a which I keep for some &lt;br&gt;
&amp;gt; special tasks. This is going to be one of them. Thank you&lt;br&gt;
&amp;gt; Aasim Azooz&lt;br&gt;
&lt;br&gt;
You can use the figure window's File-&amp;gt;Save As... menu option. Change the "Save &lt;br&gt;
As Type:" dropdown selection to "all files" and then type the name of the file &lt;br&gt;
to save to in the "File name:"   field. The extension you give for the &lt;br&gt;
filename will control the kind of file created (jpg, emf, png, eps, ... )&lt;br&gt;
&lt;br&gt;
There's also a File -&amp;gt; Export  menu option on the figure window which lets you &lt;br&gt;
do the same kind of thing&lt;br&gt;
&lt;br&gt;
Also see the help for the   print   and/or   saveas   commands&lt;br&gt;
-- &lt;br&gt;
&lt;br&gt;
Richard Quist&lt;br&gt;
Software Developer&lt;br&gt;
The MathWorks, Inc.&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 17 May 2008 07:55:03 -0400</pubDate>
      <title>Re: Transform a plot into an image</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/169354#432630</link>
      <author>aasim Azooz</author>
      <description>Richard Quist &amp;lt;rquist_nospam@mathworks.com&amp;gt; wrote in &lt;br&gt;
message &amp;lt;g0kqnu$n21$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; aasim Azooz wrote:&lt;br&gt;
&amp;gt; &amp;gt; Yumnam Kirani Singh &amp;lt;kirani.singh@gmail.com&amp;gt; wrote in &lt;br&gt;
&amp;gt; &amp;gt; message &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;lt;2591859.1210934591622.JavaMail.jakarta@nitrogen.mathforum.o&lt;br&gt;
&amp;gt; &amp;gt; rg&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; From the File menu of the figure window, choose the &lt;br&gt;
save &lt;br&gt;
&amp;gt; &amp;gt; as option and save it as bmp, or jpeg etc in any image &lt;br&gt;
file &lt;br&gt;
&amp;gt; &amp;gt; format of your choice. Do not think that Matlab does &lt;br&gt;
not &lt;br&gt;
&amp;gt; &amp;gt; have options for saving plots as image or figure etc. &lt;br&gt;
Just &lt;br&gt;
&amp;gt; &amp;gt; have a little patience and try around, you will find &lt;br&gt;
almost &lt;br&gt;
&amp;gt; &amp;gt; all!&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Thank you for this information. This facility is not &lt;br&gt;
&amp;gt; &amp;gt; available in matlab6.5 which I prefer for benig faster. &lt;br&gt;
I &lt;br&gt;
&amp;gt; &amp;gt; checked it is included in R2007a which I keep for some &lt;br&gt;
&amp;gt; &amp;gt; special tasks. This is going to be one of them. Thank &lt;br&gt;
you&lt;br&gt;
&amp;gt; &amp;gt; Aasim Azooz&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You can use the figure window's File-&amp;gt;Save As... menu &lt;br&gt;
option. Change the "Save &lt;br&gt;
&amp;gt; As Type:" dropdown selection to "all files" and then type &lt;br&gt;
the name of the file &lt;br&gt;
&amp;gt; to save to in the "File name:"   field. The extension you &lt;br&gt;
give for the &lt;br&gt;
&amp;gt; filename will control the kind of file created (jpg, emf, &lt;br&gt;
png, eps, ... )&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; There's also a File -&amp;gt; Export  menu option on the figure &lt;br&gt;
window which lets you &lt;br&gt;
&amp;gt; do the same kind of thing&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Also see the help for the   print   and/or   saveas   &lt;br&gt;
commands&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Richard Quist&lt;br&gt;
&amp;gt; Software Developer&lt;br&gt;
&amp;gt; The MathWorks, Inc.&lt;br&gt;
Thanks a lot&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
