-
Notifications
You must be signed in to change notification settings - Fork 54
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
Feature Request: Add a possibility to use the colormaps in Paraview #125
Comments
Cool! I agree that it would be great to be able to use colorcet maps in ParaView, but to me it seems more natural for ParaView to add support for the colormap formats established by widely used packages like Bokeh and Matplotlib over a decade ago. That way ParaView users can use any colormap available, not just colorcet. Have you tried opening an issue with ParaView asking for it to support Bokeh-format or Matplotlib-format colormaps directly? |
Thanks for the fast reply. That seems to be an interesting solution. I have not tried to open an issue for ParaView yet.
However this is not so much of a difference then what I offered, just that the file format fits better to the python libs. |
D'oh! I guess I was mixing up ParaView with VTK (what ParaView is based on). Since ParaView is a GUI frontend where you can't just I'm ok if you want to stash your script into |
Thanks for your ideas. That sounds good to me. I have created an issue for paraview here. |
Problem to solve
Paraview provides great visualization techniques for 2D and 3D data set. It comes also with some colormaps, but choices are limited here and also a common colormap for python plots and paraview is complex to create. Here it would help if one could easly use ColorCet in paraview.
Solution
Paraview provides the option to import new colormaps from a json or xml file (see Paraview Wiki). I have written a basic python script that can create such a json file for a given palette in color cet: colorCet2Paraview.zip
If you want it might be helpful for others if this file goes to the github and/or if the resulting files (for
cc.palette_n
andcc.palette
) would be available via the web page for download. Also feel free do add things to the script or modify it.The text was updated successfully, but these errors were encountered: