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

Support Mathematica colormaps #18

Closed
paulmasson opened this issue Feb 12, 2020 · 4 comments
Closed

Support Mathematica colormaps #18

paulmasson opened this issue Feb 12, 2020 · 4 comments

Comments

@paulmasson
Copy link
Owner

Data for Mathemtica colormaps can be extracted numerically using

InputForm /@ ColorData["CherryTones"] /@ Range[0, 1, .1]

Initially supported schemes should include SunsetColors, WatermelonColors, Rainbow, TemperatureMap, LightTemperatureMap, DarkRainbow, RustTones and the default M10DefaultDensityGradient.

This approach has been used in at least one open source project. Color data of this sort is available here.

If would be preferable to have a mathematical statement of the colormap as is true for most of the maps in matplotlib. @axkr are you aware of any open source project that replicates the Mathematica colormaps with expressions of this sort, or do they all sample the data numerically?

@axkr
Copy link

axkr commented Feb 12, 2020

@paulmasson No I'm not aware of any project.

@axkr
Copy link

axkr commented Feb 20, 2020

Similar project like mathcell, but can't find colormaps:

@paulmasson
Copy link
Owner Author

@axkr added seven Mathematica colormaps in 1126d96. That covers most of what you wanted and can be extended later. First want to write up the method.

@paulmasson
Copy link
Owner Author

New version for colormaps: https://github.com/paulmasson/mathcell/releases/tag/1.8.8

Method described here: Reverse Engineering Mathematica Colormaps

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