Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • $\begingroup$ For me the first code seems to work fine, where the srgData[[1]] is the resulting table. The second could be midfield to data = Reap[ ParametricPlot[{Sow[{Re[k[w]], Im[k[w]]}]}, {w, -Pi, 0}, PlotRange -> {{-0.7, 2.1}, {0, 1.1}}]] and then data[[2,1]] is the table. $\endgroup$ Commented Jun 16, 2021 at 14:32
  • $\begingroup$ Apologies @Moo, I've edited it to fix that. $\endgroup$ Commented Jun 16, 2021 at 15:05
  • $\begingroup$ @Andrzej, you are right. It works fine. It seems that in constructing a MWE, I've accidentally made it work... looking into it now $\endgroup$ Commented Jun 16, 2021 at 15:13
  • 2
    $\begingroup$ Why not just generate a table of points? p = Table[{w, Re[k[w]], Im[k[w]]}, {w, -Pi, 0, Pi/500}]; p = Select[p, 0 <= #[[3]] <= 1.1 && -0.7 <= #[[2]] <= 2.1 &]; I know the "spacing" of the points is nicer with ParametricPlot but does that really matter for what you want to do? $\endgroup$ Commented Jun 16, 2021 at 15:23
  • $\begingroup$ I agree with Jim, especially if you're a beginner. Why not use something clean, robust and simple instead of a fragile hack? $\endgroup$ Commented Jun 16, 2021 at 15:39