I like to display a chart with time series values in Y (Pa) and distance series in X (mm). The Y values comes from a microphone and the X values comes from a hall sensor counter module. Both signals has the same samlesrate. Normaly you display the time in X with delta t. But in this use case I like to use the distance series in X.
The problem is I guess that the distance series looks like this [0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,…]. If we use delta t to calculate the X values than the values looks like this [0,0.1,0.2,0.3,0.4,0.5,0.6,…]
If I display the microphone data as time series it looks like:
If I display the hall sensor counter data as time signal it looks like:
I like to display the sinus values form the microphone in Y but the hall sensor counter data in X as distance. But the sinus is damaged:
Is there any option to display the real Y values (the sinus)? Or should I change the X data to a evenly rising signal, or what?