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)"]
# 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 ?


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

Perfect thanks !!