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

Import biogo.graphics palettes #10

Merged
merged 1 commit into from
Feb 11, 2015
Merged

Import biogo.graphics palettes #10

merged 1 commit into from
Feb 11, 2015

Conversation

kortschak
Copy link
Member

Minor changes to packages in that repo:

  • Change from gocheck to testing.
  • golint changes.

All AUTHORS of this code are already in gonum/A+C (me and my employer). biogo copyright notices are retained purely for historical reasons.

package brewer

import (
"code.google.com/p/biogo.graphics/palette"
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be github.com/gonum/plot/palette ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@kortschak
Copy link
Member Author

PTAL

d := int64(a) - int64(b)
if d < 0 {
if d == -d {
panic("color: weird number overflow")
Copy link
Member

Choose a reason for hiding this comment

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

s/color:/palette:/
(or plot?)

@sbinet
Copy link
Member

sbinet commented Feb 11, 2015

perhaps also add a simple example?

other than that: LGTM

Minor changes to packages in that repo:

* Change from gocheck to testing.
* golint changes.
@kortschak
Copy link
Member Author

kortschak commented Feb 11, 2015 via email

@kortschak kortschak merged commit 7a76f85 into master Feb 11, 2015
@kortschak kortschak deleted the palettes branch February 11, 2015 21:13
@eaburns
Copy link
Member

eaburns commented Feb 11, 2015

Is it appropriate to use this in plotutil to replace the various color slices? If so, open an issue so that we don't forget.

@kortschak
Copy link
Member Author

kortschak commented Feb 11, 2015 via email

@kortschak
Copy link
Member Author

Actually, this requires further discussion since there are at least a couple of different approaches, so #11.

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