Syntax
h=CPLplothatched(CPL,[c,al])
Input Parameter
CPL : | | CPL |
c : | | color |
al : | | [alpha; width, distance] |
Output Parameter
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
- CPL: The main input, representing the Contour Path Line to be plotted.
- c: An optional parameter for color. If not provided, it defaults to 'r' (red).
- al: An optional parameter that defines the hatch pattern. It is an array with three elements: [alpha, width, distance]. If not provided, it defaults to [60, 0, 4].
Output
- h: A handle to the plot, which can be used for further manipulation or querying of the plot.
Algorithm Steps
- The function starts by retrieving the color parameter
c
using getfuncparams
. If not specified, it defaults to 'r'.
- It then retrieves the hatch pattern parameters
al
using getfuncparams
. If not specified, it defaults to [60, 0, 4].
- The function calls
CPLhatch
with the CPL and the hatch pattern parameters al(2:3)
and al(1)
to generate the hatched pattern.
- 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