Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2278 > unrolled thread
| Started by | Dieter Britz <dieterhansbritz@gmail.com> |
|---|---|
| First post | 2014-01-30 13:38 +0000 |
| Last post | 2014-01-30 13:00 -0600 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Problem with eps --> pdf Dieter Britz <dieterhansbritz@gmail.com> - 2014-01-30 13:38 +0000
Re: Problem with eps --> pdf Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2014-01-30 19:35 +0100
Re: Problem with eps --> pdf Dieter Britz <dieterhansbritz@gmail.com> - 2014-01-31 09:23 +0000
Re: Problem with eps --> pdf Dan Luecking <LookInSig@uark.edu> - 2014-01-30 13:00 -0600
| From | Dieter Britz <dieterhansbritz@gmail.com> |
|---|---|
| Date | 2014-01-30 13:38 +0000 |
| Subject | Problem with eps --> pdf |
| Message-ID | <lcdkl5$k5g$1@dont-email.me> |
I am not sure whether this is a Linux or a gnuplot
problem.
I am plotting three figures into one file, first
into an eps file, which I then convert into pdfd
using the Linux command epstopdf. The eps comes out
fine, looked at with ghostview gv. The pdf conversion,
is also fine on the first page but the 2nd end 3rd are
cropped at the top and right hand side. Here is the
script:
gnuplot << eoi
set term postscript eps enh 24
set output 'blockABE.eps'
unset key
set xlabel "X"
set ylabel 'Conc.'
set xrange [-60:60]
set title 'Block-ABE, [K+], [Cl-], dT = 0.01, T = 1, 10, 100'
plot 'blABE1.dat' using 1:2 w l lt 1, \
'blABE1.dat' using 1:3 w l lt 1, \
'blABE10.dat' using 1:2 w l lt 1, \
'blABE10.dat' using 1:3 w l lt 1, \
'blABE100.dat' using 1:2 w l lt 1, \
'blABE100.dat' using 1:3 w l lt 1
set title 'Potential'
set ylabel '{/Symbol y}'
plot 'blABE1.dat' using 1:5 w l lt 1, \
'blABE10.dat' using 1:5 w l lt 1, \
'blABE100.dat' using 1:5 w l lt 1
set title "Potential field"
set yrange [-0.006:0]
set ylabel '{/Symbol Dy}'
plot 'blABE1.dat' using 1:4 w l lt 1, \
'blABE10.dat' using 1:4 w l lt 1, \
'blABE100.dat' using 1:4 w l lt 1
quit
eoi
epstopdf blockABE.eps
kpdf blockABE.pdf
The files are of course all there.
Any idea why the pdf figures are cropped? Am I doing
something wrong here? If I get gnuplot to make a
postscript file instead and use ps2pdf, all is well. But
for publications I prefer to insert eps figures.
--
Dieter Britz
[toc] | [next] | [standalone]
| From | Hans-Bernhard Bröker <HBBroeker@t-online.de> |
|---|---|
| Date | 2014-01-30 19:35 +0100 |
| Message-ID | <bkvkb0Fn4irU1@mid.dfncis.de> |
| In reply to | #2278 |
On 30.01.2014 14:38, Dieter Britz wrote: > I am plotting three figures into one file, first > into an eps file, I don't think that can work. EPS files cannot, pretty much by definition, contain multiple pages. The whole purpose of an EPS file, and its distinction from a plain PostScript file, is that it contains _one_ figure, which will then be imported into some other document. So what you should do is make one EPS file per figure.
[toc] | [prev] | [next] | [standalone]
| From | Dieter Britz <dieterhansbritz@gmail.com> |
|---|---|
| Date | 2014-01-31 09:23 +0000 |
| Message-ID | <lcfq3e$tt9$1@dont-email.me> |
| In reply to | #2279 |
On Thu, 30 Jan 2014 19:35:05 +0100, Hans-Bernhard Bröker wrote: > On 30.01.2014 14:38, Dieter Britz wrote: > >> I am plotting three figures into one file, first into an eps file, > > I don't think that can work. EPS files cannot, pretty much by > definition, contain multiple pages. The whole purpose of an EPS file, > and its distinction from a plain PostScript file, is that it contains > _one_ figure, which will then be imported into some other document. > > So what you should do is make one EPS file per figure. Thank you; I didn't realise that. -- Dieter Britz
[toc] | [prev] | [next] | [standalone]
| From | Dan Luecking <LookInSig@uark.edu> |
|---|---|
| Date | 2014-01-30 13:00 -0600 |
| Message-ID | <096le9t1gembcd3fnlvs1cimnss3pmdllb@4ax.com> |
| In reply to | #2278 |
On Thu, 30 Jan 2014 13:38:45 +0000 (UTC), Dieter Britz <dieterhansbritz@gmail.com> wrote: >I am not sure whether this is a Linux or a gnuplot >problem. >I am plotting three figures into one file, first >into an eps file, which I then convert into pdfd >using the Linux command epstopdf. The eps comes out >fine, looked at with ghostview gv. The pdf conversion, >is also fine on the first page but the 2nd end 3rd are >cropped at the top and right hand side. My understanding of the EPS format is that it is supposed to be one page, and esptopdf expects that. One of the things that epstopdf does is to instruct ghostscript to set the page size equal to the bounding box size, and shift the figure into that page (i.e., move the lower left corner to (0,0). So I am not surprised to find that one of the pages is fine while others are not. From the command help set term postcript: you can find: "To get EPS output, use the eps mode and make only one plot per file" Maybe you don't really want eps, but just ps, and then run pstopdf or ps2pdf. Or maybe you want three output files, which you can get with one gnuplot script by closing one output file and opening the next after each plot. Dan To reply by email, change LookInSig to luecking
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web