Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_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: References: 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: Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4464 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