
Example pages containing: tips | resources | functions/procedures
NCL Graphics: Equations


When starting a long string like this equation, you establish an initial point. This is usually done with the code :V1: which indicates that the vertical position of what is to follow is on "level 1". The H code moves the text horizontally.
To place text below previous text, it is necessary to back up e.g. :H-30: and drop down .e.g. :V-20:.
In the previous, the numerals represent distance in points. You can also move horizontally and vertically in term of blank lines by adding a Q after the numeral, e.g. :V-2Q:.
Although not demonstrated here, there is also a C function code that puts in a carriage return.

The integral math symbol is by default the same size as the regular text. We blow this up using the X and Y function codes. After this symbol, we need to reset those back to normal.
In both equations, the function code S is used to superscript and the function code B is used to subscript. N returns the text to the main line.


This creates and plots each item as a separate string. It then combines them into the desired string. In this case, spaces are manually added.