optimamodel / optima

Optima HIV software tool
http://optimamodel.com
GNU Lesser General Public License v3.0
7 stars 1 forks source link

Labels and title in bold and larger with the "for_report" kwarg, titles can be specified using "popmapping" #1783

Closed mariadelmarq closed 6 years ago

mariadelmarq commented 6 years ago

For example, calling saveplots(..., **{"for_report": True, "popmapping": popmapping}), with: popmapping = { 'Clients': 'Clients', 'F0-14': u'Girls 0\u201414 years', 'F15-19': u'Females 15\u201419 years', 'F20-24': u'Females 20\u201424 years', 'F15-24': u'Females 15\u201424 years', 'F25-34': u'Females 25\u201434 years', 'F35-49': u'Females 35\u201449 years', 'F50+': 'Females 50+ years', 'FSW': 'Female sex workers', 'M0-14': u'Boys 0\u201414 years', 'M15-19': u'Males 15\u201419 years', 'M20-24': u'Males 20\u201424 years', 'M15-24': u'Males 15\u201424 years', 'M25-34': u'Males 25\u201434 years', 'M35-49': u'Males 35\u201449 years', 'M50+': 'Males 50+ years', 'MSM': 'Men who have sex with men', 'Prisoners': 'Prisoners', } makes plots as in attached file.

Addresses Trello card: https://trello.com/c/UQrT5pJt/1037-calibration-figure-axis-labels, although to solve it, extra code would need to be written to call saveplots with those kwargs for plots when downloaded. Zimbabwe calibration figures.pptx