Skip to content

Contour colormap cleanup #367

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

Merged
merged 5 commits into from
Mar 30, 2016
Merged

Contour colormap cleanup #367

merged 5 commits into from
Mar 30, 2016

Conversation

etpinard
Copy link
Contributor

@mdtusz

Some clean up in traces/contour to make gl2d contour integration easier. In brief, this PR

  • adds two image tests (testing contours.coloring set to 'heatmap' and 'lines')
  • centralize the color map creation function so that the style and colorbar step (and soon contourgl) use the same logic

start = contours.start,
end = contours.end,
cs = contours.size || 1,
nc = Math.floor((end + cs / 10 - start) / cs) + 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use more verbose names? cs I can understand as contour size but I have no idea what nc is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nc : number of contours.

@mdtusz
Copy link
Contributor

mdtusz commented Mar 30, 2016

💃

@etpinard etpinard merged commit 4c676df into master Mar 30, 2016
@etpinard etpinard deleted the contour-cleanup branch March 30, 2016 19:57
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.

2 participants