Re: Matlab eps files display problem
Thank you Uwe and Mukhtar for your respones. Lately I have been suggested to use the tool convert of ImageMagick after saving the Matlab figure to solve this issue...and it works! For everyone who has the same problem, here is little peace of matlab code to do the job (assuming Linux and ImageMagick is installed) - feel free to use it. e.g. save_valid_eps(gcf,'my_figure') saves the current figure to my_figure.eps function [] = save_valid_eps(handle,name) % saves the figure (gcf) in a valid eps format % using convert from ImageMagick % % input:handlefigure handle (e.g. gcf) % name name of the file (maybe including the whole pathname) % % NOTE: ImageMagick is needed! (using convert % save figure first in a temporary file % psc2 - colored eps saveas(handle,['TEMPORARY_',name,'.eps'],'psc2'); % convert it with convert from ImageMagick unix(['convert TEMPORARY_',name,'.eps ',name,'.eps']) % remove temporary eps file unix(['rm -f TEMPORARY_',name,'.eps']); cheers, Helmut Hauser Helmut wrote: I have a problem with eps files produced with Matlab 7.4 (export figures to eps) (Note: With the older versions of Matlab this did not occur) The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. I guess the problem is in the matlab eps export (so no lyx problem), but maybe someone has stumbled over this problem and knows a solution. thanks, Helmut -- Helmut Hauser Institute for Theoretical Computer Sciences Technische Universitaet Graz Inffeldgasse 16b, I A-8010 Graz, Austria --- helmut.hau...@igi.tugraz.at Tel: + 43 316 873-5821 Fax: + 43 316 873-5805 http://www.igi.TUGraz.at/helmut/
Re: Matlab eps files display problem
Thank you Uwe and Mukhtar for your respones. Lately I have been suggested to use the tool convert of ImageMagick after saving the Matlab figure to solve this issue...and it works! For everyone who has the same problem, here is little peace of matlab code to do the job (assuming Linux and ImageMagick is installed) - feel free to use it. e.g. save_valid_eps(gcf,'my_figure') saves the current figure to my_figure.eps function [] = save_valid_eps(handle,name) % saves the figure (gcf) in a valid eps format % using convert from ImageMagick % % input:handlefigure handle (e.g. gcf) % name name of the file (maybe including the whole pathname) % % NOTE: ImageMagick is needed! (using convert % save figure first in a temporary file % psc2 - colored eps saveas(handle,['TEMPORARY_',name,'.eps'],'psc2'); % convert it with convert from ImageMagick unix(['convert TEMPORARY_',name,'.eps ',name,'.eps']) % remove temporary eps file unix(['rm -f TEMPORARY_',name,'.eps']); cheers, Helmut Hauser Helmut wrote: I have a problem with eps files produced with Matlab 7.4 (export figures to eps) (Note: With the older versions of Matlab this did not occur) The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. I guess the problem is in the matlab eps export (so no lyx problem), but maybe someone has stumbled over this problem and knows a solution. thanks, Helmut -- Helmut Hauser Institute for Theoretical Computer Sciences Technische Universitaet Graz Inffeldgasse 16b, I A-8010 Graz, Austria --- helmut.hau...@igi.tugraz.at Tel: + 43 316 873-5821 Fax: + 43 316 873-5805 http://www.igi.TUGraz.at/helmut/
Re: Matlab eps files display problem
Thank you Uwe and Mukhtar for your respones. Lately I have been suggested to use the tool "convert" of ImageMagick after saving the Matlab figure to solve this issue...and it works! For everyone who has the same problem, here is little peace of matlab code to do the job (assuming Linux and ImageMagick is installed) - feel free to use it. e.g. save_valid_eps(gcf,'my_figure') saves the current figure to my_figure.eps function [] = save_valid_eps(handle,name) % saves the figure (gcf) in a valid eps format % using "convert" from ImageMagick % % input:handlefigure handle (e.g. gcf) % name name of the file (maybe including the whole pathname) % % NOTE: ImageMagick is needed! (using convert % save figure first in a temporary file % psc2 -> colored eps saveas(handle,['TEMPORARY_',name,'.eps'],'psc2'); % convert it with convert from ImageMagick unix(['convert TEMPORARY_',name,'.eps ',name,'.eps']) % remove temporary eps file unix(['rm -f TEMPORARY_',name,'.eps']); cheers, Helmut Hauser Helmut wrote: I have a problem with eps files produced with Matlab 7.4 (export figures to eps) (Note: With the older versions of Matlab this did not occur) The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. I guess the problem is in the matlab eps export (so no lyx problem), but maybe someone has stumbled over this problem and knows a solution. thanks, Helmut -- Helmut Hauser Institute for Theoretical Computer Sciences Technische Universitaet Graz Inffeldgasse 16b, I A-8010 Graz, Austria --- helmut.hau...@igi.tugraz.at Tel: + 43 316 873-5821 Fax: + 43 316 873-5805 http://www.igi.TUGraz.at/helmut/
Matlab eps files display problem
I have a problem with eps files produced with Matlab 7.4 (export figures to eps) (Note: With the older versions of Matlab this did not occur) The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. I guess the problem is in the matlab eps export (so no lyx problem), but maybe someone has stumbled over this problem and knows a solution. thanks, Helmut -- Helmut Hauser Institute for Theoretical Computer Sciences Technische Universitaet Graz Inffeldgasse 16b, I A-8010 Graz, Austria --- [EMAIL PROTECTED] Tel: + 43 316 873-5821 Fax: + 43 316 873-5805 http://www.igi.TUGraz.at/helmut/
Re: Matlab eps files display problem
Hauser Helmut schrieb: The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. You might try if it works when you use the latest version of Ghostscript and Imagemagick installed. (adopt the LyX pth settings when you have done the upgrade) But I think it's a bug in Mathlab. regards Uwe
Re: Matlab eps files display problem
Uwe Stöhr [EMAIL PROTECTED] writes: Hauser Helmut schrieb: The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. You might try if it works when you use the latest version of Ghostscript and Imagemagick installed. (adopt the LyX pth settings when you have done the upgrade) But I think it's a bug in Mathlab. regards Uwe This is what works for me: Set both 'position' and 'papersize' properties to your intended size and set 'paperpositionmode' to auto. (Do not try the usual way of setting the 'paperposition' property manually). Then your final eps figure is already of the correct size (no need of worrying about bounding box). Mukhtar
Matlab eps files display problem
I have a problem with eps files produced with Matlab 7.4 (export figures to eps) (Note: With the older versions of Matlab this did not occur) The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. I guess the problem is in the matlab eps export (so no lyx problem), but maybe someone has stumbled over this problem and knows a solution. thanks, Helmut -- Helmut Hauser Institute for Theoretical Computer Sciences Technische Universitaet Graz Inffeldgasse 16b, I A-8010 Graz, Austria --- [EMAIL PROTECTED] Tel: + 43 316 873-5821 Fax: + 43 316 873-5805 http://www.igi.TUGraz.at/helmut/
Re: Matlab eps files display problem
Hauser Helmut schrieb: The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. You might try if it works when you use the latest version of Ghostscript and Imagemagick installed. (adopt the LyX pth settings when you have done the upgrade) But I think it's a bug in Mathlab. regards Uwe
Re: Matlab eps files display problem
Uwe Stöhr [EMAIL PROTECTED] writes: Hauser Helmut schrieb: The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. You might try if it works when you use the latest version of Ghostscript and Imagemagick installed. (adopt the LyX pth settings when you have done the upgrade) But I think it's a bug in Mathlab. regards Uwe This is what works for me: Set both 'position' and 'papersize' properties to your intended size and set 'paperpositionmode' to auto. (Do not try the usual way of setting the 'paperposition' property manually). Then your final eps figure is already of the correct size (no need of worrying about bounding box). Mukhtar
Matlab eps files display problem
I have a problem with eps files produced with Matlab 7.4 (export figures to eps) (Note: With the older versions of Matlab this did not occur) The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. I guess the problem is in the matlab eps export (so no lyx problem), but maybe someone has stumbled over this problem and knows a solution. thanks, Helmut -- Helmut Hauser Institute for Theoretical Computer Sciences Technische Universitaet Graz Inffeldgasse 16b, I A-8010 Graz, Austria --- [EMAIL PROTECTED] Tel: + 43 316 873-5821 Fax: + 43 316 873-5805 http://www.igi.TUGraz.at/helmut/
Re: Matlab eps files display problem
Hauser Helmut schrieb: The problem is that it is not displayed properly on the lyx screen. It looks somehow distorted and only in black and white. Interestingly in the final ps or pdf file it looks correctly. You might try if it works when you use the latest version of Ghostscript and Imagemagick installed. (adopt the LyX pth settings when you have done the upgrade) But I think it's a bug in Mathlab. regards Uwe
Re: Matlab eps files display problem
Uwe Stöhr <[EMAIL PROTECTED]> writes: > > Hauser Helmut schrieb: > > > The problem is that it is not displayed properly on the lyx screen. It > > looks somehow distorted and only in black and white. Interestingly in > > the final ps or pdf file it looks correctly. > > You might try if it works when you use the latest version of Ghostscript and Imagemagick installed. > (adopt the LyX pth settings when you have done the upgrade) > But I think it's a bug in Mathlab. > > regards Uwe > > This is what works for me: Set both 'position' and 'papersize' properties to your intended size and set 'paperpositionmode' to auto. (Do not try the usual way of setting the 'paperposition' property manually). Then your final eps figure is already of the correct size (no need of worrying about bounding box). Mukhtar