The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 controlling size of exported graph
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

morrison

USA
5 Posts

Posted - 07/27/2000 :  1:41:00 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am trying to generate an EPS file that contains an image of a figure created in Origin 6.0 which I need to include in a LaTeX document. The Origin manual seems to offer several ways to make the figure smaller (I don't want something that's 8 1/2 x 11! This is for a journal article.) E.g., changing the layer size, changing the dimensions of the graph page. I would appreciate guidance from more experienced users about the optimum way to deal with this situation. (I'm also having lots of trouble creating a usable EPS file at all, so suggestions along these lines would be really welcome!). Thanks in advance! --michael

------------------
Michael A. Morrison/Department of Physics & Astronomy/University of Oklahoma/Norman, Oklahoma.

fabio

Italy
0 Posts

Posted - 07/27/2000 :  4:09:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
To get a valid eps file to use with latex check this message:

http://www.originlab.com/bulletin_board/Forum1/HTML/000546.html

Personally I'd suggest you to create a graph that fill the whole page and then do the scaling with latex: \includegraphics[width=5cm]{file.eps}

Fabio

PS Remember to remove the tiff preview

Go to Top of Page

rprozorov

14 Posts

Posted - 07/27/2000 :  4:34:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I would recommend just the opposite. Create a finished graph of normal dimensions. Then make a layout page with this graph scaled to the appropriate (e.g., 8.5 cm for Phys Rev) size. Don't use EPS export of Origin 6.0. Just print this layout page to a fake PostScript printer. (I use "Apple LaserWriter Pro 810" whose driver is provided with Win 9X). The printer should be configured to output EPS into file (do it ones when installing the printer, i.e., Properties->PostScript tab). Ones you get the EPS file, open it in GhostView and add a bounding box.
Go to Top of Page

morrison

USA
5 Posts

Posted - 07/27/2000 :  5:35:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the suggestions. I created a new layout page, as suggested. But I can't figure out how to specify the precise dimensions I want the (smaller) figure to have (e.g., height = 8.5 cm). Temporarily I just guessed at the size (Origin appears to provide a Show Grid menu option but no Show Ruler). But when I printed the (smaller) figure from the new layout page using the Apple Laser Writer Pro 810 driver, which I loaded as suggested, and incorporated it into my LaTeX file (using \includegraphics), the resulting printed page contained the figure all right but it was unreadable: lines blurred together, the axes labels could not be read, etc. How do I control the size of the (smaller) picture on the new layout page and how can I ensure that the resulting EPS file will be readable when printed? I've never run into these sorts of problems before and so really appreciate the help.

------------------
Michael A. Morrison/Department of Physics & Astronomy/University of Oklahoma/Norman, Oklahoma.

Go to Top of Page

morrison

USA
5 Posts

Posted - 07/27/2000 :  5:42:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I tried fabio's suggestion and tried the approach shown on http://www.originlab.com/bulletin_board/Forum1/HTML/000546.html.
This approach recommends using Export Page with a special setting on the Export Options. Alas, when I tried this, Ghostscript gave me the error message
---------------
Loaded Ghostscript DLL C:\GSTOOLS\gs5.50\gsdll32.dll
Aladdin Ghostscript 5.50 (1998-9-11)
Displaying DSC file C:/Current/CO2/VS/Figures/LowEICS.eps without pages
Unrecoverable error: undefined in Adobe_typography_AI3
--- Begin offending input ---

--- End offending input ---
file offset = 116766
gsdll_execute_cont returns -21
---------------
which I can't decipher. Help!

------------------
Michael A. Morrison/Department of Physics & Astronomy/University of Oklahoma/Norman, Oklahoma.

Go to Top of Page

rprozorov

14 Posts

Posted - 07/27/2000 :  5:59:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Regarding "PRINT LAYOUT PAGE METHOD"
------------------------------------
You are right about controlling the graph size on a layout page. What I do is to make the graph approximately 1/4 of a page. Then, in Latex I use:
\includegraphics[width=8.5cm,keepaspectratio=true]{yourfile.eps}
--------------------
About finial output there are a few things to check.
1. Orientation of a layout page and that specified in printer properties must be the same.
2. You must select "EPS" format in Properties->PostScript dialog of the printer properties (go to MyComputer, double-click Printers, Select "Apple Laser writer" and select File->Properties.
3. The output file will have *.PRN extention and you can open it in GhostView. You then export this image to EPS, which will prompt you to specify a bounding box.
Go to Top of Page

fabio

Italy
0 Posts

Posted - 07/28/2000 :  3:22:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Michael,
I tried again the procedure in the link I gave you (I'm the original poster) and it works with both ghostscript 5.50 and 6.0.
I suggested using the whole page so you can avoid any problem with the Bounding Box. If you can post your Origin file on the web I may try to give a look. BTW did you install any Origin patch?
Fabio

PS to make sure the setting in the export options should be:
-Use standard EPS setting
-device (this doesn't matter)
-Include AI format
-3
Everything else should be unchecked

Go to Top of Page

ru_pro

USA
14 Posts

Posted - 07/28/2000 :  9:33:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
EPS export does work (the key is to include AI format). However, it produces files 6 times larger than the printing method! Simple graph comes out about 270 kb (vs 54 kb when printing to 800 dpi resolution). With 5-6 graphs/paper it is not convenient to send >1 Mb.
Go to Top of Page

morrison

USA
5 Posts

Posted - 07/30/2000 :  3:10:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I have continued to hack this problem, using the excellent suggestions. Fabio is correct: the export option does work. The absolutely essential key, however, is to uncheck the Include TIFF Preview box on the Export Options page (rather than, say, remove the TIFF preview by hand). You can then put a TIFF preview back into the EPS file using Ghostscript so you can see the figure on the screen and when you print it (I was using PcTeX v4, but it blows up when I include EPS figures generated by origin, so I've switched to Y&Y TeX: it shows and prints the figure but screws up the font on the labels so you can barely read them. Sigh.) As ru_pro indicates, hoever, using the Export option generates a whopping big file (with preview, over 1 MByte), comared to 124Kbyte when I Print To File as rprozorov suggested. The problem with the latter method is that the quality of the (printed) EPS figure hinges on how big I make the (reduced) figure in the second layer. Since Origin doesn't provide a means to declear the size of the figure (so many cm by so many cm), it's hard to get all figures to the same quality. Moreover, the quality of the EPS figure isn't linear with size (a bigger figure isn't necessarily better). Why is it so much trouble to do this? Shouldn't something this common by easy in a sophisticated, expensive piece of software like Origin? Anyway, thanks for all the help. If anyone has any more suggestions, I'm game to try them! Cheers --- michael

------------------
Michael A. Morrison/Department of Physics & Astronomy/University of Oklahoma/Norman, Oklahoma.

Go to Top of Page

Gary Lane

USA
150 Posts

Posted - 08/03/2000 :  2:21:00 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

To make an image file in Origin 6.0 SR4 having exact proportions:
1. With your graph window active select the Format:Page menu item and then select the desired units and dimensions.
2. Select the Tools:Options menu item, the Page tab, select 100 for Ratio, Page for Margin Control, and check the Keep Size radio button.
3. Select File:Export Page and export a file of type EPS.


Other features/techniques you might want to try:
1. Adjust the Ratio and Margin Control settings mentioned above as desired (while on the Page tab in the Options dialog box press the F1 function key for context sensitive help).
2. Instead of changing the page size as described above change the layer size (Format:Layer:Size/Speed tab) and then select Tight or Border for Margin Control.
3. Add a Post Script printer driver to your Printers folder that prints to file and that supports a custom page size. Then, print to file to create the EPS file. For on-line documentation outlining this procedure select the OriginLab Knowledge Base and search on the keywords "Alternative EPS".

For an example LaTeX script containing an inserted EPS image file (generated by Origin) download the zip file LaTeX.ZIP.

I hope these additions to the fine suggestions above are helpful.

-Gary

[This message has been edited by Gary Lane (edited 08-03-2000).]

Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000