PLELplot

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - PLEL/Point List/Edge List
Introduced first in SolidGeometry 1.1, Creation date: 2013-12-27, Last change: 2025-09-14

plots a 2D contur by PL and EL

Example Illustration

 missing image of PLELplot(PL,EL,c,w)

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

h: Handles to Lines




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

Output

Algorithm Steps

  1. Retrieve the color and symbol for the points using getfuncparams with a default of 'r*-'.
  2. Retrieve the line width using getfuncparams with a default of 1.
  3. 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.
  4. Initialize a zero vector h with the same number of rows as EL.
  5. 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