Page 1 of 1

ViewXY,IntensityGrid - logarithmic Y axis

Posted: Thu Nov 05, 2015 9:27 am
by ahe
Setting m_chart.ViewXY.YAxes[0].ScaleType to logarithmic has no effect on IntensityGrids.

Linear scaling:
2_Linear.png
2_Linear.png (92.93 KiB) Viewed 19797 times
Logarithmic scaling:
2_Logarithmic.png
2_Logarithmic.png (96.61 KiB) Viewed 19797 times
Expected: most of the image to be blue, few coloured lines at the top

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Thu Nov 05, 2015 9:43 am
by ahe
View3D seems to work correctly, I will try to see how much time it would take me to switch over.

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Fri Nov 06, 2015 10:35 am
by ArctionPasi
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.

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Fri Nov 06, 2015 12:59 pm
by ahe
Confirm, disabling PixelRendering works. Thank you.

Could you please add this kind of information to the documentation?

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Fri Nov 06, 2015 3:16 pm
by ArctionPasi
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.

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Wed Feb 03, 2016 1:49 pm
by ahe
There seems to be an issue with the combination of AutoAdjustMargins = true and LabelsNumberFormat = "g"
logaxis_1.png
logaxis_1.png (44.46 KiB) Viewed 19445 times
logaxis_2.png
logaxis_2.png (43.49 KiB) Viewed 19445 times
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.

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Wed Feb 03, 2016 2:21 pm
by ArctionPasi
Please set
axis.AutoFormatLabels = false;

Then the LabelsNumberFormat applies and margin is resized correctly.

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Wed Feb 03, 2016 2:51 pm
by ahe
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:
logaxis_3.png
logaxis_3.png (45.41 KiB) Viewed 19443 times
(Lightning Charts 6.5.6)

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Thu Feb 04, 2016 4:18 pm
by ArctionPasi
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.

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Wed Feb 10, 2016 3:01 pm
by ArctionNikolai
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:
The attachment logaxis_3.png is no longer available
(Lightning Charts 6.5.6)
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".
Capture.PNG
Capture.PNG (44.29 KiB) Viewed 19359 times
We apologize for inconvenience.
Best regards,

Re: ViewXY,IntensityGrid - logarithmic Y axis

Posted: Wed Feb 24, 2016 2:34 pm
by ahe
After one of our testers notified me, I was able to reproduce this odd behaviour with my sample application (AL_FontSize):
Bug_LogAxis_Drag.png
Bug_LogAxis_Drag.png (131.06 KiB) Viewed 19139 times
Same with 6.5.6 and 6.5.7

--Andreas