2 Replies Latest reply on Mar 8, 2017 7:20 PM by Rui Jiang

    Weird behavior for custom palette

    Rui Jiang

      I want to have a custom color mapping for displaying continuous data. Similar to MATLAB jet:

      So, I converted the color-palette into the preferences.tps (shown below).

      I have tried type="regular" and type="ordered-sequential". The best I can have is something like:

      Clearly not what I want.

      Please help, thanks!

       

      Forest Jiang

       

      <color-palette name="matlab jet" type = "ordered-sequential">

          <color>#f80000</color>

          <color>#f90000</color>

          <color>#fa0000</color>

          <color>#fb0000</color>

          <color>#fc0000</color>

          <color>#fd0000</color>

          <color>#fe0000</color>

          <color>#ff0000</color>

          <color>#ff0100</color>

          <color>#ff0200</color>

          <color>#ff0300</color>

          <color>#ff0400</color>

          <color>#ff0500</color>

          <color>#ff0600</color>

          <color>#ff0700</color>

          <color>#ff0800</color>

          <color>#fff800</color>

          <color>#fff900</color>

          <color>#fffa00</color>

          <color>#fffb00</color>

          <color>#fffc00</color>

          <color>#fffd00</color>

          <color>#fffe00</color>

          <color>#ffff00</color>

          <color>#feff01</color>

          <color>#fdff02</color>

          <color>#fcff03</color>

          <color>#fbff04</color>

          <color>#faff05</color>

          <color>#f9ff06</color>

          <color>#f8ff07</color>

          <color>#08ff08</color>

          <color>#07fff8</color>

          <color>#06fff9</color>

          <color>#05fffa</color>

          <color>#04fffb</color>

          <color>#03fffc</color>

          <color>#02fffd</color>

          <color>#01fffe</color>

          <color>#00ffff</color>

          <color>#00feff</color>

          <color>#00fdff</color>

          <color>#00fcff</color>

          <color>#00fbff</color>

          <color>#00faff</color>

          <color>#00f9ff</color>

          <color>#00f8ff</color>

          <color>#0008ff</color>

          <color>#0007ff</color>

          <color>#0006ff</color>

          <color>#0005ff</color>

          <color>#0004ff</color>

          <color>#0003ff</color>

          <color>#0002ff</color>

          <color>#0001ff</color>

          <color>#0000ff</color>

          <color>#0000fe</color>

          <color>#0000fd</color>

          <color>#0000fc</color>

          <color>#0000fb</color>

          <color>#0000fa</color>

          <color>#0000f9</color>

          <color>#0000f8</color>

          <color>#000008</color>

      </color-palette>