|
about Discrete Heat Map |
Posted by peng on Dec-27-2023 19:49 |
|
1、I want to set the scale of ColorAxis to the precision I want, instead of the minimum 5, for example, it can be divided into 1 or 4 scales for one color.See my attachment for details
2、My wafermap increment direction is shown as the arrow, and the X-axis of the Discrete Heat Map and the Discrete Heat Map are opposite. Is there any way to set the Discrete Heat Map coordinate origin and the X-y axis axis increment direction
Thank you very much. Looking forward to your reply.
|
Re: about Discrete Heat Map |
Posted by Peter Kwan on Dec-28-2023 02:32 |
|
Hi Peng,
(1) You can set the color axis scale using Axis.setLinearScale. For example, in C#, it is like:
// Axis scale from 1.1 to 1.2, with a tick every 0.004 unit.
myDiscreteHeatMapLayer.colorAxis().setLinearScale(1.1, 1.2, 0.004);
(2) You can label the x-axis and y-axis in anyway you like. For example, in the sample code below, the x-axis is labelled as "A", "B", "C", "D", .....
https://www.advsofteng.com/doc/cdnet.htm#discreteheatmap.htm
You can certainly change the string array to use .... "3", "2", "1", "0", "-1", "-2", "-3" .... as the labels for both the x-axis and y-axis.
Best Regards
Peter Kwan |
Re: about Discrete Heat Map |
Posted by peng on Dec-28-2023 07:44 |
|
Thank you very much for your answer. I use the C++ version of chart, but I can't find the method setLinearScale in the ColorAxis class in the manual, or should I use setColors to set the scale of colorAxis?
|
Re: about Discrete Heat Map |
Posted by Peter Kwan on Dec-29-2023 01:57 |
|
Hi peng,
The ColorAxis is derived from Axis. It inherits the setLinearScale method from Axis. The following is the list of methods available in the ColorAxis class:
https://www.advsofteng.com/doc/cdcpp.htm#ColorAxis.htm
In your code, after the cAxis->setLabelStyle line, you can add the line:
cAxis->setLinearScale(1.1, 1.2, 0.004);
Best Regards
Peter Kwan |
|