Message Boards Message Boards

0
|
8237 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Have you ever tried to combine the two graphics together? I tried, failed

Posted 11 years ago
One of my graphics is an output of the command of "Manipulate", the other is a Listplot. I want to see how close the two are together, but due to the complexity of the "Manipulate", the result shows that: Show::gcomb: Could not combine the graphics objects in Show. I tried the nomal function, and succeeded; the problem could be attributed to the "Manipulate". How could I do it? Shall we share the ideas you've tried?
POSTED BY: xiaohong lan
2 Replies
Hi,
Perhaps you can try to put "Show" inside "Manipulate", see the example below:
f[x_] := a x^2;
data = Table[{-3 + 3 i 0.02, f[-3 + 3 i 0.02] /. a -> 1 }, {i, 0, 100}];
Manipulate[
Show[
  Show[ListPlot[data], Plot[f[x] /. a -> A, {x, -3, 3}]]
  ]
, {A, 1, 2}]

I.M.
POSTED BY: Ivan Morozov
Remember that the output of the Manipulate command is not a Graphics object.  The Show command requires that its arguments each have the Head Graphics or Graphics3D.  The Head of a Manipulate command's output is Manipulate.
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract