Pixels
Pixels
is a plot object that can be
used to visualize large data sets of scattered points.
When you have large data sets, some of the data points may overlap
(i.e. they are drawn at the same pixel). In this case, you can display
them as an adaptive histogram: The Pixels
object automatically
counts the number of data points that overlap in a single pixel. This
data can then be used to change the color and/or opacity of the
pixels. Kontrast automatically updates the number of overlapping data
points (the 'count'
) whenever the axis limits, axis
mappings or the data itself is changed. See also
Example: Pixel plot.
Data input
Valid data for a pixel-plot can be either an array of numbers or a single number, assigned to an axis.
For color and opacity axes, you can use the special value
'count'
instead of a number or an array. This indicates
to Kontrast that the count of data points overlapping in each pixel is
used as data for the specific axis.
Interface
Please also refer to the documentation for all plot objects.
Properties
-
abscissa
:KontrastNumber
(default value:0
)The abscissa value used whenever no data is assigned to an abscissa.
-
ordinate
:KontrastNumber
(default value:0
)The ordinate value used whenever no data is assigned to an ordinate.
-
applicate
:KontrastNumber
(default value:0
)The applicate value used whenever no data is assigned to an applicate.
-
color
:KontrastColor
(default value:'black'
)The color used whenever no data is assigned to a color axis.
-
opacity
:KontrastNumber
(default value:1
)The opacity used whenever no data is assigned to an opacity axis.