Setting m_chart.ViewXY.YAxes[0].ScaleType to logarithmic has no effect on IntensityGrids.
Linear scaling:
Logarithmic scaling:
Expected: most of the image to be blue, few coloured lines at the top
ViewXY,IntensityGrid - logarithmic Y axis
Moderator: Queue Moderators
ViewXY,IntensityGrid - logarithmic Y axis
- Attachments
-
- FormIntensityLog.zip
- Source based on "Heat map" demo
- (1.5 KiB) Downloaded 1547 times
Re: ViewXY,IntensityGrid - logarithmic Y axis
View3D seems to work correctly, I will try to see how much time it would take me to switch over.
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewXY,IntensityGrid - logarithmic Y axis
Hi,
set grid.PixelRendering = False.
PixelRendering uses a bitmap (texture) directly composes from source data, and it doesn't have any logarithmic translation. It is just evenly spaced grid.
By setting PixelRendering = false, the grid coordinates are applied with a logarithmic translation.
We are sorry for the confusion, but currently there's no way to make PixelRendering = True work with logarithmic spacing of data.
set grid.PixelRendering = False.
PixelRendering uses a bitmap (texture) directly composes from source data, and it doesn't have any logarithmic translation. It is just evenly spaced grid.
By setting PixelRendering = false, the grid coordinates are applied with a logarithmic translation.
We are sorry for the confusion, but currently there's no way to make PixelRendering = True work with logarithmic spacing of data.
LightningChart Support Team, PT
Re: ViewXY,IntensityGrid - logarithmic Y axis
Confirm, disabling PixelRendering works. Thank you.
Could you please add this kind of information to the documentation?
Could you please add this kind of information to the documentation?
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewXY,IntensityGrid - logarithmic Y axis
Absolutely, we added this note in PixelRendering property remarks in v.6.5.5 assembly pack that was just released.
Also updated User's manual http://arction.com/download/lightningch ... manual.pdf, regarding this.
Also updated User's manual http://arction.com/download/lightningch ... manual.pdf, regarding this.
LightningChart Support Team, PT
Re: ViewXY,IntensityGrid - logarithmic Y axis
There seems to be an issue with the combination of AutoAdjustMargins = true and LabelsNumberFormat = "g"
It looks like the default number format is used to calculate the width of the axis instead of the provided one.
By default, all values below 0.1 would be 0.0, and above 1 zeroes are added (e.g. 10000000).
Note that number labels and AxisLabel are overlapping, which does not happen with the default configuration.
I added a sample project which reproduces the problem.
It looks like the default number format is used to calculate the width of the axis instead of the provided one.
By default, all values below 0.1 would be 0.0, and above 1 zeroes are added (e.g. 10000000).
Note that number labels and AxisLabel are overlapping, which does not happen with the default configuration.
I added a sample project which reproduces the problem.
- Attachments
-
- AL_LogAutoScale.zip
- Sample code
- (11.47 KiB) Downloaded 1418 times
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewXY,IntensityGrid - logarithmic Y axis
Please set
axis.AutoFormatLabels = false;
Then the LabelsNumberFormat applies and margin is resized correctly.
axis.AutoFormatLabels = false;
Then the LabelsNumberFormat applies and margin is resized correctly.
LightningChart Support Team, PT
Re: ViewXY,IntensityGrid - logarithmic Y axis
I changed line 167 of Form1.cs in my sample code. That does make it better, but...
After each ResetZoom (via mouse), the axis is scaled correctly. Zooming or panning will cause a resize that has too much space: (Lightning Charts 6.5.6)
After each ResetZoom (via mouse), the axis is scaled correctly. Zooming or panning will cause a resize that has too much space: (Lightning Charts 6.5.6)
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewXY,IntensityGrid - logarithmic Y axis
OK, there is problem. Fix will be in the next assembly pack in a month. We haven't prepared for a use case like this.
Meanwhile, you may want to disable automatic margins and calculate the margins yourself with aid of chart.MeasureText method.
Meanwhile, you may want to disable automatic margins and calculate the margins yourself with aid of chart.MeasureText method.
LightningChart Support Team, PT
- ArctionNikolai
- Posts: 38
- Joined: Fri Feb 05, 2016 11:37 am
- Location: Finland
- Contact:
Re: ViewXY,IntensityGrid - logarithmic Y axis
Good evening, this problem was fixed and will be included in the next assembly pack. It was tested with your attached project with name "AL_FontSize". We apologize for inconvenience.ahe wrote:I changed line 167 of Form1.cs in my sample code. That does make it better, but...
After each ResetZoom (via mouse), the axis is scaled correctly. Zooming or panning will cause a resize that has too much space: (Lightning Charts 6.5.6)
Best regards,
Nikolai Arsenov
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland
Software developer
Arction Ltd
Microkatu 1, 70210 Kuopio, Finland
Re: ViewXY,IntensityGrid - logarithmic Y axis
After one of our testers notified me, I was able to reproduce this odd behaviour with my sample application (AL_FontSize):
Same with 6.5.6 and 6.5.7
--Andreas
Same with 6.5.6 and 6.5.7
--Andreas