diff options
Diffstat (limited to 'figs/bands.fig')
-rw-r--r-- | figs/bands.fig/Makefile | 25 | ||||
-rw-r--r-- | figs/bands.fig/bands.gnuplot | 33 |
2 files changed, 58 insertions, 0 deletions
diff --git a/figs/bands.fig/Makefile b/figs/bands.fig/Makefile new file mode 100644 index 0000000..cb5ada5 --- /dev/null +++ b/figs/bands.fig/Makefile @@ -0,0 +1,25 @@ +PROJECTNAME=$(basename $(wildcard *.gnuplot)) + +PDFS=$(addsuffix .pdf, $(PROJECTNAME)) + +all: $(PDFS) + +$(PDFS): + gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tikz.tex, $@) + pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@) + +install: $(PDFS) + cp $^ $(INSTALLDIR)/ + +clean-aux: + rm -f $(addsuffix .tikz.tex, $(PROJECTNAME)) + rm -f $(addsuffix .aux, $(PROJECTNAME)) + rm -f $(addsuffix .log, $(PROJECTNAME)) + +clean-dat: + rm -f $(DATS) + +clean-tex: + rm -f $(PDFS) + +clean: clean-aux clean-tex diff --git a/figs/bands.fig/bands.gnuplot b/figs/bands.fig/bands.gnuplot new file mode 100644 index 0000000..8922c00 --- /dev/null +++ b/figs/bands.fig/bands.gnuplot @@ -0,0 +1,33 @@ +# default output canvas size: 12.5cm x 8.75cm +set term lua tikz size 8,6 standalone + +unset key + +unset xtics +unset ytics +unset ztics +unset border + +unset colorbox + +set pointsize 1 + +#set xrange [0:4*pi/3] +#set yrange [-2*pi/sqrt(3):2*pi/sqrt(3)] + +set pm3d depthorder + +# make this odd and divisible by 7 to get the Fermi points +set isosamples 49 + +# rescale x and y components to render the Fermi points better +# units of 2*pi/3 +set xrange [0:2] +# units of 2*pi/(3*sqrt(3)) +set yrange [-3:3] + +set view 80,35 + +splot sqrt(1+4*cos(pi*x)*cos(pi/3*y)+4*cos(pi/3*y)**2) w pm3d, -sqrt(1+4*cos(pi*x)*cos(pi/3*y)+4*cos(pi/3*y)**2) w pm3d + +#pause mouse close |