1
$\begingroup$

This is my code. But I don't know how I could insert two different graphics on inside another.

    Restart[]
f[z_] := z
paint[z_] := 
color = Hue[Rescale[ArcTan[-x, -y], {-Pi, Pi}]];
shade = Mod[Log[2, Abs[x + I y]], 1];
Darker[color, shade/4]];
gr1 = ParametricPlot[{x, y}, {x, -1, 1}, {y, -1, 1},
   ColorFunctionScaling -> False,
ColorFunction -> Function[{x, y}, paint[f[x + y I]]],
Frame -> True, MaxRecursion -> 1, PlotPoints -> 300,
PlotRangePadding -> 0, Axes -> False, Mesh -> False,
PlotRangePadding -> 0, ImageSize -> 400];
gr2 = ParametricPlot[{x, y}, {x, -0.1, 0.1}, {y, -0.1, 0.1}, 
ColorFunctionScaling -> False,
   ColorFunction -> Function[{x, y}, paint[f[x + y I]]],
   Frame -> True, MaxRecursion -> 1, PlotPoints -> 300,
   PlotRangePadding -> 0, Axes -> False, Mesh -> False,
   PlotRangePadding -> 0, ImageSize -> 400];
Graphics[{First[gr1], Inset[gr2, {15, -.5}, Automatic, Scaled[.4]]}, 
 PlotRange -> {Automatic, {-1, 1}}, AbsoluteOptions[gr1]]
$\endgroup$
  • $\begingroup$ if other people solve your problem , please set it as ANSWER. $\endgroup$ – PureLine Oct 27 '17 at 6:58
1
$\begingroup$
Graphics[{First[gr1], 
  Inset[gr2, Scaled[{1, .5}], {Right, Center}, Scaled[.4]]}, 
 PlotRange -> {Automatic, {-1, 1}}, AbsoluteOptions[gr1]]

enter image description here

$\endgroup$
  • $\begingroup$ Thanks this will help a lot.!!!!!!!! $\endgroup$ – user53106 Oct 25 '17 at 16:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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