i have complex figure made epslatex terminal in gnuplot. multiplot figure 4 panels. in each panel draw 3 curves (for 3 different values of parameter) , superimpose curve parameter on top of each curve. can distinguish first parameter different types of points, , second 1 color.
so, use key distinguish different points , need have kind of key 2 colors. use label colored text. point is, text not colored in epslatex terminal!
i have
set terminal epslatex color solid 8
and
set label 10 'h' tc lt 1 @ 0.01,6
this way 'h' label in black. if use
set terminal epslatex color colortext solid 8
it gives me error
package color not loaded in conjunction terminal option `colourtext'.
any idea what's problem?
you can use \texcolor
command, provided color
package. if use standalone
mode color
package automatically loaded color
option terminal, otherwise have explicitly load color
(or xcolor
) package in latex document.
a colorful example:
set terminal epslatex color solid 8 standalone set output "foo.tex" set format x '$\textcolor{green}{%g}$' set format y '$\textcolor{yellow}{%g}$' set label 10 '\textcolor{blue}{h}' @ 0.01,6 plot x**3 title '$\textcolor{magenta}{x}^{\textcolor{cyan}{3}}$' set output
result:
Comments
Post a Comment