Skip to content

Contour showlines has no effect if contours.coloring != "fill" #3080

@martin-drozdik

Description

@martin-drozdik

From the documentation:

showlines (boolean)
default: True
Determines whether or not the contour lines are drawn. Has an effect only if contours.coloring is set to "fill".

I think it would be nice if this restriction was lifted. Otherwise it prevents the user from creating beautiful plots like:

newplot 2

A workaround I use now is:

line={'color':'rgba(0,0,0,0.0)'}

But this is neither readable, nor efficient.

You can find the reproducible example in this repo:

https://github.com/martin-drozdik/logit-distribution/blob/80d3f4e4d25ec51524dc79020b89dfc34d9a2476/main.js#L97

There are two branches:

  1. master, where the current behavior is shown
  2. workaround, where I set the contours to transparent instead of using the showlines: false

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