hi! looks like there's room for more info on this, but FYI, this question has been raised before, and our pirate mod /u/eternalkerri has answered thusly:
How were historical pirates different than what is portrayed by Treasure Island and Hollywood?
Also, you might be interested in looking over our whole FAQ for pirate history on the r/AskHistorians wiki. There are more answers to "walk the plank" among the various posts there, and more that you might be interested in.