updated print.m

Ben Abbott bpabbott at mac.com
Mon Apr 20 17:53:45 CDT 2009


On Apr 20, 2009, at 6:22 PM, Michael D. Godfrey wrote:

>>
>> I've not used gs except for simple tasks.
> Ghostscript is the most established and widely used system.  It dates
> from the beginning of PostScript.  The fact that it correctly renders
> the example Figures in the Manual suggests that it will work OK.
> I have used it with Octave for many years. Windows versions are
> available from SourceForge, for example.  As I mentioned a while
> ago, I tried it in print.m and it worked on some example plots.
>
> So, my vote is to use Ghostscript unless someone finds a problem.

Michael (others), as you have some experience with gs, can you tell me  
if it is possible for gs to use the bounding box to crop the image.  
Thus producing a bitmap whose size is that of the bounding box?

For example. if I have an eps-file whose bounding box is 6.4x4.8  
inches, and the resolution is set to 100, how do I ensure I get a  
640x480 bitmap?

The reason I ask is that gnuplot includes an extra 50pt border around  
the image. Thus a 6.4x4.8 inch bounding box implies a 7.0944x5.4944  
inch page ... and when I've tried using gs in the past, I get a bitmap  
that corresponds to canvas size (not the size of the bounding box).

What would also be great is to use gs to post-process ps files to crop  
the canvas to the size of the bounding box as well.

Thoughts, ideas?

Ben



More information about the Octave-maintainers mailing list