CPLplothatched

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Visualization
Introduced first in SolidGeometry 5.2, Creation date: 2022-05-20, Last change: 2025-09-15

plots a CPL including hatch



See Also: CPLhatch

Example Illustration

 missing image of CPLplothatched(CPL,c,al)

Syntax

h=CPLplothatched(CPL,[c,al])

Input Parameter

CPL: CPL
c: color
al: [alpha; width, distance]

Output Parameter

h: handle to go

Examples


SGfigure; CPLplothatched(CPLsample(21),'b',[80 .4]); shg




Copyright 2022-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, CPLplothatched, is designed to plot a Contour Path Line (CPL) with a hatched pattern. It is part of the SolidGeometry library and was introduced in version 5.2. The function takes in a CPL and optional parameters for color and hatch pattern, and returns a handle to the plot.

Input Parameters

Output

Algorithm Steps

  1. The function starts by retrieving the color parameter c using getfuncparams. If not specified, it defaults to 'r'.
  2. It then retrieves the hatch pattern parameters al using getfuncparams. If not specified, it defaults to [60, 0, 4].
  3. The function calls CPLhatch with the CPL and the hatch pattern parameters al(2:3) and al(1) to generate the hatched pattern.
  4. Finally, it plots the CPL using CPLplot and the hatched pattern using CPSplot, both with the specified color c. The handles to these plots are combined and returned as h.
Algorithm explaination created using ChatGPT on 2025-08-18 22:27. (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