Hi Pasi,
I have a question for pixel map representation.
In "IntensityGridSeries" chart, the value is shown at the corners of the grid.
As shown in the first image.
In how it is in the pixel map, since the colored area is the same size as a grid.
As shown in the second image.
Then that's not a false color representation, or I understand that wrong?
What a value representing a pixel?
If it does not look as shown in the third picture?
Pixel Map
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Pixel Map
The intensity points are grid nodes, corners of rectangles and eventually triangles. The PixelRendering style is different, and no color interpolation is made there. We have to render the series as pixel bitmap in the same X/Y range than without PixelRendering.
This is a 4x3 heatmap, with nodes and wireframe visible. 4 nodes in X dim, 3 nodes in Y dim.
When setting this to show as PixelRendering style, it looks like this: 4 rectangles horizontally, 3 rectangles vertically, in same range of 0..100 in both X and Y axis.
To make these rectangles to appear in center of each grid node, you must adjust the grid range a little bit.
cellWidth = (RangeMaxX - RangeMinX)/(SizeX-1)
cellHeight = (RangeMaxY - RangeMinY)/(SizeY-1)
RangeMinX = normalRangeMinX - cellWidth/2.
RangeMaxX = normalRangeMaxX + cellWidth/2.
RangeMinY = normalRangeMinY - cellHeight/2.
RangeMaxY = normalRangeMaxY + cellHeight/2.
Then the heat map shows as:
Don't look at the colors, because they are taken from another random data set, but look at centers of the rectangles.
Did I understand the problem you tried to present correctly?
This is a 4x3 heatmap, with nodes and wireframe visible. 4 nodes in X dim, 3 nodes in Y dim.
When setting this to show as PixelRendering style, it looks like this: 4 rectangles horizontally, 3 rectangles vertically, in same range of 0..100 in both X and Y axis.
To make these rectangles to appear in center of each grid node, you must adjust the grid range a little bit.
cellWidth = (RangeMaxX - RangeMinX)/(SizeX-1)
cellHeight = (RangeMaxY - RangeMinY)/(SizeY-1)
RangeMinX = normalRangeMinX - cellWidth/2.
RangeMaxX = normalRangeMaxX + cellWidth/2.
RangeMinY = normalRangeMinY - cellHeight/2.
RangeMaxY = normalRangeMaxY + cellHeight/2.
Then the heat map shows as:
Don't look at the colors, because they are taken from another random data set, but look at centers of the rectangles.
Did I understand the problem you tried to present correctly?
LightningChart Support Team, PT