[Paraview] plot colors: function value -> RGB tuple

Moreland, Kenneth kmorel at sandia.gov
Thu Dec 14 10:29:12 EST 2017


You can achieve this by writing making a filter that creates a 3D vector field where each vector represents an RGB color. If writing out floating point values, the color channel values should be between 0 and 1. You can then render this 3D vector field directly as colors by turning off the “Map Scalars” display parameter. “Map Scalars” is an advanced option, so the easiest way to find it is to type “map” into the search bar at the top of the properties panel.

-Ken

From: ParaView [mailto:paraview-bounces at paraview.org] On Behalf Of Nico Schlömer
Sent: Thursday, December 14, 2017 7:15 AM
To: paraview at paraview.org
Subject: [EXTERNAL] [Paraview] plot colors: function value -> RGB tuple

Hi everyone,

I need to plot complex-valued functions over various domains, and instead of splitting the values into real and imaginary part (or absolute value and angle), I would like to use a "2D colormap" approach as sometimes suggested for complex-valued functions (see, e.g., [1]).
As a lowkey approach of getting this into ParaView, I was wondering if it's possible to create a filter that takes a point value (or two), runs it through some specified (Python) code, and uses the returned RGB tuple for rendering the plot.

Any hints?

Cheers,
Nico

[1] https://github.com/BIDS/colormap/issues/6#issuecomment-220839685
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://paraview.org/pipermail/paraview/attachments/20171214/5d99dd91/attachment.html>


More information about the ParaView mailing list