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

Glasbey palettes #9

Open
IanWorthington opened this issue Sep 20, 2022 · 2 comments
Open

Glasbey palettes #9

IanWorthington opened this issue Sep 20, 2022 · 2 comments

Comments

@IanWorthington
Copy link

For those who came here looking for a Python colorcet implementation, you'll find the Glasbey palettes missing.

These can be converted quite easily though. Download the assets folder from colorcet then:

  GlasbeyCsvDir <- r"(...\)"  
  fn <- glue("{GlasbeyCsvDir}glasbey_hv_n256.csv")
  
  data <- readr::read_csv( fn,
                   col_names = c("R", "G", "B"),
                   col_types = c("d", "d", "d")
                   )  
  glPal <- rgb(data)

Not as convenient as the cetcolor package of course.

@coatless
Copy link
Collaborator

@IanWorthington looks like there was a newer version of colorcet uploaded. I last touched this package about ~3 years ago. I'll probably tackle it later this weekend.

Thanks for the note!

@coatless
Copy link
Collaborator

Looking at this further, the Glasbey palettes are not part of the new color cet palette release. They're an add-on to the colorcet python package.

https://github.com/holoviz/colorcet/blob/162c49071d9217fd0fd33b8d1b888e25ef2b006c/assets/CET_to_py.py#L5-L6

Not sure if I'll add them. But, I will probably update the color maps.

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

2 participants