diff --git a/lib/matplotlib/backends/_backend_tk.py b/lib/matplotlib/backends/_backend_tk.py index a5518ec11667..fe2668e0994b 100644 --- a/lib/matplotlib/backends/_backend_tk.py +++ b/lib/matplotlib/backends/_backend_tk.py @@ -758,7 +758,7 @@ def showtip(self, text): if self.tipwindow or not self.text: return x, y, _, _ = self.widget.bbox("insert") - x = x + self.widget.winfo_rootx() + 27 + x = x + self.widget.winfo_rootx() + self.widget.winfo_width() y = y + self.widget.winfo_rooty() self.tipwindow = tw = tk.Toplevel(self.widget) tw.wm_overrideredirect(1)