is an option to define a color scheme used for the plot of the structure, i.e. which colors are used for the different atoms.
GOColorScheme
is an option to define a color scheme used for the plot of the structure, i.e. which colors are used for the different atoms.
Details and Options
- As a first choice ElementData is used for the color scheme. Sometimes the colors are to similar and therefore a choice by hand is better.
- Typical values for GOColorScheme are:
-
"ElementData" gives properties for chemical elements, including IconColor for molecular graph
Examples
Basic Examples (2)
Needs["GroupTheory`"]
SetDirectory[NotebookDirectory[] <> "datasets"];The Hamiltonian in real space has the dimension 370x370. The corresponding cluster consists of 37 Ga and 37 As atoms. This real space Hamiltonian is also already prepared:
phGaAsr = GTReadFromFile["GaAs_74.ham"];cls = GTReadFromFile["GaAs_74.clr"];ev = Eigensystem[phGaAsr];ev1 = ev[[1]];wf = ev[[2]];basis1 = {{"Ga", 1, {"s", "p", "s*"}}, {"As", 1, {"s", "p", "s*"}}};Plot the state weights of state 335.
GOColorScheme → " ElementData "
GTPlotStateWeights[cls, Sqrt[3] / 4, basis1, wf[[335]], 0.2, GOPlot -> True]For a better distinction we set the color scheme by hand.
GOColorScheme → {Red,Blue}
GTPlotStateWeights[cls, Sqrt[3] / 4, basis1, wf[[335]], 0.2, GOColorScheme -> {Red, Blue}, GOPlot -> True]The option is also used in GTPlotCluster. BaTiO3 is used as an example.
GTLoadStructures["GTPack"];bto = GTGetStructure["BTO"];Next, the cluster is prepared and can then be plotted.
clu = GTCluster[bto, 1, GOLattice -> {a -> 1}];GOColorScheme → " ElementData "
GTPlotCluster[clu, 1 / 2Sqrt[2], 2]Now we define the color scheme explicitly.
GOColorScheme → {Red,Blue}
GTPlotCluster[clu, 1 / 2Sqrt[2], 2, GOColorScheme -> {Red, Blue, Green}]