Postscript: Difference between revisions

From Citizendium
Jump to navigation Jump to search
imported>Dmitrii Kouznetsov
(New page: '''PostScript (PS)''' is a programming language designed for description of two-dimentional objects desigend for visual observation by humans, characterized in that, that, in order to avoi...)
 
imported>Dmitrii Kouznetsov
Line 17: Line 17:
  showpage
  showpage
  %Trailer
  %Trailer
generates the figure shown at right. More complicated example can be found at
generates the figure shown at right. In the code above, the line with sequence  "5a5a" produes the two vertical sticks at the top of the image.
<ref name="rosterSmile">Exampel of the roster image of smile made in postscript, http://www.tailrecursive.org/postscript/image.html</ref>
 
The more complicated example with description can be found at
<ref name="rosterSmile">Exampel of the roster image of smile made in postscript, http://www.tailrecursive.org/postscript/image.html</ref>.


==Use of postscript==
==Use of postscript==

Revision as of 06:23, 25 January 2009

PostScript (PS) is a programming language designed for description of two-dimentional objects desigend for visual observation by humans, characterized in that, that, in order to avoid the use of the group operation (parenthesis), the command (operator), in general, appears after the operands. PostScript is standard format for presentation of illustrations at the electronic submission of figures for the publication is the scientific journals.

Vector representation of figures

Typically, the postscript uses the analytical description of figiure with simple objects (straight lines, circles and arcs of circles and ellipses, ploigons); similar representation is used also for letters. This allows the compact description of data and the strong (sometimes, orders of magintude) zooming-in, keeping the camera-ready quality of the figure.

Roster representation of data

Example of a roster image

The bitmap representation of data is also supported, although for the roster representation, the advantages of the postscript are not so obvious. The sintax of postscript allows to generate the simple images with few lines, for example, the code

!PS-Adobe-2.0 EPSF-2.0 
%%BoundingBox: 0 0 62 122
100 100 scale
.1 .1 translate 4 4 1 [8 0 0 8 0 0] {<5a6a>}  image
.0 .6 translate 4 4 1 [8 0 0 8 0 0] {<5a5a>}  image
showpage
%Trailer

generates the figure shown at right. In the code above, the line with sequence "5a5a" produes the two vertical sticks at the top of the image.

The more complicated example with description can be found at [1].

Use of postscript

Several manuals on the postscript are available online; they allows to use the postsctipt without any preliminary learning. [2]

External sources

http://en.wikipedia.org/wiki/PostScript

References