DarkEnergySurvey / ugali

Ultra-faint galaxy likelihood toolkit
MIT License
14 stars 15 forks source link

Generalized bands in plot output #53

Closed sidneymau closed 5 years ago

sidneymau commented 5 years ago

Generalize bands in plot output, i.e. https://github.com/DarkEnergySurvey/ugali/blob/9deabbc6157a622853e835e882c9bf1c4899f967/ugali/utils/plotting.py#L837-L838

Examples:

Pythonic style string formatting

plt.xlabel(r'${} - {}$'.format(self.isochrone.band_1, self.isochrone.band_2)
plt.ylabel(r'${}$'.format(self.isochrone.band_1))

C style string formatting

plt.xlabel(r'$%s - %s$' % (self.isochrone.band_1, self.isochrone.band_2))
plt.ylabel(r'$%s$' % self.isochrone.band_1)
kadrlica commented 5 years ago

Thanks @sidneymau this looks good. How do you feel about submitting a pull request? We are mostly using the C-style formatting.

sidneymau commented 5 years ago

Sounds good... let me update my ugali branch and then make the changes