From d254a3e3f495e9cd3110ae48020786466d850d57 Mon Sep 17 00:00:00 2001 From: Ian Jauslin Date: Tue, 14 Jun 2022 16:32:34 +0200 Subject: Initial commit --- figs/bands.fig/Makefile | 25 +++++++++++++++++++++++++ figs/bands.fig/bands.gnuplot | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 figs/bands.fig/Makefile create mode 100644 figs/bands.fig/bands.gnuplot (limited to 'figs/bands.fig') 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 -- cgit v1.2.3-70-g09d2