Biologie et InformatiqueAMAPmod Reference manual crochet AML functions by module
crochet Aide
Retour à la page d'accueilPart OnePart TwoFile exampleBibliographyIndexSite Map
Plot, NewPlot
Plot an object to the screen.
Usage
Plot(obj)
Plot(obj, Window-> w)
NewPlot(obj)
Arguments
obj (T) : the object can have any type.
Optional Arguments
Optional arguments can exist depending on the type of the first argument.
Window (WINDOW) : enables the user to redirect a plot to a given graphic window. See function NewPlot for a description of how to create new graphic windows.
Returned Object
Plot returns no value. NewPlot returns a new WINDOW object.
Description
Many AML object have a graphical representation. Plot displays these graphic representations to the screen. whenever they exist. See the object constructors for more details and a list of optional arguments.
See Also
Load, Object constructors, Display, Save.
Examples
AML># Plotting an array
AML> a1 = [10,12,3,14,10,6] # builds a simple array.
AML> Plot(a1) # Plot the array
AML> a2=[1,10,-4,-1,0,2] # builds a second array.
AML> w = NewPlot(a2) # Plot the array in another window
AML> a3=[100,109,154,125,156,203] # builds a third array.
AML> Plot(a3, Window->w) # Plot the array in the second
# window and replaces the plot of a2
AML> # Plotting a MTG
AML> g = MTG("myplant.mtg") # builds a MTG.
AML> F = PlantFrame(VtxList(Scale->@1) #Builds a geometric
# interpretation of the first
# branching system of g
AML> Plot(f) # gives a default visual
# interpretation of the MTG