Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #2417 > unrolled thread

epscairo font size and preview issue

Started bysc.mwgc@gmail.com
First post2014-04-22 10:13 -0700
Last post2014-04-25 09:43 +0200
Articles 5 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  epscairo font size and preview issue sc.mwgc@gmail.com - 2014-04-22 10:13 -0700
    Re: epscairo font size and preview issue Jörg Buchholz <bookwood4news@freenet.de> - 2014-04-23 08:05 +0200
      Re: epscairo font size and preview issue sc.mwgc@gmail.com - 2014-04-23 03:49 -0700
        Re: epscairo font size and preview issue Jörg Buchholz <bookwood4news@freenet.de> - 2014-04-24 21:42 +0200
        Re: epscairo font size and preview issue Karl <mail.kfr@gmx.net> - 2014-04-25 09:43 +0200

#2417 — epscairo font size and preview issue

Fromsc.mwgc@gmail.com
Date2014-04-22 10:13 -0700
Subjectepscairo font size and preview issue
Message-ID<67767956-8b61-45f7-9277-5792615344f8@googlegroups.com>
I'm a new user to gnuplot, trying to create some plots for use in MS Word, but I'm having a couple of problems.

First, I can't seem to get the correct font size when I compare the eps file to text in Word. I realise there is the fontscale option - at the default of 0.5 the text is smaller than text of the same font and size in Word, and with fontscale set to 1 the text is larger. I had thought a fontscale of 1 would give a matching size, as I expected that this would not scale the font. The image itself matches the expected size in Word, so this doesn't seem to be an issue of the whole image being scaled.

Second, the preview bitmap embedded in the eps file doesn't seem to have included any text (axis labels and scales). I just get blank white space where it should be. The eps file itself does seem to have the text - it appears in PDF files printed from Word.

I'd appreciate any help anyone could give with these issues.



Example script:

set terminal epscairo font "arial,12" fontscale 1 
set output "test.eps"
plot sin(x)  
set output

I'm using gnuplot version 4.6 patch level 3 on Win7 64 bit.

[toc] | [next] | [standalone]


#2418

FromJörg Buchholz <bookwood4news@freenet.de>
Date2014-04-23 08:05 +0200
Message-ID<lj7l7o$uv2$1@newsserver.rrzn.uni-hannover.de>
In reply to#2417
On 22.04.2014 19:13, sc.mwgc@gmail.com wrote:
> I'm a new user to gnuplot, trying to create some plots for use in MS
> Word, but I'm having a couple of problems.

I think the best way for use in Office-Software (MS-Office, LibreOffice, 
OpenOffice) is the emf terminal. Something like this:

set term emf enhanced color
set out 'test.emf'

"The emf terminal generates an Enhanced Metafile Format file. This file 
format is recognized by many Windows applications."

kind regards
Jörg

[toc] | [prev] | [next] | [standalone]


#2419

Fromsc.mwgc@gmail.com
Date2014-04-23 03:49 -0700
Message-ID<347a9dd4-782c-46df-b8e3-1a07074b5397@googlegroups.com>
In reply to#2418
On Wednesday, 23 April 2014 07:05:48 UTC+1, Jörg Buchholz  wrote:
> I think the best way for use in Office-Software (MS-Office, LibreOffice, 
> OpenOffice) is the emf terminal. Something like this:

Thanks for the suggestion. I had a look at the emf terminal and using it I can see the text on the plot in Word.

I'm not sure it can help me with the font sizing though - the plot size is set in arbitrary units rather than cm, so I can't see a way for it to achieve the correct font size. I think this would also make it more difficult to achieve consistency in line weights etc as well as font sizes. For me, this is the more important issue.

I'd rather not try and approximate things using trial and error, but perhaps someone knows if what I'm asking for isn't possible with gnuplot?

[toc] | [prev] | [next] | [standalone]


#2426

FromJörg Buchholz <bookwood4news@freenet.de>
Date2014-04-24 21:42 +0200
Message-ID<ljbpfo$9r5$1@dont-email.me>
In reply to#2419
On 23.04.2014 12:49, sc.mwgc@gmail.com wrote:
> On Wednesday, 23 April 2014 07:05:48 UTC+1, Jörg Buchholz  wrote:
>> I think the best way for use in Office-Software (MS-Office,
>> LibreOffice, OpenOffice) is the emf terminal. Something like this:
>
> Thanks for the suggestion. I had a look at the emf terminal and using
> it I can see the text on the plot in Word.
>
> I'm not sure it can help me with the font sizing though - the plot
> size is set in arbitrary units rather than cm, so I can't see a way
> for it to achieve the correct font size. I think this would also make
> it more difficult to achieve consistency in line weights etc as well
> as font sizes. For me, this is the more important issue.
>
> I'd rather not try and approximate things using trial and error, but
> perhaps someone knows if what I'm asking for isn't possible with
> gnuplot?

I think your problem is not a gnuplot problem. Every time you import a 
graphik (gnuplot output) into "Word" you import it as a picture. If you 
want to have the real same font and fontsize in your text and the 
graphic, than you must switch to LaTeX and one of the "tex" or "latex" 
terminals.

kind regards

Jörg


[toc] | [prev] | [next] | [standalone]


#2427

FromKarl <mail.kfr@gmx.net>
Date2014-04-25 09:43 +0200
Message-ID<ljd3ol$fhd$1@news.rz.uni-karlsruhe.de>
In reply to#2419
Am 23.04.2014 12:49, schrieb sc.mwgc@gmail.com:
> On Wednesday, 23 April 2014 07:05:48 UTC+1, Jörg Buchholz  wrote:
>> I think the best way for use in Office-Software (MS-Office, LibreOffice, 
>> OpenOffice) is the emf terminal. Something like this:
> 
> Thanks for the suggestion. I had a look at the emf terminal and using it I can see the text on the plot in Word.
> 
> I'm not sure it can help me with the font sizing though - the plot size is set in arbitrary units rather than cm, so I can't see a way for it to achieve the correct font size. I think this would also make it more difficult to achieve consistency in line weights etc as well as font sizes. For me, this is the more important issue.
> 
> I'd rather not try and approximate things using trial and error, but perhaps someone knows if what I'm asking for isn't possible with gnuplot?
> 

I think there must be some constant relation between the "arbitrary
units" size in the emf terminal and the size in cm in MS-Word you have
to set so the font sizes match.

Just import an emf graph with a single letter (size 100 or so) into Word
and compare the height of the same letter, same size printed directly in
Word.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web