Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2889
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2015-04-25 11:36 -0700 |
| Message-ID | <4cfc362b-73c9-4c95-b3ed-ef3655e56a7f@googlegroups.com> (permalink) |
| Subject | title alignment using key |
| From | oscar.rotava@gmail.com |
I have faced, for the first time, the lack of alignment of titles using key
The following key command is used
set key at 0.1,0.01 left Left reverse spacing 1.25
All text is aligned when .eps file is exported. Nevertheless when LaTeX
\includegraphics is used and the LaTeX commands are used on the text the alignment is lost in some of the titles.
plot 'fig5.dat' using 1:2 smooth unique title "Pr=1" lt -1 lw 1, \
'fig5.dat' using 1:8 smooth unique title "Pr=0.5" lt 14 lw 1, \
'fig5.dat' using 1:6 smooth unique title "Pr=0.1" lt 2 lw 1, \
'fig5.dat' using 1:4 smooth unique title "Pr=0.005" lt 0 lw 1, \
'fig5.dat' using 1:2 smooth unique title "n=m=0.2 Pr=0.005" lt 3 lw 1, \
Rl(x) title "R_L" lt 7 lw 0.25, \
Rl2(x) title "dense fluid" lt 5 lw 0.25
This are the related LaTeX commands inside \figure command
\psfrag{Pr=1}[][]{\colorbox{white}{\scriptsize{$\,P_r=1$}}}
\psfrag{Pr=0.5}[][]{\colorbox{white}{\scriptsize{$\,P_r=0.5$}}}
\psfrag{Pr=0.1}[][]{\colorbox{white}{\scriptsize{$\,P_r=0.1$}}}
\psfrag{Pr=0.005}[][]{\colorbox{white}{\scriptsize{$\,P_r=0.005$}}}
\psfrag{n = m = 0.2 Pr = 0.005}[][]{\colorbox{white}{\scriptsize{$\,n=m=0.2\makebox[2mm]{}$P_r=0.005$}}}%
\psfrag{R_L}[][]{\colorbox{white}{\scriptsize{$\,R_L$}}}
\psfrag{dense fluid}[][]{\colorbox{white}{\scriptsize{dense fluid}}}
The result is something like this
------ Pr=1
------ Pr=0.5
------ Pr=0.1
------ Pr=0.0005
---- n=m=0.2 Pr=0.005
---- RL
------ dense fluid
I can not find out why titles 5 and 6 are not aligned.
What I found out is that if the 5th title is shorter ("n=m=0.2") it becomes aligned.
But the 6th is quite short and it it comes out misaligned anyway.
Is the problem related to LaTeX? Any sugestion to overcome it?
Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar | Unroll thread
title alignment using key oscar.rotava@gmail.com - 2015-04-25 11:36 -0700
csiph-web