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

Extended colormaps in FreeFem plot #269

Open
fagnelli opened this issue May 18, 2023 · 0 comments
Open

Extended colormaps in FreeFem plot #269

fagnelli opened this issue May 18, 2023 · 0 comments

Comments

@fagnelli
Copy link

fagnelli commented May 18, 2023

Hi,

Not really an issue, rather a suggestion for improvement.

Taking inspiration from the colormaps available in Matplotlib, I was able to generate an file named cmaps.idp containing the array of HSV values for several colormaps. Including cmaps.idp file in the main script enabled to render a variety 2D plots using the hsv argument, for example:

plot(XX, fill=1, hsv=viridis, value=1);

I am enclosing the some data file to check the rendering: test_vis.zip

I believe this feature could easily be added to FreeFem, by merely including the cmaps.idp to the idp directory.

Hoping this will be beneficial to others.

Filippo

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

1 participant