You are not logged in.
Hi!
I'm having trouble trying to print to postscript from gnuplot. I'm having the same problem with the package from the repos and also the official source. I can set the terminal to postscript and set the output to a file name and then the file is created but when I try to print a graph to the file I don't get anything. The file is blank. This happens with postscript, postscript eps, and epslatex. I AM able to print to jpeg with no problems. I have not tried other file types but I really only need to make ps. I am able to make .eps files with kolourpaint. I wonder if there is some package I may be missing?
Thanks!
Last edited by miggy (2007-11-13 22:33:21)
Offline
I'm using gnuplot from repos. The following gives a nice .eps graph.
set terminal postscript
set output 'test.eps'
plot x**2>gnuplot --version
gnuplot 4.2 patchlevel 2
>pacman -Q gnuplot
gnuplot 4.2.2-1
Last edited by tkjacobsen (2007-11-13 17:09:45)
To save time, reboot your computer in the background using "reboot &"
Offline
It works for me too. If you are feeding a script to gnuplot, try running gnuplot interactively and look for any warnings or errors in output as you type individual commands.
gnuplot> set terminal postscript color
Terminal type set to 'postscript'
Options are 'landscape noenhanced defaultplex \
leveldefault color colortext \
dashed dashlength 1.0 linewidth 1.0 butt \
palfuncparam 2000,0.003 \
"Helvetica" 14 '
gnuplot> set output "test.eps"
gnuplot> plot xOffline
Thanks for the responses. That's what I've been doing and haven't gotten anything. Of course I tried again and nothing. All my options are identical to yours, mico. I will keep fiddling around and see if I can get anything to print.
Offline
Do you have ghostscript and/or psutils installed, I have both -- they are not dependencies of gnuplot but do both have to do with processing ps files.
To save time, reboot your computer in the background using "reboot &"
Offline
UPDATE:
tkjacobsen, yes I have both installed.
gnuplot is not the problem. I think kghostscript is. I was able to open and view the files that I made with gnuplot with kghostscript in Mandriva and the files are as they should be. From, Arch, I can preview these files (it still is blank) and print to paper and it prints fine--the graph is there. Further, I can put the files into a .dvi (through latex). With kdvi, I canNOT see the images but if I print to paper, once again, it comes out fine.
For whatever reason, I just cannot preview these files. I CAN open .eps files I've made with kolourpaint in kghostscript but those tend to be smaller (<20KB). However, I can make a tiny .ps (or .eps) from gnuplot and still not preview it.
If anyone can help out with this I will be EXTREMELY appreciative.
Thanks
Offline
Apparently i was missing gsfonts. I am no longer missing gsfonts. Life is peachy.
Peace
Offline
Apparently i was missing gsfonts. I am no longer missing gsfonts. Life is peachy.
Peace
Hello,
what printer do you use? If it is a postscript printer, it will use the built-in fonts if gsfonts aren't there. But the built-in fonts are not available to preview-applications.
Offline