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

ocean colormaps #2

Closed
tbreloff opened this issue Oct 13, 2016 · 9 comments
Closed

ocean colormaps #2

tbreloff opened this issue Oct 13, 2016 · 9 comments

Comments

@tbreloff
Copy link
Member

@kthyng: Nice colormaps... how would you feel about contributing to the available colormaps for visualization in Julia?

http://tos.org/oceanography/assets/docs/29-3_thyng.pdf

cc: @pkofod

@kthyng
Copy link
Contributor

kthyng commented Oct 13, 2016

Strongly pro! I'm not familiar with Julia syntax though. Happy to
facilitate if someone knows and can do it more quickly.

On Thursday, October 13, 2016, Tom Breloff [email protected] wrote:

@kthyng https://github.com/kthyng: Nice colormaps... how would you feel
about contributing to the available colormaps for visualization in Julia?

http://tos.org/oceanography/assets/docs/29-3_thyng.pdf

cc: @pkofod https://github.com/pkofod


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2, or mute the thread
https://github.com/notifications/unsubscribe-auth/ADU2BQB3s14cuRSvSUBK3rBBpfG7XPNfks5qzm_1gaJpZM4KWLU4
.

Kristen M. Thyng
Assistant Research Professor
Department of Oceanography
Texas A&M University
Eller O&M 607
http://kristenthyng.com

@tbreloff
Copy link
Member Author

Excellent. 🎉 It's up to you... if you were to give us a list of colors for each map, it wouldn't be too hard for us to add it. I'd set you as the author of the commit so that you get credit for it, and I'd link to your paper at the top of the file. Let me know.

@kthyng
Copy link
Contributor

kthyng commented Oct 14, 2016

Cool — the rgb values are in text files here:
https://github.com/matplotlib/cmocean/tree/master/cmocean/rgb

On Thu, Oct 13, 2016 at 4:31 PM, Tom Breloff [email protected]
wrote:

Excellent. 🎉 It's up to you... if you were to give us a list of colors
for each map, it wouldn't be too hard for us to add it. I'd set you as the
author of the commit so that you get credit for it, and I'd link to your
paper at the top of the file. Let me know.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADU2BSfIVJVF_MHI5_fOsoZfn4QerE4wks5qzqM4gaJpZM4KWLU4
.

Kristen M. Thyng
Assistant Research Professor
Department of Oceanography
Texas A&M University
Eller O&M 607
http://kristenthyng.com

@tbreloff
Copy link
Member Author

88fd15a

@tbreloff
Copy link
Member Author

These are really nice. Thanks for letting me contribute them on your behalf @kthyng!

using Plots; pyplot()
cmaps = [:algae,:amp,:balance,:curl,:deep,:delta,:dense,:gray,:haline,:ice,:matter,:oxy,:phase,:solar,:speed,:tempo,:thermal,:turbid]
z = (1:10)*(1:20)'
plot([heatmap(z,fc=cm,leg=false,title=cm,ticks=nothing) for cm=cmaps]..., size=(1000,1000))

tmp

@pkofod do these inspire you to make any new themes?

@tbreloff
Copy link
Member Author

Also... isn't it about time you ditch python and switch to julia? ;)

@cormullion
Copy link

cormullion commented Oct 15, 2016

@tbreloff Nice work, Tom! I see there's no shortage of color fans using Julia!

using Plots
using ColorSchemes
pyplot()
z = (1:10)*(1:20)'
map(cs -> PlotUtils.register_gradient_colors(Symbol(cs), loadcolorscheme(cs)), list());
cschemes = keys(PlotUtils._gradients)
plot([heatmap(z,fc=cm,leg=false,title=cm,ticks=nothing, titlefont = font(8)) for cm=cschemes]..., size=(1000,1000))

screen shot 2016-10-15 at 14 27 50

The only interesting thing about ColorSchemes is that you can extract them from existing images. If there's anything useful there, help yourself! :)

Edit: Fixed the font size for the labels...

@tbreloff
Copy link
Member Author

Very cool! It might be nice to have a few methods to easily load external
color packages without adding the dependecies

On Saturday, October 15, 2016, cormullion [email protected] wrote:

@tbreloff https://github.com/tbreloff Nice work, Tom! I see there's no
shortage of color fans using in Julia!

using Plots
using ColorSchemes
pyplot()
z = (1:10)*(1:20)'
map(cs -> PlotUtils.register_gradient_colors(Symbol(cs), loadcolorscheme(cs)), list());
cschemes = keys(PlotUtils._gradients)
plot([heatmap(z,fc=cm,leg=false,title=cm,ticks=nothing) for cm=cschemes]..., size=(1000,1000))

[image: screen shot 2016-10-15 at 13 39 22]
https://cloud.githubusercontent.com/assets/52289/19410165/e5711c1c-92dc-11e6-806e-db3913d7b371.png

The only interesting thing about ColorSchemes is that you can extract them
from existing images. If there's anything useful there, help yourself! :)

(PS: Sorry about the too-large labels...)


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA492jQWQuctS56f7cF7JHFWn2a7m6mnks5q0Mo1gaJpZM4KWLU4
.

@kthyng
Copy link
Contributor

kthyng commented Oct 18, 2016

Cool! And I've heard only good things about Julia, indeed.

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

No branches or pull requests

3 participants