Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 591c941c2fdf0a32dc57bb5f10791cde > files > 307

gnuplot-doc-4.4.0-5.fc14.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Enhanced text mode</TITLE>
<META NAME="description" CONTENT="Enhanced text mode">
<META NAME="keywords" CONTENT="gnuplot">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="gnuplot.css">

<LINK REL="next" HREF="node21.html">
<LINK REL="previous" HREF="node19.html">
<LINK REL="up" HREF="node2.html">
<LINK REL="next" HREF="node21.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html1018"
  HREF="node21.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html1012"
  HREF="node2.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html1006"
  HREF="node19.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html1014"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html1016"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1019"
  HREF="node21.html">Environment</A>
<B> Up:</B> <A NAME="tex2html1013"
  HREF="node2.html">Gnuplot</A>
<B> Previous:</B> <A NAME="tex2html1007"
  HREF="node19.html">Datastrings</A>
 &nbsp; <B>  <A NAME="tex2html1015"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html1017"
  HREF="node467.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H1><A NAME="SECTION020110000000000000000"></A>
<A NAME="enhanced_text"></A><A NAME="enhanced"></A><A NAME="366"></A>
<BR>
Enhanced text mode
</H1>
Many terminal types support an enhanced text mode in which additional
formatting information is embedded in the text string.  For example, <TT>"</TT>x<code>^</code>2<TT>"</TT>
will write x-squared as we are used to seeing it, with a superscript 2.
This mode is normally selected when you set the terminal, e.g.
<TT>"</TT>set term png enhanced<TT>"</TT>, but may also be toggled afterward using
<TT>"</TT>set termoption enhanced<TT>"</TT>, or by marking individual strings as in
<TT>"</TT>set label 'x_2' noenhanced<TT>"</TT>.

<P>
<DIV ALIGN="CENTER">
<TABLE CELLPADDING=3 BORDER="1">
<TR><TD ALIGN="CENTER" COLSPAN=4>Enhanced Text Control Codes</TD>
</TR>
<TR><TD ALIGN="CENTER">Control</TD>
<TD ALIGN="CENTER">Example</TD>
<TD ALIGN="CENTER">Result</TD>
<TD ALIGN="LEFT">Explanation</TD>
</TR>
<TR><TD ALIGN="CENTER"><code>^</code></TD>
<TD ALIGN="CENTER"><code>a^x</code></TD>
<TD ALIGN="CENTER">6#6</TD>
<TD ALIGN="LEFT">superscript</TD>
</TR>
<TR><TD ALIGN="CENTER"><code>_</code></TD>
<TD ALIGN="CENTER"><code>a_x</code></TD>
<TD ALIGN="CENTER">7#7</TD>
<TD ALIGN="LEFT">subscript</TD>
</TR>
<TR><TD ALIGN="CENTER"><code>@</code></TD>
<TD ALIGN="CENTER"><code>a@^b_{cd}</code></TD>
<TD ALIGN="CENTER">8#8</TD>
<TD ALIGN="LEFT">phantom box (occupies no width)</TD>
</TR>
<TR><TD ALIGN="CENTER"><code>&amp;</code></TD>
<TD ALIGN="CENTER"><code>d&amp;{space}b</code></TD>
<TD ALIGN="CENTER">d<code>     </code>b</TD>
<TD ALIGN="LEFT">inserts space of specified length</TD>
</TR>
<TR><TD ALIGN="CENTER"><code>~</code></TD>
<TD ALIGN="CENTER"><code>~a{.8-}</code></TD>
<TD ALIGN="CENTER">9#9</TD>
<TD ALIGN="LEFT">overprints '-' on 'a', raised by .8</TD>
</TR>
<TR><TD ALIGN="CENTER"><code> </code></TD>
<TD ALIGN="CENTER"><code> </code></TD>
<TD ALIGN="CENTER">&nbsp;&nbsp;</TD>
<TD ALIGN="LEFT">times the current fontsize</TD>
</TR>
</TABLE>
</DIV>

<P>
Braces can be used to place multiple-character text where a single character
is expected (e.g., 2<code>^</code>{10}).  To change the font and/or size, use the full form:
{/[fontname][=fontsize 3#3 *fontscale] text}.  Thus {/Symbol=20 G} is a 20 pt
GAMMA and {/*0.75 K} is a K at three-quarters of whatever fontsize is currently
in effect.  (The '/' character MUST be the first character after the '{'.)

<P>
The phantom box is useful for a@<code>^</code>b_c to align superscripts and subscripts
but does not work well for overwriting an accent on a letter.  For the latter,
it is much better to use an encoding  (e.g. iso_8859_1 or utf8) that contains
a large variety of letters with accents or other diacritical marks.  See
<B>set encoding (p.&nbsp;<A HREF="node203.html#set_encoding"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="386"></A></B>. Since the box is non-spacing, it is sensible to put the shorter
of the subscript or superscript in the box (that is, after the @).

<P>
Space equal in length to a string can be inserted using the '&amp;' character.
Thus
<BR>
<PRE>
       'abc&amp;{def}ghi'
</PRE>
<BR>
would produce
<BR>
<PRE>
       'abc   ghi'.
</PRE>
<BR>

<P>
The '~ ' character causes the next character or bracketed text to be
overprinted by the following character or bracketed text.  The second text
will be horizontally centered on the first.  Thus '~ a/' will result in an 'a'
with a slash through it.  You can also shift the second text vertically by
preceding the second text with a number, which will define the fraction of the
current fontsize by which the text will be raised or lowered.  In this case
the number and text must be enclosed in brackets because more than one
character is necessary.  If the overprinted text begins with a number, put a
space between the vertical offset and the text ('~ {abc}{.5 000}'); otherwise
no space is needed ('~ {abc}{.5 -- }').  You can change the font for one or
both strings ('~ a{.5 /*.2 o}' -- an 'a' with a one-fifth-size 'o' on top -- and
the space between the number and the slash is necessary), but you can't
change it after the beginning of the string.  Neither can you use any other
special syntax within either string.  You can, of course, use control
characters by escaping them (see below), such as '~ a{2#2<code>^</code>}'

<P>
You can access special symbols numerically by specifying 2#2character-code (in
octal), e.g., {/Symbol 2#2245} is the symbol for infinity. This does not work
for multibyte encodings like UTF-8, however.  In a UTF-8 environment, you
should be able to enter multibyte sequences implicitly by typing or otherwise
selecting the character you want.

<P>
You can escape control characters using 2#2, e.g.,  2#22#2, 2#2{, and so on.

<P>
But be aware that strings in double-quotes are parsed differently than those
enclosed in single-quotes.  The major difference is that backslashes may need
to be doubled when in double-quoted strings.

<P>
Examples (these are hard to describe in words -- try them!):
<BR>
<PRE>
     set xlabel 'Time (10^6 {/Symbol m}s)'
     set title '{/Symbol=18 \\362@_{/=9.6 0}^{/=12 x}} \\
                {/Helvetica e^{-{/Symbol m}^2/2} d}{/Symbol m}'
</PRE>
<BR>

<P>
The file <TT>"</TT>ps_guide.ps<TT>"</TT> in the /docs/psdoc subdirectory of the gnuplot source
distribution contains more examples of the enhanced syntax.
<HR>
<!--Navigation Panel-->
<A NAME="tex2html1018"
  HREF="node21.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html1012"
  HREF="node2.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html1006"
  HREF="node19.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html1014"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html1016"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html1019"
  HREF="node21.html">Environment</A>
<B> Up:</B> <A NAME="tex2html1013"
  HREF="node2.html">Gnuplot</A>
<B> Previous:</B> <A NAME="tex2html1007"
  HREF="node19.html">Datastrings</A>
 &nbsp; <B>  <A NAME="tex2html1015"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html1017"
  HREF="node467.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

2010-08-17
</ADDRESS>
</BODY>
</HTML>