This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Adapted to python3 from the accepted answer on https://stackoverflow.com/questions/38463369/subtitles-within-matplotlib-legend | |
| # Legend guide: https://matplotlib.org/3.1.0/tutorials/intermediate/legend_guide.html | |
| import matplotlib.text as mtext | |
| class LegendTitle(object): | |
| def __init__(self, text_props=None): | |
| self.text_props = text_props or {} | |
| super(LegendTitle, self).__init__() |
NewerOlder