Darwin Help

Back to Index

DrawPlot

Function DrawPlot - produce a plot/drawing in a file

Calling Sequence  DrawPlot(p,lo..hi)
DrawPlot(numlist)
DrawPlot(pairlist)
DrawPlot(objlist)
DrawPlot(plotset)
DrawPlot(plotset,lo..hi)
Parameters
NameTypeDescription

p procedurea numerical procedure
lo..hi numeric..numericnumerical range to plot
numlist list(numeric)a list of values joined by lines, the

 values are interpreted as coordinates

 (i,y[i])
pairlist list([numeric, numeric])a list of pairs (x[i],y[i]) joined

 by straight lines
objlist list(object)a list of objects (described below)
plotset set(plots)a list of any of the above plots
 

  The format of the objects in objlist is:



left aligned textLTEXT(x,y,string,points,angle,color)
centered textCTEXT(x,y,string,points,angle,color)
right aligned textRTEXT(x,y,string,points,angle,color)
lineLINE(x1,y1,x2,y2,color,width)
closed polygonPOLYGON(x1,y1,x2,y2,..., fill,color,width)
circleCIRCLE(x,y,radius,fill,color,width)

x,x1,x2,y,y1,..numeric values of coordinates
pointspoints=, size in points of the text
angleangle=, angle of the text in degrees
colorcolor=[r,g,b], values of red/green/blue within 0..1
 (color is incompatible with fill)
fillfill=, fill in color (0-black, 1-white)
 (fill is incompatible with color)
widthwidth=, width of lines in points
Return Type  NULL
Synopsis Plot a set of objects creating PostScript output which is stored in a file. The name of the file can be set using Set(plotoutput). By default it is "temp.ps". It is assumed that all the objects being drawn are on the same x and y coordinates, that is all the x and y values are on the same units. Optional arguments are:

keyworddescription

proportionalcauses identical scaling for x and y axis
axisforces x and y axes to be drawn
gridforces a grid of lines to be drawn
topmargin=xxxx (user) units of space are added at the top
botmargin=xxxx (user) units of space are added at the bottom
leftmargin=xxxx (user) units of space are added as left margin
rightmargin=xxxx (user) units of space are added as right margin
 
See also BrightenColor,   ColorPalette,   DrawDistribution,   DrawDotplot,   DrawGraph,   DrawHistogram,   DrawPointDistribution,   DrawStackedBar,   DrawTree,   GetColorMap,   Plot2Gif,   PlotArguments,   Set,   SmoothData,   StartOverlayPlot,   StopOverlayPlot,   ViewPlot