Node:Control characters, Next:, Previous:Simple plots, Up:Using blasvis



Control characters

Within blasvis it can be necessary to specify text strings, either for titles or for file names. Certain control characters can be used within these text strings. These control characters fall into two groups.

  1. Plplot escape sequences. These begin with a # and allow access to different fonts / formatting. These can only be used for graph titles.
  2. Blasvis escape sequences allow information about the current simulation to be embedded in the text. These begin with a %. They can be used for both graph titles and file names.

Plplot escape sequences

#u
move up to the superscript position (ended with #d)
#d
move down to subscript position (ended with #u)
#b
backspace (to allow overprinting)
##
number symbol
#+
toggle overline mode
#-
toggle underline mode
#gx
Greek letter corresponding to Roman letter x
#fn
switch to normal font
#fr
switch to Roman font
#fi
switch to italic font
#fs
switch to script font
#(nnn)
Hershey character nnn (1 to 4 decimal digits)

Blasvis escape sequences

These escape sequences are evaluated when the string is actually plotted. This can affect the data item and coordinate value items.

%d
Data item currently being plotted.
%r
Run number (for BLASIUS - extracted from the file name).
%t
Time at which file was output.
%v
Value of coordinate which along which graph is being plotted.
%x
%y
%z
Labels for x, y and z axes.

Additionally the escape sequence %[0-9] can be used to represent variables 0 to 9 wherever blasvis requests a number to be input. This is most useful for writing command files see Automating blasvis where you want to use value (e.g. the cross section to plot) several times.