Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix line.width attr declaration in *contour traces #4218

Merged
merged 1 commit into from
Sep 26, 2019

Conversation

etpinard
Copy link
Contributor

fixes #4203

  • unset dflt in contour line.width, explain default logic in description
  • reuse contour line declaration in contourcarpet
  • set hard dflt in histogram2dcontour line.width declaration,
    as histogram2dcontour trace only support level-style contours
    at the moment.

cc @archmoj

- unset dflt in contour `line.width`, explain default logic in description
- reuse contour `line` declaration in contourcarpet
- set hard dflt in histogram2dcontour `line.width` declaration,
  as histogram2dcontour trace only support level-style contours
  at the moment.
'Sets the contour line width in (in px)',
'Defaults to *0.5* when `contours.type` is *levels*.',
'Defaults to *2* when `contour.type` is *constraint*.'
].join(' ')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's the corresponding default logic:

coerce('line.width', 0.5);

reused by contourcarpet and histogram2dcontour

coerce('line.width', 2);

reused by contourcarpet

@archmoj
Copy link
Contributor

archmoj commented Sep 26, 2019

@etpinard Nicely done.
💃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] data[type=contour].line width documentation typo
2 participants