Set the text value of the axis label. Parameters ---------- label : str Text string. fontdict : dict Text properties. .. admonition:: Discouraged The use of *fontdict* is discouraged. Parameters should be
(self, label, fontdict=None, **kwargs)
| 2024 | return self.units |
| 2025 | |
| 2026 | def set_label_text(self, label, fontdict=None, **kwargs): |
| 2027 | """ |
| 2028 | Set the text value of the axis label. |
| 2029 | |
| 2030 | Parameters |
| 2031 | ---------- |
| 2032 | label : str |
| 2033 | Text string. |
| 2034 | fontdict : dict |
| 2035 | Text properties. |
| 2036 | |
| 2037 | .. admonition:: Discouraged |
| 2038 | |
| 2039 | The use of *fontdict* is discouraged. Parameters should be passed as |
| 2040 | individual keyword arguments or using dictionary-unpacking |
| 2041 | ``set_label_text(..., **fontdict)``. |
| 2042 | |
| 2043 | **kwargs |
| 2044 | Merged into fontdict. |
| 2045 | """ |
| 2046 | self.isDefault_label = False |
| 2047 | self.label.set_text(label) |
| 2048 | if fontdict is not None: |
| 2049 | self.label.update(fontdict) |
| 2050 | self.label.update(kwargs) |
| 2051 | self.stale = True |
| 2052 | return self.label |
| 2053 | |
| 2054 | def set_major_formatter(self, formatter): |
| 2055 | """ |
no test coverage detected