Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.mrao.cam.ac.uk/~bn204/technotes/pgplotastroph.html
Дата изменения: Mon Apr 4 13:47:52 2016
Дата индексирования: Sun Apr 10 07:23:05 2016
Кодировка: ISO8859-5

Поисковые слова: с р р с с п п р п п с с с р р р р р п п р р р п п р
Post-processing PGPLOT postscript output — Bojan Nikolic web pages (r. 329)

Post-processing PGPLOT postscript outputТЖ

The PGPLOT package can produce high quality postscript output. The output files are, however, not compressed and so can be quite large and in particular pose problems when making submission to on-line article archives such as ArXiv

The output files can usually be drastically compressed by making use of the facilities already build in to the newer versions postscript language. I’ve found that the following sequence of post-processing operations produces identical output and often much smaller files:

  • Normalisation of the original postscript figure using the “eps2eps” utility:

    eps2eps infile.eps interfile1
    
  • Compression using the encode.ps utility script (as a text file). This script converts the postscript to internally compressed postscript representation. Invoke as:

    gs -q -dLEVEL3 -dASCII --  encode.ps  interfile1 interfile2
    
  • Recreation of the bounding box using the “ps2eps” utility:

    cat interfile2 | ps2eps -f -O -B -E  > finalfile.eps
    

Above infile.eps is the postcript figure as produced by PGPLOT, interfile1 and interfile2 are intermediate files and finalfile.eps is the final compressed encapsulated postscript figure.

Command Summary:

eps2eps infile.eps interfile1
gs -q -dLEVEL3 -dASCII --  encode.ps  interfile1 interfile2
cat interfile2 | ps2eps -f -O -B -E  > finalfile.eps

Previous topic

Technical and general software-related notes

Next topic

PyHLP: Python routines for plotting built on PyX