03.03. Plotting points

03.03. Изображение точек

The plot command can also plot one or more points.

Команда plot может привязывать к системе координат отдельно взятые точки.

Plot the point (2,3) .

Изобразим на плоскости точку с координатами (2;3):

 
  > plot([ [2,3] ],style=point);  

[Maple Plot]

 

Note in the following line that we use two sets of square brackets.

Обратите внимание на использование квадратных скобок.

Изобразить на плоскости точку с координатами (2;3):

 
  > plot([ [2,3] ],style=point);  

[Maple Plot]

 

We can control the size of the x and y ranges shown by adding these to the command as in the next line.

Как и ранее, мы можем контролировать диапазон изменения абсцисс и ординат:

 
  > plot([ [2,3] ], x=-7..7,y=-7..7,style=point);  

[Maple Plot]

 

To graph more than one point list them in the plot command. Note the commas. Remember square brackets for each point and an extra pair of square brackets surround the list.

Для нанесения на плоскость сразу нескольких точек, в команду plot следует встроить список их координат:

 
  > plot([ [2,3],[-2,5],[1,-4] ], x=-7..7,y=-7..7,style=point);  

[Maple Plot]

 

Changing style to "line" connects the points in the order listed.

Если в предыдущем примере стиль " point " изменить на " line ", то Maple изобразит ломаную, соединяющую указанные точки:

 
  > plot([ [2,3],[-2,5],[1,-4] ], x=-7..7,y=-7..7,style=line);  

[Maple Plot]

 

Optional extensions can be used to specify point color and symbol (e.g. diamond, circle, cross is default) to indicate the points.

Кроме всего прочего, Вы можете дополнительно указать цвет и символ, посредством которых отмечается на плоскости точка (алмаз( diamond ), круг ( circle ), а по умолчанию - крестик ( cross )):

 
  > plot([[3,2],[-2,3],[2,-1]], style=point,color=blue,symbol=circle);  

[Maple Plot]

 

С официального разрешения                    © 2002 Waterloo Maple, Inc

 

Hosted by uCoz