15. Overview HatchΒΆ
Example
x = [1,2,3]
y = [1,5,2]
h = plot(x, y)
hPage = h[1]
hData = h[3]
XYShowHatch(hData, 1)
hHatch = XYGetHatch(hData)
HatchSetColor(hHatch, [255, 0, 0])
XYSetHatch(hData, hHatch)
HatchDestroy(hHatch)
PageReplot(hPage)
Create and Destroy |
|
---|---|
HatchCreate creates a hatch object. A hatch object is used for x/y datasets. |
|
HatchDestroy destroys the given hatch object and frees any memory the object occupied. |
Set |
|
---|---|
HatchSetColor sets the hatch line color. |
|
HatchSetDistance sets the distance between the hatch lines |
|
HatchSetOffset sets the offset of the hatch origin. |
|
HatchSetStyle sets the hatch style. |
|
HatchSetWidth sets the hatch line width in 0.1 mm steps. |
Get |
|
---|---|
HatchGetColor returns the hatch line color. |
|
HatchGetDistance returns the distance between the two hatch lines in centimeters. |
|
HatchGetOffset returns the offset to the hatch origin in centimeters. |
|
HatchGetStyle returns the hatch style. |
|
HatchGetWidth returns the hatch line width in steps of 0.1 mm. |
See also
id-1537257