Console menu item pops up a console which will
execute Python code interactivly in Plotter's user namespace. You can
use the console to define Python functions and variables that you want
to be accessible from your Plotter functions, and to control all aspects of
Plotter using the plotter interface functions.
math and plotter
modules are imported to give you access to Python's mathematical functions and
to the Plotter control functions. Setup code is saved when you save a file, and
executed when you load one.
plotter module to do things like setting the axes
and plotting functions. So, to extend Plotter, you can just edit and add to
these scripts.
plotter module provides the interface between user scripts and
the Plotter application. It's functions allow you to control all aspects of
Plotter in an extensible way. This module is imported by default into all
scripts saved from Plotter, and it is what is used to load and save sets of
graphs.
plot(function, [colour, [doredraw]])
function should be a string e.g.
'y = sin(x)', 'r = 3*sin(3*t)' or
'x, y = sin(t), cos(t)'.
colour is a string describing the colour to be used
to plot this function: either a descriptive name such as
'red', or a hexadecimal triplet of the form
'#rrrrggggbbbb'. If no colour is specified, then red is used.
doredraw is a boolean argument specifying
whether the graph should be redrawn. The default is true, so
this parameter can generally be omitted.
add_function()
remove_function()
remove__all_functions()
new_window()
close_window()
save()
save_to_file(filename)
filename.
load_from_file(filename)
filename and execute the commands
that it contains.
zoom(factor)
factor.
center()
pan(dx, dy)
(dx,
dy).
redraw()
show_grid(visible)
set_x_axis(min, max, pitch, [axis, [ticks,
[labels]]])
min, max and pitch
(interval between tick-marks) for the x-axis - these should all be
floating point numbers, with min less than max. Optionally, the last three
boolean arguments set the visibility of the axis, tick-marks and labels.
This function redraws the display after the changes have been made.
set_y_axis(min, max, pitch, [axis, [ticks,
[labels]]])
set_t(min, max, number) number is the number of points to plot for each function.
This function redraws the display after the changes have been made.
show_options()
show_console()
show_help()