Re: eps to pdf terminal switch messes up my whole image.



merritt@xxxxxxxxxxxxxxxx (Ethan Merritt) wrote in
news:g3fdmu$pmv$1@xxxxxxxxxxxxxxxxxxxxxxxxxx:


Well, I can see that you didn't set enhanced text mode.

Yes. I corrected that now. The new image (slightly modified) which seems
to do the enhanced mode correctly is uploaded (link below). This time as
a pdf.

Why are the labels bigger than the other text?

That was there in the script (see below). I had many text styles
overridden with font specs where drawn.

At this point I think we need to see your actual commands.

Attached below.

Also please report the version of the cairo and pango libraries you
are linking against.

I'm on RHEL. My `yum info cairo` says:
Name : cairo
Arch : i386
Version: 1.2.4
Release: 5.el5

Name : pango
Arch : i386
Version: 1.14.9
Release: 3.el5

I'm not sure this is the best way to be sure these are the ones that my
gnuplot *devel* is linking against. Any surer options?


But normally you wouldn't be switching between eps and pdf;
you would just work with the one you want.

Not really. Here's my work flow usually: Make eps. Then if I want to send
a plot to someone etc. make a pdf with epstopdf on the command line.
Works like a breeze.

But for embedding in other applications (say, MSWord, Latex or other word
processors) I've been told eps is a sure-shot, platform-independant way
to get crisp, scalable hard-copy ready grapics. Most printers out there
today use postscript as their lingua franca.

The only reason I am shooting for pdf directly as a gnuplot driver (as
opposed to a gnuplot eps postprocessed by epstopdf) is that eps won't
allow me any transparancy.


Please note that you are using a driver (pdfcairo) marked
"EXPERIMENTAL" in the development version. We know it's not perfect
yet.

Sure. I realize that. Just looking for a solution and no intention at all
to pass any blame around.

You may well have found a bug, although so far I still suspect
external font problems. But I do find it strange that your point
labels are a different size than the axis labels. That seems
bug-like.

I asked for those (see script below). That explains the different sizes
doesn't it? I think the mutual difference persists even if I use eps. Its
only the absolute font size offset between eps and pdf terminals that is
disconcerting!

How does it look if you output to the PNG terminal
directly?


Please try your plot again and post the results using

set term pdfcairo font "Times,6" enhanced size 5in,3.5in

Can you post the pdf output itself, rather than converting to png?
After all, we could also worry about possible problems in the
conversion program you are using to convert or view the pdf file.

Absolutely. That's a very valid point. Try: http://tinyurl.com/4aaxb9

SCRIPT
+++++++++++++++++++++++++++++++

#!/bin/bash

gnuplot_devel <<DOC

set term pdf enhanced font "Helvetica,7" size 5in,3.5in
set output "scatter_plot.pdf"

set xtics font "Helvetica,7"
set ytics font "Helvetica,7"

unset key
set view map
set noztics
set palette rgbformulae 7,5,15

set object 1 rect from graph 0,graph 0 to graph 1,graph 1 fs solid 0.15
fc rgb "cyan"
set object 2 circle at graph 0.8, graph 0.9 size 0.05
set label 2 '-2.0 eV' at graph 0.85, graph 0.9 font "Helvetica,6" tc rgb
"blue"

set object 3 circle at graph 0.8, graph 0.82 size 0.14
set label 3 '-6.0 eV' at graph 0.85, graph 0.82 font "Helvetica,6" tc
rgb "blue"

set xlabel 'BE_A' font "Helvetica,7" tc rgb "blue"
set ylabel 'BE_B' font "Helvetica,7" tc rgb "blue"
set cblabel "BE_{Cr}" font "Helvetica,7" tc rgb "blue"
set label 1 front 'BBBE_P' at graph 0.85,graph 0.95 font "Helvetica,6"
tc rgb "blue"

set xrange [-7:-2]
set yrange [-7:-2]
set cbrange [-7:-2]

set notitle

set format x "%.1f"
set format y "%.1f"
set format cb "%.1f"

set style line 1 pt 1 lc rgb "blue"

splot "C_S_Cl_P.txt" using 2:3:(\$4):(\$5) with points pt 7 ps var lt
palette, \
"label_pos.txt" using 2:3:(0):1 with labels font 'Helvetica,12' tc ls 1

DOC

++++++++++++++++++++++++++++++++++++++++++++++++++++

--
Rahul
.



Relevant Pages

  • Re: Odd InD error
    ... all the way through the workflow. ... font is a house font which has been loaded into your workflow at some ... I didn't have a problem importing either the EPS or the PDF into InDesign CS ...
    (comp.publish.prepress)
  • Re: difference in output between postscript and pdf terminal
    ... I use pdfLaTeX to generate pdf. ... I always want both eps *and* pdf and I want them to look the same. ... shortcoming then haranguing the world at large (or even the developers) ... terminals should be equal, this would be already a big plus. ...
    (comp.graphics.apps.gnuplot)
  • Re: Some comments - PDF export functionality in Office 2007
    ... Starting with Office 2002 EPS graphic displays in Word, Excel and Powerpoint are generally from the EPS content rather than from the ... provided that you're using an EPS feature set that is not newer/higher than what the Office EPS graphics filter ... To send Office 2007 feedback directly to the MS Office product team you can use the feedback tool from the link below. ... I welcome the PDF export functionality which is much ...
    (microsoft.public.office.misc)
  • Re: Different behaviour of NimbusMonL-Bold and Courier-Bold in PDF created by pdfwrite
    ... get embedded into the PDF file, and the PDF says it's using a "Type 1" ... can enforce the embedding by passing the appropriate option on the ... Some of the glyphs have ... I think once I fully understand and grasp these "simple" font ...
    (comp.lang.postscript)
  • Re: News: FileMaker 9 released
    ... FMP7 is fixed finally (PDFs with different font styles include the font ... PDF feature. ... 14 dict begin/FontName /HWRRFT+Cochin def ...
    (comp.databases.filemaker)