11-17-2013 04:38 AM
I thought I had reported it before - but couldn't find the post nor a known issue...
I have a XY graph with plotted waveforms. All fine. Then I change the Y scale from lin to log and the mess happens, see below.
The left image shows the graph border with a linear Y scale, the right image after changing programmatically to log scale
Solved! Go to Solution.
11-17-2013 11:39 PM
The list of strage things you're finding in CVI2013 is growing more and more... ![]()
Can this one be fixed by calling SetCtrlAttribute (..., ..., ATTR_YPRECISION, 0); after setting the map mode to VAL_LOG ?
11-18-2013 12:33 AM - edited 11-18-2013 12:36 AM
I wouldn't necessarily blame 2013 for this, graph issues did exist before ![]()
I will try your suggestion and report back - but I doubt it's relevant for another issue: did you realize that there are two identical labels of '0'?
My problem is more that NI will request a demo project - and this can take some time, my time...
The reason is that this effect does depend on the axis range, it does not always show up...
11-18-2013 03:41 AM
Yes, I had seen the two '0' labels and this fact puzzled me a bit. I supposed that having a fixed scale precision the label generation would be more correct.
It's more or less a blind shot, but it may worth trying it.
11-18-2013 07:01 AM
OK,
I was playing more and can add some details, hopefully sufficient to reproduce the issue:
Plotted is a Gaussian with the parameters 1.0, 3.0e-3, 2.0e-5. For these values changing map mode to log scale works correctly. Now, if I replot the waveform with changed parameters (0.999, 3.0e-3, 2.0e-5), i.e. a slightly reduced amplitude, log scale goes wrong.
Adding the attribute of 0 precision as kindly suggested by Roberto helps to remove the many digits, but it does not help with respect to the number of labels and the issue of identical labels (see the second graph below).
In a next step I replotted the graph, now with the original parameters, but the log scale does not revert to the correct scaling, although formally the identical function is plotted.
If I change the amplitude parameter of my Gaussian function to 10.0 I get a different scaling, but overall it is not much better: Somehow, some decades are omitted, there is no major tick for 100000, 10000, 1000, 100, 10 - only the 1 and two times a mysterious 0. (third graph below)
11-20-2013 10:49 AM
I am sooo nice ![]()
Attached is a demo showing the bug
11-27-2013 12:50 AM
... I don't know what to say... ![]()
I would like to have this fixed (soon), but NI does not even want to take note...
hello...., is there anybody out there?
11-27-2013 04:07 PM
Hello Wolfgang,
First of all, thank you for providing this demonstration, and as always, thank you for your valued feedback. I have created a bug report (ID: 438812) to track this issue.
Thank you,
Daniel
08-06-2015 02:35 AM
This issue also has been solved (in CVI2013 SP1) ![]()