Syntax
h=PLELplot(PL,EL,[c,w])
Input Parameter
PL : | | Point list of x/y coordinates nx2 |
EL : | | Edge list |
c : | | Color and symbol of points |
w : | | Width of the used line |
Output Parameter
Copyright 2013-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Algorithm (Workflow)
This function, PLELplot
, is designed to plot a 2D contour using a list of points and edges. It is part of the SolidGeometry library and was introduced by Tim Lueth.
Input Parameters
- PL: A point list containing x/y coordinates in an nx2 matrix format.
- EL: An edge list that defines connections between points.
- c: (Optional) A string specifying the color and symbol of the points. Default is 'r*-'.
- w: (Optional) A number specifying the width of the line used in the plot. Default is 1.
Output
- h: Handles to the lines created in the plot.
Algorithm Steps
- Retrieve the color and symbol for the points using
getfuncparams
with a default of 'r*-'.
- Retrieve the line width using
getfuncparams
with a default of 1.
- Check if the edge list
EL
is empty:
- If
EL
is empty, modify the color string to remove line styles and call PLplot
with the point list PL
, color, and width. Return the handle.
- Initialize a zero vector
h
with the same number of rows as EL
.
- Iterate over each edge in
EL
:
- For each edge, extract the corresponding points from
PL
using the indices in EL
.
- Call
PLplot
with the extracted points and any additional arguments passed to PLELplot
.
- Store the handle returned by
PLplot
in the vector h
.
Algorithm explaination created using ChatGPT on 2025-08-18 22:59. (Please note: No guarantee for the correctness of this explanation)
Last html export of this page out of FM database by TL: 2025-09-21