Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #1620 > unrolled thread
| Started by | Uwe Scholz <nurfuernews@web.de> |
|---|---|
| First post | 2013-02-11 11:20 +0100 |
| Last post | 2013-02-11 15:06 +0100 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Thin space between value and unit in key with eps enhanced terminal Uwe Scholz <nurfuernews@web.de> - 2013-02-11 11:20 +0100
Re: Thin space between value and unit in key with eps enhanced terminal Christoph Bersch <usenet@bersch.net> - 2013-02-11 11:59 +0100
Re: Thin space between value and unit in key with eps enhanced terminal Uwe Scholz <nurfuernews@web.de> - 2013-02-11 15:06 +0100
| From | Uwe Scholz <nurfuernews@web.de> |
|---|---|
| Date | 2013-02-11 11:20 +0100 |
| Subject | Thin space between value and unit in key with eps enhanced terminal |
| Message-ID | <87haljnod7.fsf@web.de> |
Hi,
for a report I'm trying to generate a plot with gnuplot. I'd like to
have a thin space(*) between the value and the unit in the legend of the
plot, which is done in LaTex by "\,". Unfortunately, I cant manage
this in gnuplot. Here comes a minimal example:
set terminal postscript eps enhanced 28 rounded
set encoding utf8
set output 'out.eps'
plot 1/(x+5) ti 'He, 1 keV/µm',\
1/(x+5)**2 ti 'Li, 5 keV/µm'
set output
unset output
What I already tried was to copy&paste a thin space out of a latex pdf
between the numbers and the units, generated by "\,". But this changes
literally nothing in the resulting eps file. I also could not found any
hints in the Internet.
Can somebody give me a clue how to solve this problem?
Thanks in advance,
Uwe
(*) https://en.wikipedia.org/wiki/Thin_space
[toc] | [next] | [standalone]
| From | Christoph Bersch <usenet@bersch.net> |
|---|---|
| Date | 2013-02-11 11:59 +0100 |
| Message-ID | <kfaitq$ks8$1@dont-email.me> |
| In reply to | #1620 |
Hi,
Am 11.02.2013 11:20, schrieb Uwe Scholz:
>
> for a report I'm trying to generate a plot with gnuplot. I'd like to
> have a thin space(*) between the value and the unit in the legend of the
> plot, which is done in LaTex by "\,".
with the epscairo terminal, you can just type the thin space:
set terminal epscairo enhanced font ",14"
set encoding utf8
set output 'out.eps'
plot 1/(x+5) ti 'He, 1 keV/µm',\
1/(x+5)**2 ti 'He, 1 keV/µm'
set output
This example works for me. The second title contains a thin space, which
you maybe don't see if you email reader uses a monospaced font.
Of course, you could also use the epslatex terminal:
set terminal epslatex standalone header '\usepackage{textcomp}'
set output 'out.tex
plot 1/(x+5) ti 'He, 1 keV/\textmu m',\
1/(x+5)**2 ti 'He, 1\,keV/\textmu m'
set output
system('latex out.tex && dvips out.dvi && ps2eps -f -B out.ps')
set terminal epslatex standalone header
'\usepackage[per-mode=symbol]{siunitx}'
set output 'out.tex'
plot 1/(x+5) ti 'He, \SI{1}{\keV\per\um}',\
1/(x+5)**2 ti 'Li, \SI{5}{\keV\per\um}'
set output
system('latex out.tex && dvips out.dvi && ps2eps -f -B out.ps')
Christoph
[toc] | [prev] | [next] | [standalone]
| From | Uwe Scholz <nurfuernews@web.de> |
|---|---|
| Date | 2013-02-11 15:06 +0100 |
| Message-ID | <877gmfaqrt.fsf@web.de> |
| In reply to | #1621 |
Hi Christoph,
Thank you! This helped me allot. I'll take the version with
textcomp-Package. :-)
Ciao,
Uwe
Christoph Bersch <usenet@bersch.net> writes:
> Hi,
>
> Am 11.02.2013 11:20, schrieb Uwe Scholz:
>>
>> for a report I'm trying to generate a plot with gnuplot. I'd like to
>> have a thin space(*) between the value and the unit in the legend of the
>> plot, which is done in LaTex by "\,".
>
> [...]
> set terminal epslatex standalone header '\usepackage{textcomp}'
> set output 'out.tex
> plot 1/(x+5) ti 'He, 1 keV/\textmu m',\
> 1/(x+5)**2 ti 'He, 1\,keV/\textmu m'
> set output
> system('latex out.tex && dvips out.dvi && ps2eps -f -B out.ps')
> Christoph
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web