Scientific Traces
-
The data from which contour lines are computed is set in
z
.Data in
See morez
must be a {2D array} of numbers. Say thatz
has N rows and M columns, then by default, these N rows correspond to N y coordinates (set iny
or auto-generated) and the M columns correspond to M x coordinates (set inx
or auto-generated). By settingtranspose
to true, the above behavior is flipped. -
The data describing carpet axis layout is set in
y
and (optionally) alsox
.If only
See morey
is present,x
the plot is interpreted as a cheater plot and is filled in using they
values.x
andy
may either be 2D arrays matching with each dimension matching that ofa
andb
, or they may be 1D arrays with total length equal to that ofa
andb
. -
Plots contours on either the first carpet axis or the carpet axis with a matching
carpet
attribute.Data
See morez
is interpreted as matching that of the corresponding carpet axis. -
The data that describes the heatmap value-to-color mapping is set in
z
.Data in
See morez
can either be a {2D array} of values (ragged or not) or a 1D array of values. In the case wherez
is a {2D array}, say thatz
has N rows and M columns. Then, by default, the resulting heatmap will have N partitions along the y axis and M partitions along the x axis. In other words, the i-th row/ j-th column cell inz
is mapped to the i-th partition of the y axis (starting from the bottom of the plot) and the j-th partition of the x-axis (starting from the left of the plot). This behavior can be flipped by usingtranspose
. Moreover,x
(y
) can be provided with M or M+1 (N or N+1) elements. If M (N), then the coordinates correspond to the center of the heatmap cells and the cells have equal width. If M+1 (N+1), then the coordinates correspond to the edges of the heatmap cells. In the case wherez
is a 1D {array}, the x and y coordinates must be provided inx
andy
respectively to form data triplets. -
The scatterpolar trace type encompasses line charts, scatter charts, text charts, and bubble charts in polar coordinates.
The data visualized as scatter point or lines is set in
See morer
(radial) andtheta
(angular) coordinates Text (appearing either on the chart or on hover only) is viatext
. Bubble charts are achieved by settingmarker.size
and/ormarker.color
to numerical arrays. -
The scatterpolargl trace type encompasses line charts, scatter charts, and bubble charts in polar coordinates using the WebGL plotting engine.
The data visualized as scatter point or lines is set in
See morer
(radial) andtheta
(angular) coordinates Bubble charts are achieved by settingmarker.size
and/ormarker.color
to numerical arrays. -
Provides similar functionality to the scatter type but on a ternary phase diagram.
The data is provided by at least two arrays out of
See morea
,b
,c
triplets. -
An indicator is used to visualize a single
value
along with some contextual information such assteps
or athreshold
, using a combination of three visual elements: a number, a delta, and/or a gauge.Deltas are taken with respect to a
See morereference
. Gauges can be either angular or bullet (aka linear) gauges.Declaration
Swift
public struct Indicator : Trace, DomainSubplot