put up with vs take one's medicine

put up with

verb
  • To endure, tolerate, suffer through, or allow, especially something annoying. 

  • To be taken in; to be sheltered (put up). 

take one's medicine

verb
  • To endure an unpleasant obligation, especially a punishment. 

  • Used other than figuratively or idiomatically: see take, medicine. 

How often have the words put up with and take one's medicine occurred in a corpus of books? (source: Google Ngram Viewer )