GTBlueRed

GTBlueRed[x]
defines a ColorFunction from blue (x=0) to red (x=1).

DetailsDetails

  • The code MPB (MIT Photonic-Bands) uses a special color code to represent the amplitudes of the electromagnetic fields. GTBlueRed simulates this color code to represent the fields in the same manner within GTPack.
  • x =0 corresponde to Blue, x=1/2 gives White and x=1 corresponds to Red.
  • See: W. Hergert, M. Geilhufe, Group Theory in Solid State Physics and Photonics. Problem Solving with Mathematica
  • MPB: http://ab-initio.mit.edu/wiki/index.php/MPB_Data_Analysis_Tutorial

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

First load the package:

In[1]:=
Click for copyable input

The color bar demonstrates the color change in dependence on x.

In[2]:=
Click for copyable input
Out[2]=

The defined color scheme can be used as a ColorFunction in the standard Plot commands of Mathematica.

In[3]:=
Click for copyable input
Out[3]=