GetComponent(0) how to have both axis in python

Hi all,

I have a stupid question but I am really struggling to have my x-data out of a plot.

input_time = acoustic_sensor_extractor.Outputs["p(t)"]
input_time.Update()
# Get Point Sensor data (output is complex pressure)
output = input.Data.GetComponent(0)
output_time = input_time.Data.GetComponent(0)

I just receive the ycomponent of my plot of p(t)

Do you know what I should do to have the time ? so my x-axis values ?

Thanks!
Léa

Hello Lea,
You can use the property .Axis of the class FloatXYData, for example acoustic_sensor_extractor.Outputs["p(t)"].Data.Axis
Best

Perfect thanks !!