From fabaec5501011bd574aa08faeb0b93dc169ebe0b Mon Sep 17 00:00:00 2001 From: kimmc6008 Date: Wed, 4 Dec 2024 13:33:25 -0500 Subject: [PATCH] Add support for auto scaling in LineCollection --- lib/matplotlib/axes/_base.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index bcf072caef80..bae881afb18c 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -2340,6 +2340,9 @@ def add_collection(self, collection, autolim=True): points = np.concatenate([points, [datalim.minpos]]) self.update_datalim(points) + # Automatically adjust the view limits to fit the collection + self.autoscale_view() + self.stale = True return collection 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