By exporting Matlab data to a txt
file and importing it with List3DPlot
, I plotted the density of states in a nanowire sandwiched between two bulk materials:
SetDirectory[NotebookDirectory[]]
ListPlot3D[
Transpose[ReadList["DOS_E=-2.5_2.5_rL=0_rR=0.1_eta=0.01_L=10.txt",Number,RecordLists->True]],
PlotRange->All,
Ticks->{{{50.5,"0"},{30.5,"-1"},{70.5,"1"}},{{25.5,"0"},{125.5,"L"}},Automatic},
AxesLabel->{"\[Epsilon]/\[CapitalDelta]", "x", "DOS"},
ImageSize->750,ViewPoint->{150,-250,250}
]
For completeness, the text file with the data points is available on Dropbox (which should be saved as DOS_E=-2.5_2.5_rL=0_rR=0.1_eta=0.01_L=10.txt
in the notebook folder).
The part between 0<x<L
is the nanowire, the parts x<0
and x>L
are the bulk materials (normal metal on the left, superconductor on the right). In order to clearly show the structure of the sample, the part of the plot that represents the nanowire should have a different colour.
Question: How can the part 0<x<L
be coloured with a different colour function than the parts x<0
and x>L
?