-
Notifications
You must be signed in to change notification settings - Fork 204
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
Conversation
package brewer | ||
|
||
import ( | ||
"code.google.com/p/biogo.graphics/palette" |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PTAL |
d := int64(a) - int64(b) | ||
if d < 0 { | ||
if d == -d { | ||
panic("color: weird number overflow") |
There was a problem hiding this comment.
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
?)
perhaps also add a simple example? other than that: LGTM |
Minor changes to packages in that repo: * Change from gocheck to testing. * golint changes.
I can't think of any non-facile example, so I'll push this. If you want I can revisit this after discussion.
|
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. |
That can be done. I'll send a PR today.
|
Actually, this requires further discussion since there are at least a couple of different approaches, so #11. |
Minor changes to packages in that repo:
All AUTHORS of this code are already in gonum/A+C (me and my employer). biogo copyright notices are retained purely for historical reasons.