Return the width of a given text string, in pixels.
(self, text)
| 776 | return min(h1, h2) |
| 777 | |
| 778 | def _get_rendered_text_width(self, text): |
| 779 | """ |
| 780 | Return the width of a given text string, in pixels. |
| 781 | """ |
| 782 | |
| 783 | w, h, d = _get_text_metrics_with_cache( |
| 784 | self._renderer, text, self.get_fontproperties(), |
| 785 | cbook.is_math_text(text), |
| 786 | self.get_figure(root=True).dpi) |
| 787 | return math.ceil(w) |
| 788 | |
| 789 | def _get_wrapped_text(self): |
| 790 | """ |
no test coverage detected