LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
ghighuphu

Executing "bring to center" on a free cursor in a log XY graph should bring the cursor to the center of it (instead of to the top rim of it)

Status: New

Dear LV users,

 

the feature request is based on the following discussion: Executing "bring to center" on a free cursor in a log XY graph brings the cursor to the top rim of t....

 

Selecting "bring to center" for a free cursor in a XY graph does not bring the cursor into the center of the graph, but instead the command brings it to the arithmetic mean/average value. This is not an issue for a linear mapping of the axis [due to the fact that the center of the axis is equal to the middle/average value of the end points on the axis]. But when mapping of the axis is logarithmic, the cursor ends up on the top of the screen. That is because the average value of the end points (min(y_axis)+max(y_axis))/2) is not equal to the center of the axis.

Suggestion: When the mapping of the axis is logarithimc, bring the cursor to its visual center.

 

The suggested equation: 10^(log(min(y_axis))+log(max(y_axis)))/2


Example (applicable for the screenshot): For an y_axis = [0.01..10], the awaited center position would be at 0.316 and not at 5.005 (see attachment, please).

 

Idea Summary: Bring the cursor into a visual center of the graph instead of bringing ot into the arithmetic center

 

Kind regards,

1 Comment
X.
Trusted Enthusiast
Trusted Enthusiast

That sounds like a good idea.

Any developer looking into that would may also want to solve the issues with long computation times involved with log-log or semilog autoscaling (see this thread mentioning it among other issues).