Skip to content

Coloring by AnnData in render_labels is insanely slow #469

Open
@timtreis

Description

@timtreis

When I call

fig, ax = plt.subplots(ncols=1, nrows=1, figsize=(4, 4))

(
    sdata_sample2
        .pl.render_labels(
            "filtered_hexes",
            # color="B_cells",
            table_name="morphology_filtered",
        )
        .pl.show(ax=ax)
)

the plot takes about 15 s,

when I call

fig, ax = plt.subplots(ncols=1, nrows=1, figsize=(4, 4))

(
    sdata_sample2
        .pl.render_labels(
            "filtered_hexes",
            color="B_cells",
            table_name="morphology_filtered",
        )
        .pl.show(ax=ax)
)

it's 2.5 min

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglabels 🏷️Anything related to Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions