Does this method work for frequency-domain plots?

I have implemented the above example and, while it works fine for time-domain signals, it seems to fail when a frequency domain signal with frequency values up to MHz range are read from the .csv file. What I would like to know is if there is a method to use the plecs scope to plot any arbitrary signal? It would be nice to use it to plot measured and simulated values and see them on the same scope.

Can anyone provide some suggestions?

Thanks

Can you provide an example data file and more information. Do you want to inject magnitude and phase pairs? Are the values time stamped?