I have some problems by using the compression tool on with pm3d generated maps:
awk -f pm3dConvertToImage.awk <thefile.ps >smallerfile.ps
It works fine on for example 2 maps on a multiplot, but it breaks down for my 9 maps. The other tool:
awk -f pm3dCompress.awk thefile.ps >smallerfile.ps
doesn't wont to work on any graphs that I made by now. Can somebody suggest what should I do, but not changing the number of pictures.
The GNU Awk 3.1.0 finishes the work with no problem. But when I open the pic. with gv the gs reports (by using pm3dCompress writes out):
#################################################
Error: /nocurrentpoint in --rlineto--
Operand stack:
-19 0 0 13 19 0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1036/1476(ro)(G)-- --dict:0/20(G)-- --dict:84/200(L)-- --dict:145/256(L)--
Current allocation mode is local
GNU Ghostscript 6.51: Unrecoverable error, exit code 1
Error: PostScript interpreter failed in main window.
#################################################
(by using pm3dCompressToImage it writes out)
Error: /undefined in 2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A
Operand stack:
I found out that "pm3dImage" in eps has some lines to long for gs (max. length 255). Then when I repair that lines I get to many lines in stack of "pm3dImage". If somebody has an automatic solution I would appreciate. Now I edit this eps/ps files by hand and it isn't much fun.
I need this solution as fast as possible.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have some problems by using the compression tool on with pm3d generated maps:
awk -f pm3dConvertToImage.awk <thefile.ps >smallerfile.ps
It works fine on for example 2 maps on a multiplot, but it breaks down for my 9 maps. The other tool:
awk -f pm3dCompress.awk thefile.ps >smallerfile.ps
doesn't wont to work on any graphs that I made by now. Can somebody suggest what should I do, but not changing the number of pictures.
The GNU Awk 3.1.0 finishes the work with no problem. But when I open the pic. with gv the gs reports (by using pm3dCompress writes out):
#################################################
Error: /nocurrentpoint in --rlineto--
Operand stack:
-19 0 0 13 19 0
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1036/1476(ro)(G)-- --dict:0/20(G)-- --dict:84/200(L)-- --dict:145/256(L)--
Current allocation mode is local
GNU Ghostscript 6.51: Unrecoverable error, exit code 1
Error: PostScript interpreter failed in main window.
#################################################
(by using pm3dCompressToImage it writes out)
Error: /undefined in 2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1036/1476(ro)(G)-- --dict:0/20(G)-- --dict:84/200(L)-- --dict:144/256(L)--
Current allocation mode is local
GNU Ghostscript 6.51: Unrecoverable error, exit code 1
#################################################
This compession utility is really a big plus for gnuplot in comparison to other plot programs.
Thanks for any help.
I found out that "pm3dImage" in eps has some lines to long for gs (max. length 255). Then when I repair that lines I get to many lines in stack of "pm3dImage". If somebody has an automatic solution I would appreciate. Now I edit this eps/ps files by hand and it isn't much fun.
I need this solution as fast as possible.
in the file
pm3dConvertToImage.awk
insert at the line 96: row[1]=""
Please try to be more specific about that patch. If possible, submit it as a context diff output to the "patches" page here at SourceForge.