You are not logged in.

#1 2007-11-13 00:46:09

miggy
Member
From: MT
Registered: 2007-11-05
Posts: 67

gnuplot postscript / ghostscript (solved)

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

#2 2007-11-13 10:55:38

tkjacobsen
Member
From: Denmark
Registered: 2007-07-07
Posts: 29

Re: gnuplot postscript / ghostscript (solved)

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

#3 2007-11-13 11:59:53

mico
Member
From: Slovenia
Registered: 2004-02-08
Posts: 250

Re: gnuplot postscript / ghostscript (solved)

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 x

Offline

#4 2007-11-13 14:11:21

miggy
Member
From: MT
Registered: 2007-11-05
Posts: 67

Re: gnuplot postscript / ghostscript (solved)

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

#5 2007-11-13 17:07:16

tkjacobsen
Member
From: Denmark
Registered: 2007-07-07
Posts: 29

Re: gnuplot postscript / ghostscript (solved)

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

#6 2007-11-13 18:24:10

miggy
Member
From: MT
Registered: 2007-11-05
Posts: 67

Re: gnuplot postscript / ghostscript (solved)

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

#7 2007-11-13 22:33:02

miggy
Member
From: MT
Registered: 2007-11-05
Posts: 67

Re: gnuplot postscript / ghostscript (solved)

Apparently i was missing gsfonts.  I am no longer missing gsfonts.  Life is peachy.

Peace

Offline

#8 2007-11-15 09:17:37

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: gnuplot postscript / ghostscript (solved)

miggy wrote:

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

Board footer

Powered by FluxBB