Example Commands

This page has examples of usage for some commands. Click on the command name at the beginning of each section to see the manual entry for that command.
blendfunction

blend sa msa
To set the blendfunction to the default.

blend one one
To set the blendfunction to a painting mode.


nbeads

nbeads 55
To set the number of beads to 55.

nbeads mult 2
To multiply the number of beads by 2.

nbeads mult .6
To multiply the number of beads by 0.6.

nbeads -102
To decrease the number of beads by 102.

nbeads +33
To increase the number of beads by 33.

nbeads +1
or
nbeads +
To increase the number of beads by one.

nbeads -1
or
nbeads -
To decrease the number of beads by one.


path

Normally, one gets the something like the following when this command is used without an argument:

KnotPlot> path
Current write path:
              >.<
              >/tmp<


Current read path:
              >.<
              >/grads/scharein/knotplot/basic<
              >/grads/scharein/knotplot/special<
              >/grads/scharein/knotplot/demos<
              >/grads/scharein/knotplot/unknots<
              >/tmp<

The read path indicates the order directories are seached when loading either knots using the load command or when reading in a script using the < command. This allows you to easily override the default knot catalogue contained in the basic directory or the default demos appearing on the demo panel. You would do this by simply having a file with the same name as one in the above named directories. When KnotPlot searches for the file, it will find the one in the current directory (.) first.


spactivate

The following script causes only the polar caps and a band 10 degrees around the equator to be displayed.

spact -90 90 off % Turns everything off.
spact -90 -80 % Turns south polar cap on.
spact 90 80 % Turns north polar cap on.
spact -10 10 on % Turns equatorial band on.

Notice that the order of the arguments Lb and Le is irrelevant.


special

To turn on drawing of the spin plane and the bead labels, issue the following commands:

special spin
special +label

Note that this could be done easier using the main control panel's radio button.


4dplane

The following sequence of commands will set the 4D rotation planes to their default values:

4dplane 0 0 3 % First rotate in x-w plane.
4dplane 1 1 2 % Then rotate in y-z plane.
4dplane 2 2 3 % Finally rotate in z-w plane.

An different sequence of commands will set the 4D rotation planes to an interesting alternative:

4dplane 0 0 3 % First rotate in x-w plane.
4dplane 1 1 3 % Then rotate in y-w plane.
4dplane 2 2 3 % Finally rotate in z-w plane.


[KnotPlot Manual], [View Window], [Control Panel], [Command Window], [Overview]
[Rob Scharein's main WWW site], [KnotPlot Site]