Hello, i am trying to generate 2D plots with python API. The code i use is:
inputs = [em_sensor_extractor.Outputs["EM E(x,y,z,f0)"]]
plot_viewer = analysis.viewers.PlotViewer(inputs=inputs)
plot_viewer.Name = "2D Line Extraction"
plot_viewer.Plotter.Decibel = True
plot_viewer.Plotter.DbRef = 487.989753241
plot_viewer.UpdateAttributes()
document.AllAlgorithms.Add(plot_viewer)
When i run this code the program doesn't recognize the input connection. Any idea what is wrong with the code? Furthermore i would like the 2D plot mode to be temporal but i can't find the corresponding functions in the API library. Thank you in advance!