Closed sidneymau closed 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)
Thanks @sidneymau this looks good. How do you feel about submitting a pull request? We are mostly using the C-style formatting.
Sounds good... let me update my ugali branch and then make the changes
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
C style string formatting