How do I animate a rotating link in matplotlib plot?

I will keep the problem simple. Let’s say I have a link of length 15 units and I want to make it animate in the matplotlib plot as the value of theta(angle between the link and x axis) varies from 0 …