Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
plots[polygonplot] - create a plot of one or more polygons
Calling Sequence
polygonplot(L, options)
polygonplot(A, options)
polygonplot(v1, v2, options)
Parameters
L
-
list of polygon vertices, each given as a two-element list
A
n by 2 Matrix, where n is any positive integer
v1, v2
Vectors of the same length
options
(optional) equations of the form option=value, where option is any of the available plot options
Description
The polygonplot command is used to create a 2-D plot of a polygon. The polygon's vertices are provided as the list L, the Matrix A, or the Vectors v1 and v2.
The list L must contain 2-element lists or Vectors [x, y], each representing the numeric x- and y-coordinates of a vertex.
The Matrix must be n by 2, where n is any positive integer. Each row of the Matrix contains the x- and y-coordinates of a vertex. If a 2 by n Matrix is given, with n not equal to 2, then it will be automatically transposed. The Vectors, representing the x-coordinates and the y-coordinates of the vertices respectively, can have any length, but both must have the same length.
If you have a very large number of points, it is recommended that you provide the data as a Matrix with datatype set to float.
Remaining arguments are interpreted as options which are specified as equations of the form option = value. These options are the same as those available for the plot command, as described in plot options.
Multiple polygons may be plotted by providing a list containing polygons in the list or Matrix form, as described above. In this case, the color option value can be a list of n colors, where n is the number of polygons.
Examples
The command to create the plot from the Plotting Guide is
The style option controls how the polygon is drawn. In the next example, the same polygon is drawn without the border.
See Also
Matrix, plot, plot/color, plot/option, plot/style, plots/polygonplot3d
Download Help Document