# Plotting classical polymer model

I wonder how to plot a diagram like this

I don't mean to duplicate this diagram, but can we possibly come up with a way to plot the polymer chain with as many monomers as we want, also, can we specify the each angle meanwhile?

Appreciate any help!

• Have you given it a try perhaps? – Johu Jan 29 '17 at 13:18
• Have you seen AnglePath[]? – J. M.'s technical difficulties Jan 29 '17 at 13:20
• It needs to be built from graphics primitives as described here and in related tutorials linked at the end of that page. Skim through those pages, give it a try, and let us know where you got stuck. – Szabolcs Jan 29 '17 at 13:27
• @Johu, I'm not asking someone to plot this for me, I'm trying to get some clue where to start from. And thanks, AnglePath[ ] looks useful. – Gvxfjørt Jan 29 '17 at 13:27
• You might be interested in this or this. – J. M.'s technical difficulties Jan 29 '17 at 13:42

• Construct the list of coordinates for where the "balls" will be. As J.M. said, AnglePath will be useful
• Write a function ball for drawing a ball at given coordinates
• Write a function link for drawing a link between two coordinates
• Map the ball function over list
• Apply the link function at level 1 to Partition[list, 2, 1].