hold the line vs sticking to one’s guns

hold the line

verb
  • To firmly maintain one's viewpoint, principles, or situation; to refuse to change one's practices or plans. 

sticking to one’s guns

How often have the words hold the line and sticking to one’s guns occurred in a corpus of books? (source: Google Ngram Viewer )