巨大なpstricksグラフの最大メモリを超えました

巨大なpstricksグラフの最大メモリを超えました

LaTeX、DVIPS、GS を使用して PDF レポートを生成する非常に古いレポート システムを更新する必要があります。

古いサーバーには以下がインストールされています。

pdftex --version
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.44; using libpng 1.2.44
Compiled with zlib 1.2.3.4; using zlib 1.2.3.4
Compiled with poppler version 0.12.4

新しいシステムについて:

pdftex --version
pdfTeX 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian)
kpathsea version 6.2.2
Copyright 2016 Han The Thanh (pdfTeX) et al.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Han The Thanh (pdfTeX) et al.
Compiled with libpng 1.6.28; using libpng 1.6.28
Compiled with zlib 1.2.8; using zlib 1.2.8
Compiled with poppler version 0.48.0

大量のデータポイントを含む年間レポートを除いて、すべて正常に動作しています。

古いサーバーで .tex ファイルをチェックしたところ、正常にコンパイルされています。新しいサーバーではメモリが不足しています。

TeX capacity exceeded, sorry [main memory size=17000000]

他の投稿ではデータポイントの数を減らすことを推奨していることは承知していますが、残念ながら現時点では選択肢がありません。

ソースはここにあります:https://www.dropbox.com/s/jm3hyir9qc4t6jv/long_graph.tex?dl=0

御時間ありがとうございます!

答え1

この例はグラフィック プログラムからのエクスポートのように見えますが、多かれ少なかれゴミです。たとえば、 の多くは連続プロットを示しています。最後の座標が次の の最初の座標である\psline[linecolor=orange,...](..,...)(...,...)単一のマクロを使用するのはまったく意味がありません。これは、コード内の 6 行でも同様です。 \psline\psline

\psline[linewidth=0.5pt, linecolor=orange] 
       (0.0,70.875)(0.044398907104,69.75)(0.088797814207,68.875)(0.133196721312,68.75)(0.177595628415,68.375)
       (0.221994535518,68.75)(0.266393442624,72.125)

ただし、スクリプト言語を使用して、同じ色のすべての線の座標を抽出し、単純な\fileplotまたは\listplot

関連情報