Skip to content

pairplot with 1 dimensional tensor returns an error #1184

@gmoss13

Description

@gmoss13

Describe the bug
After recent changes, pairplot can no longer be used to plot the distribution of a 1-dim parameter, and throws TypeError: 'Axes' object is not subscriptable

To Reproduce

import torch
from sbi.analysis import pairplot
theta = torch.randn(1000, 1)
pairplot(theta,limits=[(-1,1)])

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions