# Plotting a list of complex numbers on an argand diagram [duplicate]

I have the following

f[z_] = 1/(z + I)

Table[{f[z]}, {z, -10, 10}]


This produces a list of complex numbers. Is there a way to plot this as a list plot perhaps. I've tried the following but it plots nothing

ListPlot[{Re[data], Im[data]}]


Thanks

• I think you want to equate data to the table and remove the curly brackets around f[z] – Jack LaVigne Aug 30 '17 at 15:44

The function ReIm is useful for this:

f[z_] := 1/(z+I)
data = Table[f[z],{z,-10,10}];

ListPlot[ReIm @ data]


• Oh sweet! thank you – NumberCruncher Aug 30 '17 at 15:54
f[z_] := 1/(z + I)

tab = Table[f[z], {z, -10, 10}];

ListPlot[{Re @ tab, Im @ tab}, PlotLegends -> {Re, Im}]


Or

ListLinePlot[Transpose[{Re @ #, Im @ #}]] &[Table[f[z], {z, -10, 10, 0.1}]]


• The second approach can be simplified to ListLinePlot[{Re[#], Im[#]} & /@ Table[f[z], {z, -10, 10, 0.1}]] or with v10.1 or later see answer by @CarlWoll – Bob Hanlon Aug 30 '17 at 17:35