Skip to content

Visualization not drawing lines properly #11

@moritz-gross

Description

@moritz-gross

Hi, I use quads 1.1.0 and want to visualize a dummy dataset with quads.visualize(tree), but the separating lines are not drawn correctly.

Setup: MacOS 15.4.1, Python 3.12 and matplotlib 3.10.3

Image

Code:

import quads
import numpy as np

tree = quads.QuadTree(center=(0, 0), width=20, height=20, capacity=2)

for i in range(20):
    x = np.random.uniform(-10, 10)
    y = np.random.uniform(-10, 10)
    tree.insert((x, y))
    
quads.visualize(tree)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions