Skip to content

How can I control the binning and plot limits, and to do so independently? #173

Open
@jtlz2

Description

@jtlz2

I would like fine-grained control over the binning scheme, but at the moment I think I can only provide the number of bins using the bins argument, e.g. bins=20. Is it possible to, for example, supply bin ranges e.g. bins=np.linspace(-1.0,1.0,11)? Or is there another way to achieve the same outcome?

Having binned the data, I would then like to set the limits for each axis. This would be plt.xlim(a,b) and plt.ylim(c,d) in matplotlib. How can I set the axis ranges in/for corner plots?

The need for independent control is to ensure the plotted probability distribution correctly includes the points outside the plot range, and is not influenced by the given axis limits, unless this is specifically required for a particular problem.

[Specifically, for this use case, I have NaNs that I would like to exclude using a magic number, but I want the magic location to be excluded from binning and plotting. The NaNs are uncorrelated, i.e. samples are incomplete and excluding by sample is not possible. But I think this is for a separate question?]

Essentially I would like a manual rather than auto mode.

@dfm Does that make sense? Thanks!

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