0
$\begingroup$

Assume that I have a table of complex functions like

Clear[p] Clear[M] M = 10; G = Table[Sin[i p] + p I, {i, M}]

I want to ParametricPlot them in graphs, each graph contains only one of them. What should I edit in the following code

ParametricPlot[Evaluate[ReIm /@ G], {p, 0, 2}, AxesLabel -> (Style[#, 12, Bold] & /@ {Re, Im}), PlotRange -> {{-1.2, 1.2}, {0, 2}}, ImageSize -> 600, PlotLegends -> Placed[G, Right]]

Which plot them in the following single graph:

enter image description here

Thanks in advance.

$\endgroup$
0
$\begingroup$
plots = ParametricPlot[Evaluate[ReIm@#], {p, 0, 2}, 
     AxesLabel -> (Style[#, 12, Bold] & /@ {Re, Im}), 
     PlotRange -> {{-1.2, 1.2}, {0, 2}}, ImageSize -> 600, 
     PlotLegends -> Placed[#, Right]] & /@ G;
Grid[Partition[plots, 2]]
$\endgroup$
0
$\begingroup$

If you only want to display one plot at a time, consider using Manipulate

Clear[p]
M = 10;
G = Table[Sin[i p] + p I, {i, M}];

Manipulate[
 Legended[
  ParametricPlot[
   ReIm@G[[i]], {p, 0, 2},
   AxesLabel -> (Style[#, 12, Bold] & /@ {Re, Im}),
   PlotRange -> {{-1.2, 1.2}, {0, 2}},
   ImageSize -> 300,
   ColorFunction -> (ColorData["Rainbow"][#3] &)],
  Labeled[
   BarLegend[{"Rainbow", {0, 2}}],
   Style["p", 12, Bold], Top]],
 {{i, 5}, Range[Length[G]], ControlType -> SetterBar}]

enter image description here

$\endgroup$

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.