Skip to content

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.

3 participants