From 535ad7e0071be2225ac1210026a4afa662eb4222 Mon Sep 17 00:00:00 2001 From: gabisoaresm Date: Sun, 20 Oct 2024 20:42:12 -0300 Subject: [PATCH] Add get_data_limits method to Artist class --- lib/matplotlib/artist.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index e6f323d4a1ce..f6e57dba512e 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -217,6 +217,13 @@ def __getstate__(self): d['stale_callback'] = None return d + def get_data_limits(self): + """ + Método genérico que retorna limites padrão. + Subclasses podem sobrescrever isso, mas por padrão não faz nada. + """ + return None + def remove(self): """ Remove the artist from the figure if possible.