From 39a5cb95b4d891738b086e8b9ce7c91dbe17598a Mon Sep 17 00:00:00 2001 From: Tom Charrett <79719997+tohc1@users.noreply.github.com> Date: Thu, 31 Jul 2025 14:58:10 +0100 Subject: [PATCH] Update backend_wx.py Fix display of figure window mouse cordinates using wx python backends. Label text requires an initial size to be given to have none zero dimensions in toolbar. --- lib/matplotlib/backends/backend_wx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/backends/backend_wx.py b/lib/matplotlib/backends/backend_wx.py index f83a69d8361e..c8b0fc03f608 100644 --- a/lib/matplotlib/backends/backend_wx.py +++ b/lib/matplotlib/backends/backend_wx.py @@ -1076,7 +1076,7 @@ def __init__(self, canvas, coordinates=True, *, style=wx.TB_BOTTOM): self._coordinates = coordinates if self._coordinates: self.AddStretchableSpace() - self._label_text = wx.StaticText(self, style=wx.ALIGN_RIGHT) + self._label_text = wx.StaticText(self, size=(120,-1), style=wx.ALIGN_RIGHT) self.AddControl(self._label_text) self.Realize() pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy