From d9d3bdb491931f413279c339baf1e0ffbca4778b Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Mon, 14 Jan 2019 11:01:01 +0100 Subject: [PATCH] Avoid calling a deprecated API in axis_artist. --- lib/mpl_toolkits/axisartist/axis_artist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mpl_toolkits/axisartist/axis_artist.py b/lib/mpl_toolkits/axisartist/axis_artist.py index 0cbc7669598c..3eea4baae68d 100644 --- a/lib/mpl_toolkits/axisartist/axis_artist.py +++ b/lib/mpl_toolkits/axisartist/axis_artist.py @@ -714,7 +714,7 @@ def get_texts_widths_heights_descents(self, renderer): for (x, y), a, l in self._locs_angles_labels: if not l.strip(): continue - clean_line, ismath = self.is_math_text(l) + clean_line, ismath = self._preprocess_math(l) whd = renderer.get_text_width_height_descent( clean_line, self._fontproperties, ismath=ismath) whd_list.append(whd)