Scientific Traces
-
The data from which contour lines are computed is set in
z.Data in
See morezmust be a {2D array} of numbers. Say thatzhas N rows and M columns, then by default, these N rows correspond to N y coordinates (set inyor auto-generated) and the M columns correspond to M x coordinates (set inxor auto-generated). By settingtransposeto true, the above behavior is flipped. -
The data describing carpet axis layout is set in
yand (optionally) alsox.If only
See moreyis present,xthe plot is interpreted as a cheater plot and is filled in using theyvalues.xandymay either be 2D arrays matching with each dimension matching that ofaandb, or they may be 1D arrays with total length equal to that ofaandb. -
Plots contours on either the first carpet axis or the carpet axis with a matching
carpetattribute.Data
See morezis 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 morezcan either be a {2D array} of values (ragged or not) or a 1D array of values. In the case wherezis a {2D array}, say thatzhas 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 inzis 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 wherezis a 1D {array}, the x and y coordinates must be provided inxandyrespectively 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.sizeand/ormarker.colorto 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.sizeand/ormarker.colorto 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,ctriplets. -
An indicator is used to visualize a single
valuealong with some contextual information such asstepsor 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
View on GitHub
Install in Dash
Scientific Traces Reference