there is another, non-dx way to do the same thing.

Open the .eps file in your favorite text editor. One of the first few
lines is something like 
%BoundingBox llx lly urx ury
where llx and lly are coordinates of the lower left corner and urx and ury
are coordinates of the upper right corner of the graphics space.  A
postscript
viewer, e.g. ghostview, will display the graphics on your screen and
provide a cursor showing the current coordinates.  Move the cursor to the
lower left corner and record the coordinates, same with the upper
right.  Now edit the BoundingBox line with these new coordinates and save
it.  when you open the new file with ghostview the large boundary should
be gone.

One note-  occasionally this method overwrites the other text in the final
postscript version generated by dvips.

-Randy


On Fri, 20 Apr 2001, Hans Fangohr wrote:

> Hi All,
> 
> thanks everybody for your help so far. While the dx-concept appears to be
> quite powerful, it is also hard to get used to it in the beginning. Your
> support is greatly appreciated.
> 
> Here is my latest problem (I tried around for quite some time now, and
> couldn't find the answer):
> 
> I import scalar data on a 2d grid like this:
> 
> Import->Reduce->RubberSheet->Render->WriteImage
>                                   
> WriteImage writes an .eps file (although the file format doesn't matter I
> guess).
> 
> The problem is that in the written file (also when I display the ouput
> from Render using Display) there is a big unused border around the plot. I
> want to use the plot in a LaTeX document, so I would like to have the
> eps-file containing only the plot, but not the big border.
> 
> How can I scale the plot or choose its rendering position such that it
> appears bigger in the Display window and the saved file? In other words
> how to a get rid of the unused border?
> 
> Many thanks in advance,
> 
> Hans
> 
> 

Reply via email to