forge icon indicating copy to clipboard operation
forge copied to clipboard

Contour Plots

Open 9prady9 opened this issue 8 years ago • 6 comments

All most all of the forge objects have the option to let user provide per vertex attributes such as colors and alphas for rendering.

In the case of contour plots, I am not sure if per vertex colours or alphas makes any sense. One possible usage that i can see is per iosline color and alpha values.

@arrayfire/core-devel Any possible use cases of allowing per vertex colours/alphas ? An alternative to these per vertex attributes i thought off is using colormaps with isolines, which is the most common way of coloring contour lines from what i have seen so far.

9prady9 avatar Dec 22 '15 19:12 9prady9

Whats the difference between the two setColor methods ?

pavanky avatar Feb 11 '16 16:02 pavanky

@pavanky The one which takes enum as input calls the float version internally after computing color from enum.

9prady9 avatar Feb 11 '16 16:02 9prady9

As you mention, it is very common to color isolines. Also it is common for every N-th iso-line to be thicker. Beyond this, I've never seen any plot that has color/alpha settings for individual verticies.

bkloppenborg avatar Feb 12 '16 01:02 bkloppenborg

@bkloppenborg

Lets dump alphas from discussion for now.

Color per isoline is one feature that will be needed, which can be done using separate color buffer or colormaps.

By thickness of Nth isoline, did you mean among all isolines, only one isoline will be made thicker than others or each isoline will have a thickness of it's own ?

9prady9 avatar Feb 12 '16 04:02 9prady9

Here are a few examples of things I've seen.

  1. Color dependent on z-value:
  2. Thickness of line (e.g. point size) dependent on z-value being positive:
  3. N-th iso-line being thicker (this is standard for topographic maps):
  4. Filled iso-surfaces

bkloppenborg avatar Feb 12 '16 12:02 bkloppenborg

I don't think this should be in 1.0

pavanky avatar Feb 12 '16 15:02 pavanky