Skip to content

[Bug]: Missing axes limits auto-scaling support for LineCollection #29219

@carlosgmartin

Description

@carlosgmartin

Bug summary

Matplotlib is missing auto-scale support for LineCollection.

Related issues:

Code for reproduction

from matplotlib import pyplot as plt
from matplotlib.collections import LineCollection

lc = LineCollection([[(x, x ** 2) for x in range(5)]])
ax = plt.gca()
ax.add_collection(lc)
# ax.autoscale()  # need to manually call this
plt.show()

Actual outcome

image

Expected outcome

image

Additional information

No response

Operating system

macOS 14.6.1

Matplotlib Version

3.9.3

Matplotlib Backend

macosx

Python version

3.12.7

Jupyter version

7.2.2

Installation

pip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      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