User Manual
Table of Contents
1. Basic Ideas
1.1 Simple Statements
1.1.1 Defining a variable
1.1.2 Invoking a procedure
1.1.3 Printing an expression
1.2 Flow Control Statements
1.2.1 Defining a function
1.2.2 Defining Procedures
1.2.3 Conditional Execution
1.2.3.1 General
if
and
else
constructs
1.2.3.2 Combining conditions with
&&
and
||
1.2.4 Loops
1.2.4.1 The
while
and
do while
statements
1.2.4.2 The
for
statement
1.2.4.3 Using
break
,
continue
, and
goto
1.2.5 Variable scope
1.2.5.1
extern
statements
1.2.5.2
local
statements
1.3 The Interpreted Environment
1.3.1 Starting, stopping, and interrupting Yorick
1.3.2 Include files
1.3.2.1 A sample include file
1.3.2.2 Comments
1.3.2.3
DOCUMENT
comments
1.3.2.4 Where Yorick looks for include files
1.3.2.5 The ‘
custom.i
’ file and ‘
i-start/
’ directory
1.3.3 The
help
function
1.3.4 The
info
function
1.3.5 Prompts
1.3.6 Shell commands, removing and renaming files
1.3.7 Error Messages
1.3.7.1 Runtime errors
1.3.7.2 How to respond to a runtime error
2. Using Array Syntax
2.1 Creating Arrays
2.2 Interpolating
2.3 Indexing
2.3.1 Scalar indices and array order
2.3.2 Selecting a range of indices
2.3.3 Nil index refers to an entire dimension
2.3.4 Selecting an arbitrary list of indices
2.3.5 Creating a pseudo-index
2.3.6 Numbering a dimension from its last element
2.3.7 Using a rubber index
2.3.8 Marking an index for matrix multiplication
2.3.9 Rank reducing (statistical) range functions
2.3.10 Rank preserving (finite difference) range functions
2.4 Sorting
2.5 Transposing
2.6 Broadcasting and conformability
2.7 Dimension Lists
3. Graphics
3.1 Primitive plotting functions
3.1.1 plg
3.1.2 pldj
3.1.3 plm
3.1.4 plc and plfc
3.1.5 plf
3.1.6 pli
3.1.7 plfp
3.1.8 plv
3.1.9 plt
3.2 Plot limits and relatives
3.2.1 limits
3.2.1.1 Zooming with the mouse
3.2.1.2 Saving plot limits
3.2.1.3 Forcing square limits
3.2.2 logxy
3.2.3 gridxy
3.2.4 palette
3.2.5 Color model
3.3 Managing a display list
3.3.1 fma and redraw
3.3.2 Multiple graphics windows
3.4 Getting hardcopy
3.4.1 Color hardcopy
3.4.2 Binary CGM caveats
3.4.3 Encapsulated PostScript
3.5 Graphics style
3.5.1 Style keyword
3.5.2 ‘
style.i
’ functions
3.5.3 Coordinate systems
3.5.4 Ticks and labels
3.6 Queries, edits, and legends
3.6.1 Legends
3.6.2 plq and pledit
3.7 Defaults for keywords
3.8 Writing new plotting functions
3.9 Animation
3.10 3D graphics interfaces
3.10.1 Coordinate mapping
3.10.2 Lighting
3.10.3 gnomon
3.10.4 plwf interface
3.10.5 slice3 interface
4. Embedding Compiled Routines Inside Yorick
4.1 Mechanics of embedding
4.2 API for embedding
4.3 Embedding example
4.3.1 Using
PROTOTYPE
4.3.2 Using ‘
yapi.h
’
Home
Downloads
Documentation
User Manual
Quick Reference
Standard Library
Plugins and Packages
Browse Source Code
User Forums
Wiki