Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Linux: The OS people choose without $200,000,000 of persuasion. -- Mike Coleman


computers / comp.graphics.apps.gnuplot / Re: Greek Characters in GnuPlot EPS output files

SubjectAuthor
* Greek Characters in GnuPlot EPS output filesMartin Brown
`* Re: Greek Characters in GnuPlot EPS output filesJörg_Buchholz
 `* Re: Greek Characters in GnuPlot EPS output filesMartin Brown
  `* Re: Greek Characters in GnuPlot EPS output filesJörg_Buchholz
   `* Re: Greek Characters in GnuPlot EPS output filesMartin Brown
    `* Re: Greek Characters in GnuPlot EPS output filesJörg_Buchholz
     `* Re: Greek Characters in GnuPlot EPS output filesMartin Brown
      `* Re: Greek Characters in GnuPlot EPS output filesJörg_Buchholz
       `* Re: Greek Characters in GnuPlot EPS output filesMartin Brown
        `- Re: Greek Characters in GnuPlot EPS output filesJörg_Buchholz

1
Subject: Greek Characters in GnuPlot EPS output files
From: Martin Brown
Newsgroups: comp.graphics.apps.gnuplot
Organization: Aioe.org NNTP Server
Date: Thu, 7 Apr 2022 13:22 UTC
Path: i2pn2.org!i2pn.org!aioe.org!hmGPJc8k7dlfJMaTpz9fSw.user.46.165.242.75.POSTED!not-for-mail
From: '''newsp...@nonad.co.uk (Martin Brown)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Greek Characters in GnuPlot EPS output files
Date: Thu, 7 Apr 2022 14:22:41 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t2moj1$lek$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="21972"; posting-host="hmGPJc8k7dlfJMaTpz9fSw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
View all headers
I'm very much a beginner with Gnuplot and although I can get it to do most things now. But I have struggled totally with getting Greek characters alpha, beta, gamma, delta and pi to render.

I need to produce Postscript graph output for publication and it has to work with MNRAS manuscript templates. I can examine the EPS output from enhanced mode and see the following plausible encoding in the text but it still renders as ASCII characters when the LaTex processes it.

setrgbcolor
3106 1050 M
[ /Symbol reencodeCP1252 def
[(Symbol) 140.0 0.0 true true 0 (a)]
[(Helvetica) 140.0 0.0 true true 0 (=0.5, )]
[(Symbol) 140.0 0.0 true true 0 (g)]
[(Helvetica) 140.0 0.0 true true 0 (=0.2)]
]

When I try to preview it in an EPS viewer I get a sort of pale rectangle where the missing characters ought to be with slight shading to right and bottom. I suspect my system is missing some font or other...

I have looked at the FAQ #6.3 through 6.6 but it might as well be written in Greek for all the good it did me. I don't have easy access to UTF-8 indeed when I tried cutting and pasting the UTF-8 example into my copy of Gnuplot the /alpha symbol transmuted into lower case a :(

I don't mind escaping in random hex constants if that is what it takes or manually editing the resulting EPS file but to do that I need to know what to put in to make a Greek character appear in the diagrams as rendered by the journal's scripts. I'm using MiKTeX 2.9 on Win 7.

I am using current Gnuplot 5.4 so don't have easy access to enhpost
as described here:

https://groups.google.com/g/comp.text.tex/c/KbIx5uGILFU/m/vSwe4Tng7qMJ

I have tried {\Symbol a} etc and it seems to be working at least as far as the EPS file but something then goes haywire when LaTex imports it.

I have also tried escaping in \delta for Latex to deal with but again I must be doing something wrong because it appears in a literal sense rather than escaping in the symbol delta.

I'm going around in circles and just can't seem to make any progress now. It is driving me crazy! HELP!

Thanks for any enlightenment...

--
Regards,
Martin Brown


Subject: Re: Greek Characters in GnuPlot EPS output files
From: Jörg_Buchholz
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Mon, 11 Apr 2022 07:46 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg_Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Mon, 11 Apr 2022 09:46:49 +0200
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <t30mda$u1j$1@dont-email.me>
References: <t2moj1$lek$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 11 Apr 2022 07:46:50 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4c903be8e1331eee7c90dd1834138183";
logging-data="30771"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Ak55Tp0u8Uync3SLAUBKGsgplDCEuxvY="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:Y4u1GIqK5+pmSVAm2/Xnj8/cL4M=
In-Reply-To: <t2moj1$lek$1@gioia.aioe.org>
Content-Language: en-GB
View all headers
On 07.04.2022 15:22, Martin Brown wrote:
I'm very much a beginner with Gnuplot and although I can get it to do
most things now. But I have struggled totally with getting Greek
characters alpha, beta, gamma, delta and pi to render.

I need to produce Postscript graph output for publication and it has to
work with MNRAS manuscript templates. I can examine the EPS output from
enhanced mode and see the following plausible encoding in the text but
it still renders as ASCII characters when the LaTex processes it.

setrgbcolor
3106 1050 M
[ /Symbol reencodeCP1252 def
[(Symbol) 140.0 0.0 true true 0 (a)]
[(Helvetica) 140.0 0.0 true true 0 (=0.5, )]
[(Symbol) 140.0 0.0 true true 0 (g)]
[(Helvetica) 140.0 0.0 true true 0 (=0.2)]
]

What termina ldo you use for the output?

set label "{/Symbol a b c d e}" at 0.5,0.5
set term post enhanced
set out 'ps-test-greek.ps'
plot sin(x)
set out

produce a graph with Greek characters as a Postscript-File. You must
used the enhanced option for this.

Jörg



Subject: Re: Greek Characters in GnuPlot EPS output files
From: Martin Brown
Newsgroups: comp.graphics.apps.gnuplot
Organization: Aioe.org NNTP Server
Date: Mon, 11 Apr 2022 16:21 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!aioe.org!hmGPJc8k7dlfJMaTpz9fSw.user.46.165.242.75.POSTED!not-for-mail
From: '''newsp...@nonad.co.uk (Martin Brown)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Mon, 11 Apr 2022 17:21:50 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t31kiu$1e5r$1@gioia.aioe.org>
References: <t2moj1$lek$1@gioia.aioe.org> <t30mda$u1j$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="47291"; posting-host="hmGPJc8k7dlfJMaTpz9fSw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
View all headers
On 11/04/2022 08:46, Jörg Buchholz wrote:
On 07.04.2022 15:22, Martin Brown wrote:
I'm very much a beginner with Gnuplot and although I can get it to do
most things now. But I have struggled totally with getting Greek
characters alpha, beta, gamma, delta and pi to render.

I need to produce Postscript graph output for publication and it has to
work with MNRAS manuscript templates. I can examine the EPS output from
enhanced mode and see the following plausible encoding in the text but
it still renders as ASCII characters when the LaTex processes it.

setrgbcolor
3106 1050 M
[ /Symbol reencodeCP1252 def
[(Symbol) 140.0 0.0 true true 0 (a)]
[(Helvetica) 140.0 0.0 true true 0 (=0.5, )]
[(Symbol) 140.0 0.0 true true 0 (g)]
[(Helvetica) 140.0 0.0 true true 0 (=0.2)]
]

What termina ldo you use for the output?

set label "{/Symbol a b c d e}" at 0.5,0.5
set term post enhanced
set out 'ps-test-greek.ps'
plot sin(x)
set out

produce a graph with Greek characters as a Postscript-File. You must
used the enhanced option for this.

Thanks for your help and the suggested example. I suspect there must be a font missing somewhere but I don't know where or how to provide it.

I see exactly the same thing rendered with your example as with mine.

It renders without any reported errors and I see 5 faint black line rectangles where the labels should be starting at (0.0, 0.5). I estimate the line width of the rectangles to be about 1/3 that of the sine curve.
  _
|_|

Possible progress... I tried deliberately setting a mode that I didn't expect to work "terminal jpeg enhanced" and got the following error msg:

set terminal jpeg enhanced
set out "ps-test.jpg"
plot sin(x)

gdImageStringFT: No character set found while printing string a b c d e with font Symbol.

In addition Gnupolt crashes fatally when I try to copy that error message. I'm still stuck and very confused as to what is wrong.


--
Regards,
Martin Brown


Subject: Re: Greek Characters in GnuPlot EPS output files
From: Jörg_Buchholz
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Tue, 12 Apr 2022 05:59 UTC
References: 1 2 3
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg_Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Tue, 12 Apr 2022 07:59:27 +0200
Organization: A noiseless patient Spider
Lines: 64
Message-ID: <t334fv$3rr$1@dont-email.me>
References: <t2moj1$lek$1@gioia.aioe.org> <t30mda$u1j$1@dont-email.me>
<t31kiu$1e5r$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 12 Apr 2022 05:59:27 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e535bc3192716e87ddfb13990f538464";
logging-data="3963"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FMTlPzlbRLTAr+IAJRKZCWQmYryoXzhE="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:qavOhpHF6UcKYN2bVb1r7qKik/k=
In-Reply-To: <t31kiu$1e5r$1@gioia.aioe.org>
Content-Language: en-GB
View all headers
On 11.04.2022 18:21, Martin Brown wrote:
On 11/04/2022 08:46, Jörg Buchholz wrote:
On 07.04.2022 15:22, Martin Brown wrote:
I'm very much a beginner with Gnuplot and although I can get it to do
most things now. But I have struggled totally with getting Greek
characters alpha, beta, gamma, delta and pi to render.

I need to produce Postscript graph output for publication and it has to
work with MNRAS manuscript templates. I can examine the EPS output from
enhanced mode and see the following plausible encoding in the text but
it still renders as ASCII characters when the LaTex processes it.

setrgbcolor
3106 1050 M
[ /Symbol reencodeCP1252 def
[(Symbol) 140.0 0.0 true true 0 (a)]
[(Helvetica) 140.0 0.0 true true 0 (=0.5, )]
[(Symbol) 140.0 0.0 true true 0 (g)]
[(Helvetica) 140.0 0.0 true true 0 (=0.2)]
]

What termina ldo you use for the output?

set label "{/Symbol a b c d e}" at 0.5,0.5
set term post enhanced
set out 'ps-test-greek.ps'
plot sin(x)
set out

produce a graph with Greek characters as a Postscript-File. You must
used the enhanced option for this.

Thanks for your help and the suggested example. I suspect there must be
a font missing somewhere but I don't know where or how to provide it.

I see exactly the same thing rendered with your example as with mine.

It renders without any reported errors and I see 5 faint black line
rectangles where the labels should be starting at (0.0, 0.5). I estimate
the line width of the rectangles to be about 1/3 that of the sine curve.
 _
|_|

Do you have Greek characters in other Software? In a word processing
software? What is your OS and what version of gnuplot do you use.

I agree with you, it sounds like a generally font problem on your machine.

If your LaTeX can produce Greek characters you can use the the
"cairolatex" terminal. Then the labels will generated by LaTeX.

Example:
set label '{${\alpha \beta \gamma \delta}$}' at 0.5,0.5
set term cairolatex eps standalone
set out 'greek-eps-latex.tex'
plot sin(x)
set out

Than you get a eps-file without any labels and a tex-file with the
labels. If you compile the tex_file (something like "pdflatex
greek-eps-latex.tex") you get a pdf-file with the graph and the labels.

Jörg



Subject: Re: Greek Characters in GnuPlot EPS output files
From: Martin Brown
Newsgroups: comp.graphics.apps.gnuplot
Organization: Aioe.org NNTP Server
Date: Tue, 12 Apr 2022 17:01 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!aioe.org!hmGPJc8k7dlfJMaTpz9fSw.user.46.165.242.75.POSTED!not-for-mail
From: '''newsp...@nonad.co.uk (Martin Brown)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Tue, 12 Apr 2022 18:01:02 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t34b8f$vt9$1@gioia.aioe.org>
References: <t2moj1$lek$1@gioia.aioe.org> <t30mda$u1j$1@dont-email.me>
<t31kiu$1e5r$1@gioia.aioe.org> <t334fv$3rr$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="32681"; posting-host="hmGPJc8k7dlfJMaTpz9fSw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
View all headers
On 12/04/2022 06:59, Jörg Buchholz wrote:
On 11.04.2022 18:21, Martin Brown wrote:
On 11/04/2022 08:46, Jörg Buchholz wrote:
On 07.04.2022 15:22, Martin Brown wrote:
I'm very much a beginner with Gnuplot and although I can get it to do
most things now. But I have struggled totally with getting Greek
characters alpha, beta, gamma, delta and pi to render.

I need to produce Postscript graph output for publication and it has to
work with MNRAS manuscript templates. I can examine the EPS output from
enhanced mode and see the following plausible encoding in the text but
it still renders as ASCII characters when the LaTex processes it.

setrgbcolor
3106 1050 M
[ /Symbol reencodeCP1252 def
[(Symbol) 140.0 0.0 true true 0 (a)]
[(Helvetica) 140.0 0.0 true true 0 (=0.5, )]
[(Symbol) 140.0 0.0 true true 0 (g)]
[(Helvetica) 140.0 0.0 true true 0 (=0.2)]
]

What termina ldo you use for the output?

set label "{/Symbol a b c d e}" at 0.5,0.5
set term post enhanced
set out 'ps-test-greek.ps'
plot sin(x)
set out

produce a graph with Greek characters as a Postscript-File. You must
used the enhanced option for this.

Thanks for your help and the suggested example. I suspect there must be
a font missing somewhere but I don't know where or how to provide it.

I see exactly the same thing rendered with your example as with mine.

It renders without any reported errors and I see 5 faint black line
rectangles where the labels should be starting at (0.0, 0.5). I estimate
the line width of the rectangles to be about 1/3 that of the sine curve.
  _
|_|

Do you have Greek characters in other Software? In a word processing
software? What is your OS and what version of gnuplot do you use.

OS Win 7 64bit sp1
Gnuplot Version 5.4 patchlevel 1

I agree with you, it sounds like a generally font problem on your machine.

Where does "Symbol.*" or "CP1252.ps" reside on your machine?

I had a poke around in gnuplot\share\postscript and noticed that cp1252.ps exists there but it is spelt out in lower case where the reference above is in uppercase. So I wonder if there is a Unix dislike of MS file systems getting in the way somewhere.

I tried renaming it to CP1252.ps (no joy)

It is only in Gnuplot that Greek stubbornly refuses to appear :(
And its output renders as if the font didn't exist.

If your LaTeX can produce Greek characters you can use the the
"cairolatex" terminal. Then the labels will generated by LaTeX.

Example:
set label '{${\alpha \beta \gamma \delta}$}' at 0.5,0.5
set term cairolatex eps standalone
set out 'greek-eps-latex.tex'
plot sin(x)
set out

Than you get a eps-file without any labels and a tex-file with the
labels. If you compile the tex_file (something like "pdflatex
greek-eps-latex.tex") you get a pdf-file with the graph and the labels.

Thank you for your help. Yes this works OK.

I had to download package transparent but then it was flawless.
MiKTex happily turned it into the expected form Greek letters and all.

I suspect now that there is something font related missing from my MiKTex 2.9 install. I tried looking in its fonts directory but found a maze of confusing little passageways all alike. No CP*.ps files at all.
Subdirectories
  afm, cmap, end, map, misc, opentype, pfm, source, tfm, type1, vf

Thanks again for your help Jorg.

--
Regards,
Martin Brown


Subject: Re: Greek Characters in GnuPlot EPS output files
From: Jörg_Buchholz
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Wed, 13 Apr 2022 05:48 UTC
References: 1 2 3 4 5
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg_Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Wed, 13 Apr 2022 07:48:34 +0200
Organization: A noiseless patient Spider
Lines: 121
Message-ID: <t35o7j$1s6$1@dont-email.me>
References: <t2moj1$lek$1@gioia.aioe.org> <t30mda$u1j$1@dont-email.me>
<t31kiu$1e5r$1@gioia.aioe.org> <t334fv$3rr$1@dont-email.me>
<t34b8f$vt9$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 13 Apr 2022 05:48:35 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="11bccad90d46734f91ac41196186400b";
logging-data="1926"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//q2Y01c8VTvYjRsspKtNvq1gtgb+0cRc="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:aPv2Lr7oM/uWKnoLUVEpAGsAej4=
In-Reply-To: <t34b8f$vt9$1@gioia.aioe.org>
Content-Language: en-GB
View all headers
On 12.04.2022 19:01, Martin Brown wrote:
On 12/04/2022 06:59, Jörg Buchholz wrote:
On 11.04.2022 18:21, Martin Brown wrote:
On 11/04/2022 08:46, Jörg Buchholz wrote:
On 07.04.2022 15:22, Martin Brown wrote:
I'm very much a beginner with Gnuplot and although I can get it to do
most things now. But I have struggled totally with getting Greek
characters alpha, beta, gamma, delta and pi to render.

I need to produce Postscript graph output for publication and it
has to
work with MNRAS manuscript templates. I can examine the EPS output
from
enhanced mode and see the following plausible encoding in the text but
it still renders as ASCII characters when the LaTex processes it.

setrgbcolor
3106 1050 M
[ /Symbol reencodeCP1252 def
[(Symbol) 140.0 0.0 true true 0 (a)]
[(Helvetica) 140.0 0.0 true true 0 (=0.5, )]
[(Symbol) 140.0 0.0 true true 0 (g)]
[(Helvetica) 140.0 0.0 true true 0 (=0.2)]
]

What termina ldo you use for the output?

set label "{/Symbol a b c d e}" at 0.5,0.5
set term post enhanced
set out 'ps-test-greek.ps'
plot sin(x)
set out

produce a graph with Greek characters as a Postscript-File. You must
used the enhanced option for this.

Thanks for your help and the suggested example. I suspect there must be
a font missing somewhere but I don't know where or how to provide it.

I see exactly the same thing rendered with your example as with mine.

It renders without any reported errors and I see 5 faint black line
rectangles where the labels should be starting at (0.0, 0.5). I estimate
the line width of the rectangles to be about 1/3 that of the sine curve.
  _
|_|

Do you have Greek characters in other Software? In a word processing
software? What is your OS and what version of gnuplot do you use.

OS Win 7 64bit sp1
Gnuplot Version 5.4 patchlevel 1

here WIN 10 and gnuplot 5.4 patchlevel 3
But I work before on a WIN 7 Maschine with lot of older versions of
gnuplot. Never had problems with the Greek characters.


I agree with you, it sounds like a generally font problem on your
machine.

Where does "Symbol.*" or "CP1252.ps" reside on your machine?

This comes with the gnuplot installation:
C:\Program Files\gnuplot\share\PostScript\cp1252.ps

There are a lot of "Symbol.*" files. No one at "C:\Program
Files\gnuplot\...."


I had a poke around in gnuplot\share\postscript and noticed that
cp1252.ps exists there but it is spelt out in lower case where the
reference above is in uppercase. So I wonder if there is a Unix dislike
of MS file systems getting in the way somewhere.

I tried renaming it to CP1252.ps (no joy)

It is only in Gnuplot that Greek stubbornly refuses to appear :(
And its output renders as if the font didn't exist.

If your LaTeX can produce Greek characters you can use the the
"cairolatex" terminal. Then the labels will generated by LaTeX.

Example:
set label '{${\alpha \beta \gamma \delta}$}' at 0.5,0.5
set term cairolatex eps standalone
set out 'greek-eps-latex.tex'
plot sin(x)
set out

Than you get a eps-file without any labels and a tex-file with the
labels. If you compile the tex_file (something like "pdflatex
greek-eps-latex.tex") you get a pdf-file with the graph and the labels.

Thank you for your help. Yes this works OK.

I had to download package transparent but then it was flawless.
MiKTex happily turned it into the expected form Greek letters and all.

I suspect now that there is something font related missing from my
MiKTex 2.9 install. I tried looking in its fonts directory but found a
maze of confusing little passageways all alike. No CP*.ps files at all.
Subdirectories
 afm, cmap, end, map, misc, opentype, pfm, source, tfm, type1, vf

Here is a "cp1252.4ht" and a "cp1252.enc" in the "...\MiKTeX\fonts...."
directory.

Did you try the epscairo termianl to get a .eps-File? There you can use
direct unicode code.

set term epscairo enhanced font "cp1252"
set label 1 "\\U+03B1  \\U+03B2  \\U+03B3" at 0.5,0.5
set out 'greek-epscairo.eps'
plot sin(x)
set out

There is alpha, beta and gamma in the label.

Jörg



Subject: Re: Greek Characters in GnuPlot EPS output files
From: Martin Brown
Newsgroups: comp.graphics.apps.gnuplot
Organization: Aioe.org NNTP Server
Date: Wed, 13 Apr 2022 15:57 UTC
References: 1 2 3 4 5 6
Path: i2pn2.org!i2pn.org!aioe.org!hmGPJc8k7dlfJMaTpz9fSw.user.46.165.242.75.POSTED!not-for-mail
From: '''newsp...@nonad.co.uk (Martin Brown)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Wed, 13 Apr 2022 16:57:21 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t36rt2$1clg$1@gioia.aioe.org>
References: <t2moj1$lek$1@gioia.aioe.org> <t30mda$u1j$1@dont-email.me>
<t31kiu$1e5r$1@gioia.aioe.org> <t334fv$3rr$1@dont-email.me>
<t34b8f$vt9$1@gioia.aioe.org> <t35o7j$1s6$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="45744"; posting-host="hmGPJc8k7dlfJMaTpz9fSw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Content-Language: en-GB
X-Notice: Filtered by postfilter v. 0.9.2
View all headers
On 13/04/2022 06:48, Jörg Buchholz wrote:
On 12.04.2022 19:01, Martin Brown wrote:

I suspect now that there is something font related missing from my
MiKTex 2.9 install. I tried looking in its fonts directory but found a
maze of confusing little passageways all alike. No CP*.ps files at all.
Subdirectories
  afm, cmap, end, map, misc, opentype, pfm, source, tfm, type1, vf

Here is a "cp1252.4ht" and a "cp1252.enc" in the "...\MiKTeX\fonts...."
directory.

I have "cp1252.4ht" in MiKTeX\tex\generic\tex4ht
Also a "cp1252.def" in MiKTeX\tex\latex\base

No signs at all of "cp1252.enc" in MiKTek but I do have two copies elsewhere - one in Maxima and one in a rendering engine subdir.

Where do I need to put it in the MiKTeX/GNUplot directories please?

Did you try the epscairo termianl to get a .eps-File? There you can use
direct unicode code.

set term epscairo enhanced font "cp1252"
set label 1 "\\U+03B1  \\U+03B2  \\U+03B3" at 0.5,0.5
set out 'greek-epscairo.eps'
plot sin(x)
set out

There is alpha, beta and gamma in the label.

You are correct again!

That bit works fine, unfortunately on my rendering engine there is also the plaintext of the actual unicode escape sequences sat on top of it.

ie. alpha beta gamma delta epsilon symbols with

\U+03B1 \U+03B2 \U+03b3 splatted on top of it (5! characters worth).

It looks to me like:

Alpha is actually a lowercase a of the handwriting sort
Beta is correctly rendered as the symbol
Gamma is an uppercase X shifted down by one third of a line height
Delta is correctly rendered (but why or how I do not know)
Epsilon is correctly rendered (but why or how I do not know)

I copied your example verbatim first and then added extra spaces to the front so that the Greek letters appeared unmolested by the plaintext.

"Alpha" doesn't look much like a Greek alpha to me nor does "Gamma".
Beta, Delta and Epsilon all look fine although where those last two came from I have absolutely no idea!

..eps file content looks OK to me so this is another vexing rendering engine fault in my Windows version of TeX. It contains the 3 escape sequences as above. I will give GNUplot patchlevel 3 a try next.

Thanks again for your very helpful suggestions and patience.

--
Regards,
Martin Brown


Subject: Re: Greek Characters in GnuPlot EPS output files
From: Jörg_Buchholz
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Thu, 14 Apr 2022 11:57 UTC
References: 1 2 3 4 5 6 7
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg_Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Thu, 14 Apr 2022 13:57:54 +0200
Organization: A noiseless patient Spider
Lines: 73
Message-ID: <t39281$k2c$1@dont-email.me>
References: <t2moj1$lek$1@gioia.aioe.org> <t30mda$u1j$1@dont-email.me>
<t31kiu$1e5r$1@gioia.aioe.org> <t334fv$3rr$1@dont-email.me>
<t34b8f$vt9$1@gioia.aioe.org> <t35o7j$1s6$1@dont-email.me>
<t36rt2$1clg$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 14 Apr 2022 11:57:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="25270cb40d0f78295af58f3a2582baf9";
logging-data="20556"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9U82ibZjufKa03e+Tvbux6kMQbmO2kng="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:AqFx9SiutQKX8l2x710RVnq4hUA=
In-Reply-To: <t36rt2$1clg$1@gioia.aioe.org>
Content-Language: en-GB
View all headers
On 13.04.2022 17:57, Martin Brown wrote:
On 13/04/2022 06:48, Jörg Buchholz wrote:
On 12.04.2022 19:01, Martin Brown wrote:

I suspect now that there is something font related missing from my
MiKTex 2.9 install. I tried looking in its fonts directory but found a
maze of confusing little passageways all alike. No CP*.ps files at all.
Subdirectories
  afm, cmap, end, map, misc, opentype, pfm, source, tfm, type1, vf

Here is a "cp1252.4ht" and a "cp1252.enc" in the "...\MiKTeX\fonts...."
directory.

I have "cp1252.4ht" in MiKTeX\tex\generic\tex4ht
Also a "cp1252.def" in MiKTeX\tex\latex\base

No signs at all of "cp1252.enc" in MiKTek but I do have two copies
elsewhere - one in Maxima and one in a rendering engine subdir.

Where do I need to put it in the MiKTeX/GNUplot directories please?


Here it is at
"...\AppData\Local\Programs\MiKTeX\fonts\enc\dvips\ucs\cp1252.enc

But I never do something more than the "normal" installation.


Did you try the epscairo termianl to get a .eps-File? There you can use
direct unicode code.

set term epscairo enhanced font "cp1252"
set label 1 "\\U+03B1  \\U+03B2  \\U+03B3" at 0.5,0.5
set out 'greek-epscairo.eps'
plot sin(x)
set out

There is alpha, beta and gamma in the label.

You are correct again!

That bit works fine, unfortunately on my rendering engine there is also
the plaintext of the actual unicode escape sequences sat on top of it.

ie. alpha beta gamma delta epsilon symbols with

\U+03B1 \U+03B2 \U+03b3 splatted on top of it (5! characters worth).

It looks to me like:

Alpha is actually a lowercase a of the handwriting sort
Beta is correctly rendered as the symbol
Gamma is an uppercase X shifted down by one third of a line height
Delta is correctly rendered (but why or how I do not know)
Epsilon is correctly rendered (but why or how I do not know)

I copied your example verbatim first and then added extra spaces to the
front so that the Greek letters appeared unmolested by the plaintext.

"Alpha" doesn't look much like a Greek alpha to me nor does "Gamma".
Beta, Delta and Epsilon all look fine although where those last two came
from I have absolutely no idea!

.eps file content looks OK to me so this is another vexing rendering
engine fault in my Windows version of TeX. It contains the 3 escape
sequences as above. I will give GNUplot patchlevel 3 a try next.

Thanks again for your very helpful suggestions and patience.


I am at my wits end!

Jörg


Subject: Re: Greek Characters in GnuPlot EPS output files
From: Martin Brown
Newsgroups: comp.graphics.apps.gnuplot
Organization: Aioe.org NNTP Server
Date: Sat, 16 Apr 2022 10:47 UTC
References: 1 2 3 4 5 6 7 8
Path: i2pn2.org!i2pn.org!aioe.org!hmGPJc8k7dlfJMaTpz9fSw.user.46.165.242.75.POSTED!not-for-mail
From: '''newsp...@nonad.co.uk (Martin Brown)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Sat, 16 Apr 2022 11:47:38 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t3e6sb$1voa$1@gioia.aioe.org>
References: <t2moj1$lek$1@gioia.aioe.org> <t30mda$u1j$1@dont-email.me>
<t31kiu$1e5r$1@gioia.aioe.org> <t334fv$3rr$1@dont-email.me>
<t34b8f$vt9$1@gioia.aioe.org> <t35o7j$1s6$1@dont-email.me>
<t36rt2$1clg$1@gioia.aioe.org> <t39281$k2c$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="65290"; posting-host="hmGPJc8k7dlfJMaTpz9fSw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
View all headers
On 14/04/2022 12:57, Jörg Buchholz wrote:
On 13.04.2022 17:57, Martin Brown wrote:
On 13/04/2022 06:48, Jörg Buchholz wrote:
On 12.04.2022 19:01, Martin Brown wrote:

I suspect now that there is something font related missing from my
MiKTex 2.9 install. I tried looking in its fonts directory but found a
maze of confusing little passageways all alike. No CP*.ps files at all.
Subdirectories
   afm, cmap, end, map, misc, opentype, pfm, source, tfm, type1, vf

Here is a "cp1252.4ht" and a "cp1252.enc" in the "...\MiKTeX\fonts...."
directory.

I have "cp1252.4ht" in MiKTeX\tex\generic\tex4ht
Also a "cp1252.def" in MiKTeX\tex\latex\base

No signs at all of "cp1252.enc" in MiKTek but I do have two copies
elsewhere - one in Maxima and one in a rendering engine subdir.

Where do I need to put it in the MiKTeX/GNUplot directories please?


Here it is at
"...\AppData\Local\Programs\MiKTeX\fonts\enc\dvips\ucs\cp1252.enc

Odd. I don't have anything at all there. The fonts are all in the MiKTex2.9 directory under "...\Program Files\"

There is even less there after installing gnuplot 5.4.3 which cleared up some rubble left by the 5.4.1 installation. Now there is no MiKTeX directory at all in the the AppData hierarchy.

I tried putting CP1252.enc in
"MiKTeX 2.9\fonts\enc\dvips\base"
as there is no ucs subdir. Choices are:

arabi base lm metapost newtx tetex tex-gyre txfonts


But I never do something more than the "normal" installation.

Private single user or global user access?

.eps file content looks OK to me so this is another vexing rendering
engine fault in my Windows version of TeX. It contains the 3 escape
sequences as above. I will give GNUplot patchlevel 3 a try next.

Thanks again for your very helpful suggestions and patience.

I am at my wits end!

So am I. I tried everything I could think of and nothing worked :(
I have been fighting this problem for a while and getting nowhere.

5.4.3 behaves exactly the same. Putting cp1252.enc in various plausible places made no difference at all, but thanks to you I do now have one way of getting Greek characters into GNU plots that actually works.

set term cairolatex eps standalone

Works OK. Then PDF to EPS ought to do it <fx> crosses fingers</fx>.

Thanks again for all your help and Sample should be working code.
I think I can do everything I need using that terminal mode.
(if I can't then I will be back with some more questions)

--
Regards,
Martin Brown


Subject: Re: Greek Characters in GnuPlot EPS output files
From: Jörg_Buchholz
Newsgroups: comp.graphics.apps.gnuplot
Organization: A noiseless patient Spider
Date: Tue, 19 Apr 2022 04:55 UTC
References: 1 2 3 4 5 6 7 8 9
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: bookwood...@freenet.de (Jörg_Buchholz)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Greek Characters in GnuPlot EPS output files
Date: Tue, 19 Apr 2022 06:55:59 +0200
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <t3lfcr$rb9$1@dont-email.me>
References: <t2moj1$lek$1@gioia.aioe.org> <t30mda$u1j$1@dont-email.me>
<t31kiu$1e5r$1@gioia.aioe.org> <t334fv$3rr$1@dont-email.me>
<t34b8f$vt9$1@gioia.aioe.org> <t35o7j$1s6$1@dont-email.me>
<t36rt2$1clg$1@gioia.aioe.org> <t39281$k2c$1@dont-email.me>
<t3e6sb$1voa$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 19 Apr 2022 04:55:55 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c3f0069a1f0cc188a5d3a28704a83314";
logging-data="28009"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+c+thPd8jLZdIuh6t0hpTAU0hWFTyWtH4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.8.0
Cancel-Lock: sha1:MaxVGW3s5X0i773fjjeIhgfaP7I=
In-Reply-To: <t3e6sb$1voa$1@gioia.aioe.org>
Content-Language: en-GB
View all headers
On 16.04.2022 12:47, Martin Brown wrote:
On 14/04/2022 12:57, Jörg Buchholz wrote:
On 13.04.2022 17:57, Martin Brown wrote:
On 13/04/2022 06:48, Jörg Buchholz wrote:
On 12.04.2022 19:01, Martin Brown wrote:

I suspect now that there is something font related missing from my
MiKTex 2.9 install. I tried looking in its fonts directory but found a
maze of confusing little passageways all alike. No CP*.ps files at
all.
Subdirectories
   afm, cmap, end, map, misc, opentype, pfm, source, tfm, type1, vf

Here is a "cp1252.4ht" and a "cp1252.enc" in the "...\MiKTeX\fonts...."
directory.

I have "cp1252.4ht" in MiKTeX\tex\generic\tex4ht
Also a "cp1252.def" in MiKTeX\tex\latex\base

No signs at all of "cp1252.enc" in MiKTek but I do have two copies
elsewhere - one in Maxima and one in a rendering engine subdir.

Where do I need to put it in the MiKTeX/GNUplot directories please?


Here it is at
"...\AppData\Local\Programs\MiKTeX\fonts\enc\dvips\ucs\cp1252.enc

Odd. I don't have anything at all there. The fonts are all in the
MiKTex2.9 directory under "...\Program Files\"

There is even less there after installing gnuplot 5.4.3 which cleared up
some rubble left by the 5.4.1 installation. Now there is no MiKTeX
directory at all in the the AppData hierarchy.

I tried putting CP1252.enc in
"MiKTeX 2.9\fonts\enc\dvips\base"
as there is no ucs subdir. Choices are:

arabi base lm metapost newtx tetex tex-gyre txfonts


But I never do something more than the "normal" installation.

Private single user or global user access?

I think, Miktex is insataled for a single user.

set term cairolatex eps standalone

Works OK. Then PDF to EPS ought to do it <fx> crosses fingers</fx>.

Thanks again for all your help and Sample should be working code.
I think I can do everything I need using that terminal mode.
(if I can't then I will be back with some more questions)


If I can help, I will give some answers.

Jörg


1
rocksolid light 0.7.2
clearneti2ptor