LabVIEW Idea Exchange

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

XY Graph: Switching to Log Scale should automatically take the ABS() of the values and "remember" scales.

Status: Declined

Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.

The Proposal:

The XY Graph should be able to switch from a Linear scale to a Logarithmic scale and back again without any fuss. While the VI is running.

 

How it should work:

XY Graph Log Scale 2.png

Notice that the linear scale changes back to -2500 -> 2500 when switching from Log to Linear.

 

 

Here's how it currently works:

XY Lin-Log-Lin.png

(A Hobbit's Tale)

2 things to notice:

1. The Log scale did not automatically take the absolute value of the Y values. This should be optional, with both a Properties Dialog option and with a Property Node available to edit.

2. When changing back to the linear scale, the minimum value remains at 3. It should return to the original autofit scale, which LV chose to be -3000 to 3000.

 

Why This Should Be Done:

Currently, the work around takes up quite a bit of BD space, needs an event structure, and can be memory intensive. If you have data that you want to view on both a linear scale and a logarithmic scale arbitrarily, you need to have, at the very least, a case structure (or Select) that takes the ABS if the scale changes to log.

 

Here's the simple, made-in-10-minutes workaround example of what I'd like the XY Graph to be able to do natively:

XY Lin-Log Example VI.png

 

 

I don't think that there should be a need for extra code just to switch between linear and logarithmic scales nicely.

5 Comments
dthor
Active Participant

Since that VI Snippet isn't working, here's a regular PNG:

XY Lin-Log Example VI non-snippet.png

 

The only other item in the Event Structure is the "Stop" button.

Marc Blumentritt
Member

The XY-Graph is just a grafical way of presenting your data. Automatic changes to your data, because you have made a change to the tool, with which you look at your data, is not a good idea (at least in my opinion).

CLD
Intaris
Proven Zealot

I don't think the poster is suggesting changing the data, only the graphical representation.

 

Still, I don't like LV doing things like this for me.  If there were a new option (Log(abs)) then it might be ok but please please do NOT change the behaviour of the current functionality.

dthor
Active Participant


 

Intaris wrote:

 

I don't think the poster is suggesting changing the data, only the graphical representation.

 


 

That is correct. I don't want the default behavior to change, as I know that many people use it to their advantage. I simply ask for the option to display (not modify data) Log(Abs(data)).

 

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 6 kudos within 6 years after posting will be automatically declined.