[vtkusers] color map surprise

John Hunter jdhunter at ace.bsd.uchicago.edu
Thu Jan 22 14:06:29 EST 2004


>>>>> "John" == John Hunter <jdhunter at ace.bsd.uchicago.edu> writes:

    John> I am using a vtkDataSetSurfaceFilter to plot an interpolated
    John> surface across a vtkStructuredGrid using the default color
    John> map.  I am surprised to find that the large scalars are blue
    John> and the small scalars are red, which is the opposite of the
    John> behavior I am used to, eg with surf and colormap jet in
    John> matlab.

By reading the examples, I was able to find the solution

  lut = vtk.vtkLookupTable()
  lut.SetHueRange(0.667, 0.0)
  mapper.SetLookupTable(lut)

but am still surprised by the default behavior, so if anyone can shed
some light I'm happy to hear.

JDH



More information about the vtkusers mailing list