General

General

Why do I get colors that are not part of the color scale in variable plots on locator?

    • FAQFAQ
      Participant

      The problem arises when you color locators with variables for which sharp gradients exist, such that Post has to interpolate between the minimum and maximum colors (blue and red for the rainbow color map). It occurs as a result of the way that openGL color interpolation works. When openGL interpolates between red and blue, colors like purple, gray, or black may appear depending on the implementation. It is even worse with complementary colors (like blue and orange). The best thing to do in such cases is to use a contour plot, which will always go smoothly between two colors, and add the needed number of intermediate contours within the range (now you can get cyan, green, yellow and orange as thin bands).