🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #5098

Re: Help! A Simple Question...

#5098
From: Vidiot
Date: Wed, 20 Mar 1991 18:33
29 lines
1972 bytes
In article <1991Mar20.031537.22872@cec1.wustl.edu> jma7759@cec1.wustl.edu (James Michael Anderson) writes:
<
<Ok, so here's the story: I have a graphing package (PLOT2) that has
<produced a Postscript file as output.  When I print the file, it
<comes out in landscape mode and fills the length of the 11" paper.
<I want to print the graph out in portrait mode and I want it to
<be no wider than 6 1/2 inches.  My problem is that I do not read
<Postscript and I am unsure of what I have to change in order to
<get what I want!
<
<I have been able to figure out a little bit of the language.  Listed
<below is a shortened version of my file.  I know that if I change the
<"90 rotate" line to "0 rotate" and the line that reads:
<             "0 -8.5 72 mul translate"
<can be changed to:
<             "0 0 72 mul translate"
<which will cause the figure to be printed in portrait mode; however,
<its still to wide!  What else do I have to do?

The scale operation (72 1000 div dup scale) needs to be changed as well.
Try doing: 72 1000 div .619 mul dup scale

This will take 10.5 inches and scale it to 6.5 inches.  Since you didn't
include the complete PostScript, you will have to play with the .619.  Use
a larger number to make it wider, and smaller to make it narrower.
-- 
      harvard\     att!nicmad\          spool.cs.wisc.edu!astroatc!vidiot!brown
Vidiot  ucbvax!uwvax..........!astroatc!vidiot!brown
      rutgers/  decvax!nicmad/ INTERNET:vidiot!brown%astroatc@spool.cs.wisc.edu
Technical Details
Message-ID: <1516@vidiot.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!uwvax!astroatc!vidiot!brown
References: <1991Mar20.031537.22872@cec1.wustl.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!uwvax!astroatc!vidiot!brown
From: brown@vidiot.UUCP (Vidiot)
Newsgroups: comp.lang.postscript
Subject: Re: Help! A Simple Question...
Keywords: postscript, rotate, scaleing
Message-ID: <1516@vidiot.UUCP>
Date: 20 Mar 91 18:33:58 GMT
References: <1991Mar20.031537.22872@cec1.wustl.edu>
Reply-To: brown@vidiot.UUCP (Vidiot)
Distribution: na
Organization: Vidiot's Hangout
Lines: 29