Message Boards Message Boards

0
|
3021 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

How can I fix "Skeleton is not a Graphics primitive" error?

Posted 3 years ago

I'm having trouble creating this plot, and I can't seem to find what's causing the error here (returns "Could not combine the graphics objects in Show" and gives error: "Skeleton is not a Graphics primitive or directive").

Clear["Global`*`"]

f[x_] := 4 \[CapitalLambda] x (1 - x);

iterate[m_, n_] := Drop[NestList[f, 0.5, n], m]

drawpt[y_] := Point[{\[CapitalLambda], y}]

graph[mumin_, mumax_, nmu_, mdrop_, n_] := 
 Graphics[{PointSize[0.001], 
   Table[Map[drawpt, iterate[mdrop, n]], {\[CapitalLambda], mumin, 
     mumax, (mumax - mumin)/nmu}]}]

Show[graph[0.72, 1, 400, 300, 700], Axes \[RightArrow] False, 
 Frame \[RightArrow] True, FrameLabel \[RightArrow] {"mu", "x*"}, 
 PlotRange \[RightArrow] {{0.72, 1.02}, {0, 1}}, 
 AspectRatio \[RightArrow] 1]
POSTED BY: Aidan Burleson
Posted 3 years ago

This works:

Show[
    graph[0.72, 1, 400, 300, 700],
    Axes -> False, Frame -> True, FrameLabel -> {"mu", "x*"},
    PlotRange -> {{0.72, 1.02}, {0, 1}}, AspectRatio -> 1
 ]

The -> in the options stand for Rule, which is different from RightArrow in your code.

POSTED BY: Hans Milton
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