sweat out vs take one's medicine

sweat out

verb
  • To endure or go through (an ordeal). 

  • To accomplish or achieve, usually through endurance or effort. 

  • To sweat; to secrete sweat because of heat, nerves etc. 

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 sweat out and take one's medicine occurred in a corpus of books? (source: Google Ngram Viewer )