Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Density Contour range_z #172

@jeremykaram

Description

@jeremykaram

Hello, I am using plotly.express to create a density contour map. It works quite well, but I am wondering if there is a way to constrain the density range. That is to say, I am wondering if I can do something equivalent to range_x=[-num,num] but for the z-axis. Right now, my contour map looks like this:

px.density_contour(df, x="x", y="y", z="dens", histfunc="count", range_x=[-4,4], range_y=[-4,4])
Thank you for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions