3. Overview XYZ-Datasets¶
Create and Destroy |
|
---|---|
XYZCreate creates a new 3D dataset. The 3D dataset can be created from scattered XYZ triples or from a rectangular grid (matrix). |
|
The XYZDestroy destroys a dataset created with XYZCreate or XYZCreateFromMatrix. |
|
XYZCreateFromMatrix creates a 3D dataset. |
A simple way to set attributes of a 3D dataset is using the XYZSetProps function (since UniPlot 4.0.3).
UniPlot uses for isolines a table for 100 isoline values. The table sets the isoline value, fill color and line style.
Index |
Iso-Value |
Fill-Color |
Iso-Pen |
---|---|---|---|
0 |
|
red |
|
1 |
100 |
green |
solid-1-black |
2 |
200 |
blue |
solid-1-black |
3 |
|||
… |
|||
99 |
The entry with index 0 only sets the fill color (XYZSetFillMinColor).
The column Iso-Value can be modified with XYZAddIsoValues, XYZSetIsoValues and XYZDeleteIsoValues.:ref:XYZGetNumberOfIsoValues returns the number of specified values.
The column Fill-Color can be modified with XYZSetFillColors and Iso-Pen with XYZSetPens.
Example (The arrow in the first column shows the value:ref:XYZGetNumberOfIsoValues would return):
Index |
Iso-Value |
Fill-Color |
Iso-Pen |
---|---|---|---|
0 |
|
red |
|
1 |
100 |
green |
solid-1-black |
2 |
200 |
blue |
solid-2-black |
3 |
300 |
white |
solid-3-black |
->4 |
400 |
black |
solid-4-black |
XYZSetIsoValues(hData, [200,300])
will modify the table to
Index |
Iso-Value |
Fill-Color |
Iso-Pen |
---|---|---|---|
0 |
|
red |
|
1 |
200 |
blue |
solid-2-black |
->2 |
300 |
white |
solid-3-black |
XYZAddIsoValues(hData, [250,350])
will modify the table to
Index |
Iso-Value |
Fill-Color |
Iso-Pen |
---|---|---|---|
0 |
|
red |
|
1 |
200 |
blue |
solid-1-black |
2 |
250 |
blue |
solid-1-black |
3 |
300 |
white |
solid-3-black |
->4 |
350 |
white |
solid-3-black |
Miscellanies (Set) |
|
---|---|
XYCopyConfig copies the style properties from the source 1D or 2D dataset to the destination 1D or 2D dataset. |
|
XYConfigDlg displays a dialog box for the given 3D dataset. |
|
XYZCopy creates a copy of a 3D dataset. |
|
XYZCopyConfig copies the style properties from the source 3D dataset to the destination 3D dataset. |
|
XYZSetBubbleAttribute sets the bubble plot attributes. |
|
XYZSetBubbleScaleValues sets the scale values to calculate the bubble size. |
|
XYZSetBubbleSize sets the bubble size in centimeters. |
|
XYZSetDefault sets all dataset properties of a 3D dataset to default. |
|
XYZSetProps sets the dataset properties of a 3D dataset. |
|
XYZSetSelect selects the dataset. In the diagram, the selected dataset will be marked with 3 small rectangles at each isoline. |
|
XYZShow turns a dataset on or off. |
|
XYZShowBubble shows or hides bubbles marking the original position of the data points. The bubble size and fill color can depend on the Z-Value. |
|
XYZShowTriangulation shows or hides the triangulation of the irregularly distributed data. |
|
XYZUpdate updates the configuration of a 3D dataset. This function should be called up after any changes have been made to a 3D dataset. |
Miscellanies (Get) |
|
---|---|
XYZGetBubbleAttribute returns the bubble plot settings. |
|
XYZGetBubbleSize returns the bubble scaling values. |
|
XYZGetBubbleSize returns the bubble diameter in centimeters. |
|
XYZGetProps returns the dataset properties of a 3D dataset (x/y/z). |
|
XYZIsBubbleVisible indicates whether the bubbles are visible. |
|
XYZIsSelected checks it the dataset is selected. |
|
XYZIsTriangulation indicates whether the triangulation is visible. |
|
XYZIsVisible determines whether a dataset is visible. |
Isolines (Set) |
|
---|---|
XYZAddIsoValues inserts isolines to a 3D dataset. |
|
XYZDeleteIsoValues deletes isoline values. |
|
XYZDeleteLinesInRect deletes all isolines that intersect a rectangle. |
|
XYZEnableColorMap enables the use of the specified color map for a contour map or 3D surface map. |
|
XYZIsIsolinesVisible returns a nonzero value if the isolines are visible; otherwise 0. |
|
XYZSetColorMap sets a color map name used to fill a contour map or 3D surface map. |
|
XYZSetFill switches the color gradient for the isoline diagram on or off. |
|
XYZSetFillColors sets the fill color for areas between isolines (i.e. to the color grade of the 3D surface). |
|
XYZSetFillMinColor sets the fill color for areas in which the z-value is smaller than the smallest isoline value. |
|
XYZSetIsoValues sets the isoline values. |
|
XYZSetIsoValuesScaleType specifies how the isoline values are calculated (atuomatically or manually). |
|
XYZSetPens sets the pens to plot the isolines. |
|
XYZSetSpline determines if the isolines appear as splines or polygons. |
|
XYZShowIsolines shows or hides the isolines. |
Isolines (Get) |
|
---|---|
XYZGetAutoScaleValues returns a vector with automatically calculated isoline values. |
|
XYZGetColorMap returns the name of a color map used to fill the areas of a contour map. |
|
XYZGetFillColors returns the colors used to fill between the isolines of a 3D dataset. |
|
XYZGetFillMinColor returns the fill color for areas in which the z-value is smaller than the smallest isoline value. |
|
XYZGetIsoAreas returns the area between the isolines as a percent value of the complete map. |
|
XYZGetIsoValues returns the isoline values. |
|
XYZGetIsoValuesScaleType returns information about the autoscaling of isoline values (Autoscale On/Off, Type, Number of values). |
|
XYZGetIsoline retrieves the isoline x/y coordinates of a 3D dataset. |
|
XYZGetPens returns a vector with the pen handle for the isolines. |
|
XYZIsColorMapEnabled returns TRUE (1), if the color map is used. |
|
XYZIsFilled indicates whether the area between the isolines is color filled or not. |
|
XYZIsSpline checks if the isoline points are connected by a spline. |
Isoline Label (Set) |
|
---|---|
XYZInsertLabel lables isolines with their z-values. |
|
XYZSetIsoLabelFont sets the font style for isoline labels. |
|
XYZSetLabelFormat sets the label format for isolines, data points and the Full Load Line (WOT line). |
|
XYZSetLabelFormatType specifies how the decimal places of isoline values are calculated (manually or automatically). |
|
XYZSetLabelOrientation sets the isoline labels horizontally or on the grade of the isoline. |
|
XYZSetLabelTypeIsolines specifies how the isoline labels are placed in the dataset. |
|
XYZShowLabelInABox specifies if the isoline labels appear in boxes. |
|
XYZShowLabelInLineColor determines that the isoline labels will be plotted in the same color as the isolines. |
|
XYZShowLabelTransparent specifies if the isoline labels are plotted transparent or with a white background. |
Isoline Label (Get) |
|
---|---|
XYZDeleteLabel deletes isoline labels inside a rectangle. |
|
XYZGetIsoLabelFont returns the font style for the isoline labels. |
|
XYZGetLabelFormat returns the number format for isoline labels, data point labels and the Full Load Line (WOT) labels. |
|
XYZGetLabelFormatType returns a value that specifies how the decimal places of isoline labels are created (manually or automatically). |
|
XYZGetLabelOrientation returns the orientation of the isoline labels. |
|
XYZGetLabelTypeIsolines returns the isoline label settings. |
|
XYZIsLabelInABox determines if the isoline labels appear in boxes. |
|
XYZIsLabelTransparent determines if the isoline labels are plotted transparent or with a white background. |
Hull (Set) |
|
---|---|
XYZSetHullLabelDistance sets the length of the help line between the hull point and the label. |
|
XYZSetHullNewData creates a new data hull that can also contain islands. |
|
XYZSetHullPen sets the pen style for the hull. |
|
XYZSetHullSpline specifies if the north part of the hull should appear as a spline. |
|
XYZSetHullType sets the hull type. |
|
XYZShowHullLabel shows or hides the hull label. |
|
XYZShowHullLabelHorizontal determines if the hull label appears horizontally or vertically. |
Hull (Get) |
|
---|---|
XYZGetHullData returns the data hull. |
|
XYZGetHullLabelDistance returns the distance of the hull labels to the hull line in centimeters. |
|
XYZGetHullPen returns the pen handle used to draw the hull line. |
|
XYZGetHullType returns the the hull type. |
|
XYZIsHullLabelHorizontal indicates whether the isoline labels are plottet horizontal or vertical. |
|
XYZIsHullLabelVisible indicates whether the dataset hull is labeled or not. |
|
Data and Interpolation (Set) |
|
---|---|
XYZSetData sets the xyz-coordinates of a dataset. |
|
See XYSetDataSource |
|
XYZSetInterDensity set the number of rows and columns in the interpolation matrix. |
|
XYZSetInterOnGrid specifies if the area and the number of rows and columns of the interpolation matrix agree with the scaling of the x- and y-axes. |
|
XYZSetInterRange sets the coordinate range of the interpolation matrix on the x/y-plane. |
|
XYZSetInterSmooth sets the smoothing factor for the interpolation of the data matrix. |
|
XYZSetInterpolationType sets the interpolation type. |
|
XYZSetMatrixRange sets the range of the data matrix in the x/y-plane. |
Data and Interpolation (Get) |
|
---|---|
XYZGetData returns the original data points. |
|
See XYGetDataSource |
|
XYZGetInsideMatrix returns a matrix. |
|
XYZGetInterDensity returns the number of rows and columns of the interpolation maltrix. |
|
XYZGetInterSmoothFactor returns the smooth factor |
|
XYZGetInterpolZValues returns a vector with z-coordinates. |
|
XYZGetInterpolationType returns the interpolation type. |
|
XYZGetMatrix returns the interpolated matrix. |
|
XYZGetMatrixColData returns the x-coordinates. |
|
XYZGetMatrixRange returns the matrix range in the x/y plane. |
|
XYZGetMatrixRowData returns a vector with y-coordinates. |
|
XYZGetMatrixSize returns the number of rows and columns of the interpolated matrix. |
|
XYZGetNumberOfPoints returns the number of data points (x/y/z-triple) of a 3D dataset. |
|
XYZIsInterOnGrid returns a nonzero value if the interpolation is calculated so that the matrix matches the axes tick marks.; otherwise 0. |
|
XYZIsMatrixOnly checks if the dataset was created from a matrix or from abitray distributed xyz triples. |
Scatter Plot (Set) |
|
---|---|
XYZSetMarker sets the symbol style for the scatter plot. |
|
XYZSetMarkerLabelFont sets the font for data point labels. |
|
XYZSetMaxMarker sets the symbol marking the largest z-value data point. |
|
XYZSetMinMarker sets the symbol marking the smallest z-value data point. |
|
XYZSetScatterLabelOffset sets the offset of the z-labels in the scatter plot. |
|
XYZShowMarker shows or hides symbols marking the original position of the data points. |
|
XYZShowMarkerLabel shows or hides the labels of z-values to mark the position of data points. |
|
XYZShowMarkerLineIndex shows or hides the line index to mark the position of the data points. |
|
XYZShowMaxMarker shows or hides a symbol with label marking the largest z-value data point. |
|
XYZShowMinMarker shows or hides a symbol with a label to mark the data point with the smallest z-value. |
Scatter Plot (Get) |
|
---|---|
XYZGetMarker returns a copy of the marker handle used for the scatter plot. |
|
XYZGetMaxMarker returns a copy of the marker handle used to mark the maximum z-coordinate. |
|
XYZGetMinMarker returns a copy of the marker handle used to mark the minimum z-coordinate. |
|
XYZGetScatterLabelOffset returns the offset of the z-labels in the scatter plot. |
|
XYZIsMarkerLabelVisible returns a nonzero value if the marker labels are visible; otherwise 0. |
|
XYZIsMarkerLineIndexVisible check if the index (line number) of the original data points is visible. |
|
XYZIsMarkerVisible returns a nonzero value if the markers (scatter plot) are visible; otherwise 0. |
|
XYZIsMaxMarkerVisible checks if the maximum marker is displayed. |
|
XYZIsMinMarkerVisible checks if the minimum marker is displayed. |
Surface Plot (Set) |
|
---|---|
XYZSet3DBaseValue defines the value at which the surface outside of the data hull should be set. |
|
XYZSet3DInsideColor sets the color of the 3D surface map inside the data hull. |
|
XYZSet3DInsidePen sets the line style of the 3D surface map grid inside the data hull. |
|
XYZSet3DOutsideColor sets the color of the 3D surface map outside of the data hull. |
|
XYZSet3DOutsideHull sets the appearance of the 3D surface map outside of the data hull. |
|
XYZSet3DOutsidePen sets the line style for the 3D surface map grid outside of the data hull. |
|
XYZSet3DScatterBarWidth sets the width of a 3D scatter bar in a percentage of the diagram size. |
|
XYZSet3DShowIsolines shows or hides isolines of a 3D surface map on or off. |
|
XYZSet3DSurfaceAttrib specifies how the surface grid is plotted. |
|
XYZSet3DSurfaceType sets the style of the 3D surface map. |
Surface Plot (Get) |
|
---|---|
XYZGet3DInsideColor returns the color used to fill the 3D surface inside the data hull or the bars. |
|
XYZGet3DInsidePen returns the line style of the 3D surface map grid lines inside the data hull. |
|
XYZGet3DOutsideColor returns the color used to fill the 3D surface outside the data hull or the bars. |
|
The XYZGet3DOutsideHull sets the display attributes for 3D surface plot outside of the data hull. |
|
The XYZGet3DOutsidePen function returns the line style for the 3D surface map grid outside of the data hull. |
|
The XYZGet3DScatterBarWidth function returns the width of a 3D scatter bar in percentage of the diagram size. |
|
The XYZGet3DSurfaceAttrib funcion returns a value that specifies how the surface grid is plotted. |
|
XYZGet3DSurfaceType returns the style of the surface map. |
|
The XYZGet3DZBaseValue function returns a value to which the surface outside of the data hull is set. |
|
XYZIs3DIsolinesVisible indicates whether the isolines are plottet on the 3D surface. |
Miscellanies (Set) |
|
---|---|
XYCopyConfig copies the style properties from the source 1D or 2D dataset to the destination 1D or 2D dataset. |
|
XYConfigDlg displays a dialog box for the given 3D dataset. |
|
XYZCopy creates a copy of a 3D dataset. |
|
XYZCopyConfig copies the style properties from the source 3D dataset to the destination 3D dataset. |
|
XYZSetBubbleAttribute sets the bubble plot attributes. |
|
XYZSetBubbleScaleValues sets the scale values to calculate the bubble size. |
|
XYZSetBubbleSize sets the bubble size in centimeters. |
|
XYZSetDefault sets all dataset properties of a 3D dataset to default. |
|
XYZSetProps sets the dataset properties of a 3D dataset. |
|
XYZSetSelect selects the dataset. In the diagram, the selected dataset will be marked with 3 small rectangles at each isoline. |
|
XYZShow turns a dataset on or off. |
|
XYZShowBubble shows or hides bubbles marking the original position of the data points. The bubble size and fill color can depend on the Z-Value. |
|
XYZShowTriangulation shows or hides the triangulation of the irregularly distributed data. |
|
XYZUpdate updates the configuration of a 3D dataset. This function should be called up after any changes have been made to a 3D dataset. |
Miscellanies (Get) |
|
---|---|
XYZGetBubbleAttribute returns the bubble plot settings. |
|
XYZGetBubbleSize returns the bubble scaling values. |
|
XYZGetBubbleSize returns the bubble diameter in centimeters. |
|
XYZGetProps returns the dataset properties of a 3D dataset (x/y/z). |
|
XYZIsBubbleVisible indicates whether the bubbles are visible. |
|
XYZIsSelected checks it the dataset is selected. |
|
XYZIsTriangulation indicates whether the triangulation is visible. |
|
XYZIsVisible determines whether a dataset is visible. |
See also
id-893074